NArrayT, D Class

Generic Array

Definition

Namespace: Metas.UncLib.Core.Ndims
Assembly: Metas.UncLib.Core (in Metas.UncLib.Core.dll) Version: 2.8.9053.20192
C#
[SerializableAttribute]
public class NArray<T, D> : INArray<T, D>, 
	IConsole, IStorage<T>, IStorageBinary, IArrayArithmetic<T, D>, IArithmetic<T>, 
	IArrayMath<T, D>, IMath<T>
where T : new(), Object, INArray<T, D>
where D : new(), Object, INumber<D>
Inheritance
Object    NArrayT, D
Derived
Implements
IArithmeticT, IArrayArithmeticT, D, IArrayMathT, D, IConsole, IMathT, IStorageT, IStorageBinary, INArrayT, D

Type Parameters

T
Array Type
D
Element Type

Constructors

NArrayT, DInitializes a new instance of the NArrayT, D class

Properties

data Data
IsColVector Returns true if it's a column vector
IsMatrix Returns true if it's a matrix
IsRowVector Returns true if it's a row vector
ItemInt32 Item
ItemInt32 Item
ItemInt32, Int32 Item
ItemInt32, Int32, Int32 Item
Matrix Returns a matrix if it's a matrix
memsize Number of bytes allocated for the Object.
ndims Number of dimensions
numel Number of elements
size Size
Vector Returns a vector if it's a vector

Methods

Acos Returns the angle whose cosine is the specified number.
Acosh Returns the angle whose hyperbolic cosine is the specified number.
Add Returns the sum of the object and b.
Asin Returns the angle whose sine is the specified number.
Asinh Returns the angle whose hyperbolic sine is the specified number.
Atan Returns the angle whose tangent is the specified number.
Atanh Returns the angle whose hyperbolic tangent is the specified number.
BinaryDeserialize Binary Deserialize an Object from File.
BinaryDeserializeFromByteArray Binary Deserialize an Object from a byte array.
BinarySerialize Binary Serialize an Object to File.
BinarySerializeToByteArray Binary Serialize an Object to a byte array.
BinarySetDataFrom Set object data from Binary Reader.
BinaryWriteDataTo Write object data to Binary Writer.
Conj Returns the complex conjugate.
Copy Returns a copy of the array
Cos Returns the cosine of the specified angle.
Cosh Returns the hyperbolic cosine of the specified angle.
Debug Debug an Object
Divide Returns the quotient of the object and b.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Exp Returns e raised to the specified power.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetItem1d Get Item
GetItem2d Get Item
GetItem3d Get Item
GetItemNd Get Item
GetItems1d Get Items
GetItemsNd Get Items
GetTypeGets the Type of the current instance.
(Inherited from Object)
HorzCat Concatenate 2D-Arrays (Matrixes) horizontally
Identity Initializes a Identity 2D-Array (Matrix)
Init1d Initializes a 1D-Array (Vector)
Init1dData(D) Initializes a 1D-Array (Vector) and creates a copy of the data
Init1dData(D, Boolean) Initializes a 1D-Array (Vector)
Init2d Initializes a 2D-Array (Matrix)
Init2dData(D) Initializes a 2D-Array (Matrix)
Init2dData(D) Initializes a 2D-Array (Matrix)
Init3d Initializes a 3D-Array
Init3dData(D) Initializes a 3D-Array
Init3dData(D) Initializes a 3D-Array
InitDbl Initializes a Array.
InitNd Initializes a ND-Array
InterchangeRows Interchange Rows in 2D-Array (Matrix)
LAdd Returns the sum of the object and b.
LDivide Returns the quotient of the object and b.
LLog Returns the logarithm of a specified number (object) in a specified base (b).
LMultiply Returns the product of the object and b.
Log Returns the natural (base e) logarithm of a specified number.
Log(T) Returns the logarithm of a specified number in a specified base.
Log10 Returns the base 10 logarithm of a specified number.
LPow Returns a specified number (object) raised to the specified power (b).
LSubtract Returns the difference of the object and b.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Multiply Returns the product of the object and b.
Negative Returns the negative of the object.
Ones1d Initializes a 1D-Array (Vector) with all values = 1
Ones2d Initializes a 2D-Array (Matrix) with all values = 1
Ones3d Initializes a 3D-Array with all values = 1
OnesNd Initializes a ND-Array with all values = 1
Pow(Int32) Returns a specified number raised to the specified power.
Pow(T) Returns a specified number raised to the specified power.
RAdd Returns the sum of a and the object.
RDivide Returns the quotient of the a and the object.
Reshape Reshapes the array
RLog Returns the logarithm of a specified number (a) in a specified base (object).
RMultiply Returns the product of the a and the object.
RPow Returns a specified number (a) raised to the specified power (object).
RSubtract Returns the difference of a and the object.
SetItem1d Set Item
SetItem2d Set Item
SetItem3d Set Item
SetItemNd Set Item
SetItems1d Set Items
SetItemsNd Set Items
SetSameItem1d Set Same Item
SetSameItemNd Set Same Item
Sin Returns the sine of the specified angle.
Sinh Returns the hyperbolic sine of the specified angle.
Sqrt Returns the square root of a specified number.
Subtract Returns the difference of the object and b.
Tan Returns the tangent of the specified angle.
Tanh Returns the hyperbolic tangent of the specified angle.
ToStringReturns a string that represents the current object.
(Inherited from Object)
Transpose Transpose 2D-Array (Matrix)
VertCat Concatenate 2D-Arrays (Matrixes) vertically
XmlDeserialize Xml Deserialize an Object from File.
XmlDeserializeFromString Xml Deserialize an Object from String.
XmlSerialize Xml Serialize an Object to File.
XmlSerializeToString Xml Serialize an Object to String.
Zeros1d Initializes a 1D-Array (Vector) with all values = 0
Zeros2d Initializes a 2D-Array (Matrix) with all values = 0
Zeros3d Initializes a 3D-Array with all values = 0
ZerosNd Initializes a ND-Array with all values = 0

Operators

Addition(D, NArrayT, D) Overloading '+' operator
Addition(NArrayT, D, T) Overloading '+' operator
Addition(NArrayT, D, D) Overloading '+' operator
Division(D, NArrayT, D) Overloading '/' operator
Division(NArrayT, D, T) Overloading '/' operator
Division(NArrayT, D, D) Overloading '/' operator
Multiply(D, NArrayT, D) Overloading '*' operator
Multiply(NArrayT, D, T) Overloading '*' operator
Multiply(NArrayT, D, D) Overloading '*' operator
Subtraction(D, NArrayT, D) Overloading '-' operator
Subtraction(NArrayT, D, T) Overloading '-' operator
Subtraction(NArrayT, D, D) Overloading '-' operator
UnaryNegation(NArrayT, D) Overloading '-' operator
UnaryPlus(NArrayT, D) Overloading '+' operator

See Also