Class NumPy<T>
API bridge between NumSharp and Python NumPy
Inheritance
System.Object
NumPy<T>
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
Type Parameters
Properties
|
Improve this Doc
View Source
random
Declaration
public NDArrayRandom random { get; }
Property Value
Methods
|
Improve this Doc
View Source
absolute(NDArray<Double>)
Declaration
public NDArray<double> absolute(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>)
Declaration
public NDArray<double> amax(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 NDArray<double> amin(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
arange(Int32)
Declaration
public NDArray<T> arange(int stop)
Parameters
| Type |
Name |
Description |
| System.Int32 |
stop |
|
Returns
|
Improve this Doc
View Source
arange(Int32, Int32, Int32)
Declaration
public NDArray<T> arange(int start, int stop, int step = 1)
Parameters
| Type |
Name |
Description |
| System.Int32 |
start |
|
| System.Int32 |
stop |
|
| System.Int32 |
step |
|
Returns
|
Improve this Doc
View Source
array(T[])
Declaration
public NDArray<T> array(T[] data)
Parameters
| Type |
Name |
Description |
| T[] |
data |
|
Returns
|
Improve this Doc
View Source
array(T[][])
Declaration
public NDArray<T> array(T[][] data)
Parameters
| Type |
Name |
Description |
| T[][] |
data |
|
Returns
|
Improve this Doc
View Source
hstack(NDArray<Double>[])
Declaration
public NDArray<double> hstack(params NDArray<double>[] nps)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double>[] |
nps |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
linspace(Double, Double, Int32)
Returns num evenly spaced samples, calculated over the interval [start, stop].
Declaration
public NDArray<double> linspace(double start, double stop, int num = 50)
Parameters
| Type |
Name |
Description |
| System.Double |
start |
|
| System.Double |
stop |
|
| System.Int32 |
num |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
max(NDArray<Double>)
Declaration
public NDArray<double> max(NDArray<double> nd)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
nd |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
power(NDArray<Double>, Double)
Declaration
public NDArray<double> power(NDArray<double> nd, double exponent)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double> |
nd |
|
| System.Double |
exponent |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
reshape(NDArray<Int32>, Int32[])
Declaration
public NDArray<int> reshape(NDArray<int> np, params int[] shape)
Parameters
| Type |
Name |
Description |
| NDArray<System.Int32> |
np |
|
| System.Int32[] |
shape |
|
Returns
| Type |
Description |
| NDArray<System.Int32> |
|
|
Improve this Doc
View Source
vstack(NDArray<Double>[])
Declaration
public NDArray<double> vstack(params NDArray<double>[] nps)
Parameters
| Type |
Name |
Description |
| NDArray<System.Double>[] |
nps |
|
Returns
| Type |
Description |
| NDArray<System.Double> |
|
|
Improve this Doc
View Source
zeros(Int32[])
Declaration
public NDArray<T> zeros(params int[] shape)
Parameters
| Type |
Name |
Description |
| System.Int32[] |
shape |
|
Returns
Extension Methods