Class NDArray<T>
Inheritance
System.Object
NDArray<T>
Implements
System.Collections.IEnumerable
System.Collections.IEnumerator
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: NumSharp.dll
Syntax
public class NDArray<T> : IEnumerable, IEnumerator
Type Parameters
Constructors
|
Improve this Doc
View Source
NDArray()
Declaration
Properties
|
Improve this Doc
View Source
Current
Declaration
public object Current { get; }
Property Value
| Type |
Description |
| System.Object |
|
|
Improve this Doc
View Source
Data
Declaration
public T[] Data { get; set; }
Property Value
|
Improve this Doc
View Source
Item[NDArray<Int32>]
Declaration
public NDArray<T> this[NDArray<int> select] { get; }
Parameters
| Type |
Name |
Description |
| NDArray<System.Int32> |
select |
|
Property Value
|
Improve this Doc
View Source
Item[Shape]
Declaration
public NDArray<T> this[Shape select] { get; }
Parameters
| Type |
Name |
Description |
| Shape |
select |
|
Property Value
|
Improve this Doc
View Source
Item[Slice]
Declaration
public NDArray<NDArray<T>> this[Slice select] { get; }
Parameters
| Type |
Name |
Description |
| Slice |
select |
|
Property Value
|
Improve this Doc
View Source
Item[IList<Int32>]
Filter specific elements through select.
Declaration
public NDArray<T> this[IList<int> select] { get; }
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IList<System.Int32> |
select |
|
Property Value
| Type |
Description |
| NDArray<T> |
Return a new NDArray with filterd elements.
|
|
Improve this Doc
View Source
Item[Int32[]]
Declaration
public T this[params int[] select] { get; set; }
Parameters
| Type |
Name |
Description |
| System.Int32[] |
select |
|
Property Value
|
Improve this Doc
View Source
NDim
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Shape
Data length of every dimension
Declaration
public Shape Shape { get; set; }
Property Value
|
Improve this Doc
View Source
Size
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
Methods
|
Improve this Doc
View Source
_ParseNumber(T, ref Int32, ref Int32)
Declaration
protected string _ParseNumber(T number, ref int noBefore, ref int noAfter)
Parameters
| Type |
Name |
Description |
| T |
number |
|
| System.Int32 |
noBefore |
|
| System.Int32 |
noAfter |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
_ToMatrixString()
Declaration
protected string _ToMatrixString()
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
_ToVectorString()
Declaration
protected string _ToVectorString()
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
arange(Int32, Int32, Int32)
Declaration
public NDArray<T> arange(int stop, int start = 0, int step = 1)
Parameters
| Type |
Name |
Description |
| System.Int32 |
stop |
|
| System.Int32 |
start |
|
| System.Int32 |
step |
|
Returns
|
Improve this Doc
View Source
dot(NDArray<T>)
Declaration
public NDArray<T> dot(NDArray<T> np2)
Parameters
| Type |
Name |
Description |
| NDArray<T> |
np2 |
|
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator GetEnumerator()
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
inv()
Declaration
Returns
|
Improve this Doc
View Source
linspace(Double, Double, Int32, Boolean)
Declaration
public NDArray<T> linspace(double start, double stop, int num, bool entdpoint = true)
Parameters
| Type |
Name |
Description |
| System.Double |
start |
|
| System.Double |
stop |
|
| System.Int32 |
num |
|
| System.Boolean |
entdpoint |
|
Returns
|
Improve this Doc
View Source
log()
Declaration
Returns
|
Improve this Doc
View Source
MoveNext()
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
multi_dot(NDArray<T>[])
Declaration
public NDArray<T> multi_dot(params NDArray<T>[] np2Multi)
Parameters
| Type |
Name |
Description |
| NDArray<T>[] |
np2Multi |
|
Returns
|
Improve this Doc
View Source
power(T)
Declaration
public NDArray<T> power(T exponent)
Parameters
| Type |
Name |
Description |
| T |
exponent |
|
Returns
|
Improve this Doc
View Source
Reset()
Declaration
|
Improve this Doc
View Source
reshape(Int32[])
Gives a new shape to an array without changing its data.
Declaration
public NDArray<T> reshape(params int[] shape)
Parameters
| Type |
Name |
Description |
| System.Int32[] |
shape |
|
Returns
|
Improve this Doc
View Source
Set(Shape, T)
Declaration
public void Set(Shape shape, T value)
Parameters
| Type |
Name |
Description |
| Shape |
shape |
|
| T |
value |
|
|
Improve this Doc
View Source
ToDotNetArray<TCast>()
Declaration
public TCast ToDotNetArray<TCast>()
Returns
Type Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
transpose()
Declaration
public NDArray<T> transpose()
Returns
Operators
|
Improve this Doc
View Source
Addition(NDArray<T>, T)
Declaration
public static NDArray<T> operator +(NDArray<T> np1, T scalar)
Parameters
| Type |
Name |
Description |
| NDArray<T> |
np1 |
|
| T |
scalar |
|
Returns
|
Improve this Doc
View Source
Addition(NDArray<T>, NDArray<T>)
Declaration
public static NDArray<T> operator +(NDArray<T> np1, NDArray<T> np2)
Parameters
Returns
|
Improve this Doc
View Source
Division(NDArray<T>, T)
Declaration
public static NDArray<T> operator /(NDArray<T> np1, T scalar)
Parameters
| Type |
Name |
Description |
| NDArray<T> |
np1 |
|
| T |
scalar |
|
Returns
|
Improve this Doc
View Source
Division(NDArray<T>, NDArray<T>)
Declaration
public static NDArray<T> operator /(NDArray<T> np1, NDArray<T> np2)
Parameters
Returns
|
Improve this Doc
View Source
Equality(NDArray<T>, Object)
Declaration
public static bool operator ==(NDArray<T> np, object obj)
Parameters
| Type |
Name |
Description |
| NDArray<T> |
np |
|
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Inequality(NDArray<T>, Object)
Declaration
public static bool operator !=(NDArray<T> np, object obj)
Parameters
| Type |
Name |
Description |
| NDArray<T> |
np |
|
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Multiply(T, NDArray<T>)
Declaration
public static NDArray<T> operator *(T scalar, NDArray<T> np1)
Parameters
| Type |
Name |
Description |
| T |
scalar |
|
| NDArray<T> |
np1 |
|
Returns
|
Improve this Doc
View Source
Multiply(NDArray<T>, T)
Declaration
public static NDArray<T> operator *(NDArray<T> np1, T scalar)
Parameters
| Type |
Name |
Description |
| NDArray<T> |
np1 |
|
| T |
scalar |
|
Returns
|
Improve this Doc
View Source
Multiply(NDArray<T>, NDArray<T>)
Declaration
public static NDArray<T> operator *(NDArray<T> np1, NDArray<T> np2)
Parameters
Returns
|
Improve this Doc
View Source
Subtraction(NDArray<T>, T)
Declaration
public static NDArray<T> operator -(NDArray<T> np1, T scalar)
Parameters
| Type |
Name |
Description |
| NDArray<T> |
np1 |
|
| T |
scalar |
|
Returns
|
Improve this Doc
View Source
Subtraction(NDArray<T>, NDArray<T>)
Declaration
public static NDArray<T> operator -(NDArray<T> np1, NDArray<T> np2)
Parameters
Returns
Implements
System.Collections.IEnumerable
System.Collections.IEnumerator
Extension Methods