Class NDArrayExtensions
Inheritance
System.Object
NDArrayExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NumSharp.dll
Syntax
public static class NDArrayExtensions
Methods
|
Improve this Doc
View Source
Absolute(NDArray<Double>)
Declaration
public static NDArray<double> Absolute(this NDArray<double> np)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
AMax(NDArray<Double>, Nullable<Int32>)
Return the maximum of an array or minimum along an axis
Declaration
public static NDArray<double> AMax(this NDArray<double> np, int? axis = default(int? ))
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
| System.Nullable<System.Int32> |
axis |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
AMin(NDArray<Double>, Nullable<Int32>)
Declaration
public static NDArray<double> AMin(this NDArray<double> np, int? axis = default(int? ))
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
| System.Nullable<System.Int32> |
axis |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
ArgMax(NDArray<Double>)
Declaration
public static int ArgMax(this NDArray<double> np)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
ArgMax(NDArray<Int32>)
Declaration
public static int ArgMax(this NDArray<int> np)
Parameters
| Type |
Name |
Description |
| NDArray<System.Int32> |
np |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
AsMatrix(NDArray<Double>)
Declaration
public static Matrix<double> AsMatrix(this NDArray<double> np)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
Returns
| Type |
Description |
| Matrix<System.Double> |
|
|
Improve this Doc
View Source
Convolve(NDArray<Double>, NDArray<Double>, String)
Declaration
public static NDArray<double> Convolve(this NDArray<double> numSharpArray1, NDArray<double> numSharpArray2, string mode = "full")
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
numSharpArray1 |
|
| NDArray<System.Double> |
numSharpArray2 |
|
| System.String |
mode |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
Eye(NDArray<Double>, Int32, Int32)
Declaration
public static NDArray<double> Eye(this NDArray<double> np, int dim, int diagonalIndex = 0)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
| System.Int32 |
dim |
|
| System.Int32 |
diagonalIndex |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
Eye(NDArray<Int32>, Int32, Int32)
Declaration
public static NDArray<int> Eye(this NDArray<int> np, int dim, int diagonalIndex = 0)
Parameters
| Type |
Name |
Description |
| NDArray<System.Int32> |
np |
|
| System.Int32 |
dim |
|
| System.Int32 |
diagonalIndex |
|
Returns
| Type |
Description |
| NDArray<System.Int32> |
|
|
Improve this Doc
View Source
HStack<T>(NDArray<T>, NDArray<T>[])
Stack arrays in sequence horizontally
Declaration
public static NDArray<T> HStack<T>(this NDArray<T> np1, params NDArray<T>[] nps)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
Max(NDArray<Double>)
Declaration
public static NDArray<double> Max(this NDArray<double> np)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
Mean(NDArray<Double>, Int32)
Declaration
public static NDArray<double> Mean(this NDArray<double> np, int axis = -1)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
| System.Int32 |
axis |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
Min(NDArray<Double>)
Declaration
public static NDArray<double> Min(this NDArray<double> np)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
Normalize(NDArray<Double>)
Declaration
public static void Normalize(this NDArray<double> np)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
|
Improve this Doc
View Source
Sqrt(NDArray<Double>)
Declaration
public static NDArray<double> Sqrt(this NDArray<double> np)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
Sqrt(NDArray<Complex>)
Declaration
public static NDArray<Complex> Sqrt(this NDArray<Complex> np)
Parameters
| Type |
Name |
Description |
| NDArray<System.Numerics.Complex> |
np |
|
Returns
| Type |
Description |
| NDArray<System.Numerics.Complex> |
|
|
Improve this Doc
View Source
Std(NDArray<Double>, Int32)
Declaration
public static NDArray<double> Std(this NDArray<double> np, int axis = -1)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
| System.Int32 |
axis |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
Sum<TData>(NDArray<TData>, NDArray<TData>)
Declaration
public static int Sum<TData>(this NDArray<TData> np, NDArray<TData> np2)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
Type Parameters
|
Improve this Doc
View Source
Unique<T>(NDArray<T>)
Declaration
public static NDArray<T> Unique<T>(this NDArray<T> np)
Parameters
| Type |
Name |
Description |
| NDArray<T> |
np |
|
Returns
Type Parameters
|
Improve this Doc
View Source
VStack<T>(NDArray<T>, NDArray<T>[])
Stack arrays in sequence vertically (row wise).
Declaration
public static NDArray<T> VStack<T>(this NDArray<T> np1, params NDArray<T>[] nps)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
Zeros(NDArray<Double>, Int32[])
Declaration
public static NDArray<double> Zeros(this NDArray<double> np, params int[] shape)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
np |
|
| System.Int32[] |
shape |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
Zeros(NDArray<Int32>, Int32[])
Return a new array of given shape and type, filled with zeros.
Declaration
public static NDArray<int> Zeros(this NDArray<int> np, params int[] shape)
Parameters
| Type |
Name |
Description |
| NDArray<System.Int32> |
np |
|
| System.Int32[] |
shape |
|
Returns
| Type |
Description |
| NDArray<System.Int32> |
|