Class np
API bridge between NumSharp and Python NumPy
Inheritance
System.Object
np
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.Core.dll
Syntax
Properties
|
Improve this Doc
View Source
chars
Declaration
public static Type chars { get; }
Property Value
Type |
Description |
System.Type |
|
|
Improve this Doc
View Source
float32
Declaration
public static Type float32 { get; }
Property Value
Type |
Description |
System.Type |
|
|
Improve this Doc
View Source
float64
Declaration
public static Type float64 { get; }
Property Value
Type |
Description |
System.Type |
|
|
Improve this Doc
View Source
int16
Declaration
public static Type int16 { get; }
Property Value
Type |
Description |
System.Type |
|
|
Improve this Doc
View Source
int32
Declaration
public static Type int32 { get; }
Property Value
Type |
Description |
System.Type |
|
|
Improve this Doc
View Source
int64
Declaration
public static Type int64 { get; }
Property Value
Type |
Description |
System.Type |
|
Methods
|
Improve this Doc
View Source
amax(NDArray, Nullable<Int32>)
Declaration
public static NDArray amax(NDArray nd, int? axis = default(int? ))
Parameters
Type |
Name |
Description |
NDArray |
nd |
|
System.Nullable<System.Int32> |
axis |
|
Returns
|
Improve this Doc
View Source
amin(NDArray, Nullable<Int32>)
Declaration
public static NDArray amin(NDArray nd, int? axis = default(int? ))
Parameters
Type |
Name |
Description |
NDArray |
nd |
|
System.Nullable<System.Int32> |
axis |
|
Returns
|
Improve this Doc
View Source
arange(Double)
Declaration
public static NDArray arange(double stop)
Parameters
Type |
Name |
Description |
System.Double |
stop |
|
Returns
|
Improve this Doc
View Source
arange(Double, Double, Double)
Declaration
public static NDArray arange(double start, double stop, double step = 1)
Parameters
Type |
Name |
Description |
System.Double |
start |
|
System.Double |
stop |
|
System.Double |
step |
|
Returns
|
Improve this Doc
View Source
arange(Int32)
Declaration
public static NDArray arange(int stop)
Parameters
Type |
Name |
Description |
System.Int32 |
stop |
|
Returns
|
Improve this Doc
View Source
arange(Int32, Int32, Int32)
Declaration
public static NDArray 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(Array, Type, Int32)
Declaration
public static NDArray array(Array array, Type dtype = null, int ndim = 1)
Parameters
Type |
Name |
Description |
System.Array |
array |
|
System.Type |
dtype |
|
System.Int32 |
ndim |
|
Returns
|
Improve this Doc
View Source
array(Bitmap)
Declaration
public static NDArray array(Bitmap image)
Parameters
Type |
Name |
Description |
System.Drawing.Bitmap |
image |
|
Returns
|
Improve this Doc
View Source
array<T>(T[][])
Declaration
public static NDArray array<T>(T[][] data)
Parameters
Type |
Name |
Description |
T[][] |
data |
|
Returns
Type Parameters
|
Improve this Doc
View Source
asarray(Double[], Int32)
Declaration
public static NDArray asarray(double[] data, int ndim = 1)
Parameters
Type |
Name |
Description |
System.Double[] |
data |
|
System.Int32 |
ndim |
|
Returns
|
Improve this Doc
View Source
asarray(Single)
Declaration
public static NDArray asarray(float data)
Parameters
Type |
Name |
Description |
System.Single |
data |
|
Returns
|
Improve this Doc
View Source
asarray(Single[], Int32)
Declaration
public static NDArray asarray(float[] data, int ndim = 1)
Parameters
Type |
Name |
Description |
System.Single[] |
data |
|
System.Int32 |
ndim |
|
Returns
|
Improve this Doc
View Source
asmatrix(NDArray)
Declaration
public static matrix asmatrix(NDArray nd)
Parameters
Returns
|
Improve this Doc
View Source
dot(NDArray, NDArray)
Declaration
public static NDArray dot(NDArray a, NDArray b)
Parameters
Returns
|
Improve this Doc
View Source
eye(Int32, Int32, Type)
Declaration
public static NDArray eye(int dim, int diagonalIndex = 0, Type dtype = null)
Parameters
Type |
Name |
Description |
System.Int32 |
dim |
|
System.Int32 |
diagonalIndex |
|
System.Type |
dtype |
|
Returns
|
Improve this Doc
View Source
hstack(NDArray[])
Declaration
public static NDArray hstack(params NDArray[] nps)
Parameters
Type |
Name |
Description |
NDArray[] |
nps |
|
Returns
|
Improve this Doc
View Source
linspace(Double, Double, Int32, Boolean, Type)
Declaration
public static NDArray linspace(double start, double stop, int num, bool entdpoint = true, Type dtype = null)
Parameters
Type |
Name |
Description |
System.Double |
start |
|
System.Double |
stop |
|
System.Int32 |
num |
|
System.Boolean |
entdpoint |
|
System.Type |
dtype |
|
Returns
|
Improve this Doc
View Source
linspace<T>(Double, Double, Int32, Boolean)
Declaration
public static NDArray linspace<T>(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
Type Parameters
|
Improve this Doc
View Source
log(NDArray)
Declaration
public static NDArray log(NDArray nd)
Parameters
Returns
|
Improve this Doc
View Source
mean(NDArray, Int32)
Declaration
public static NDArray mean(NDArray np, int axis = -1)
Parameters
Type |
Name |
Description |
NDArray |
np |
|
System.Int32 |
axis |
|
Returns
|
Improve this Doc
View Source
ones(Shape, Type)
Return a new array of given shape and type, filled with ones.
Declaration
public static NDArray ones(Shape shape, Type dtype = null)
Parameters
Type |
Name |
Description |
Shape |
shape |
|
System.Type |
dtype |
|
Returns
|
Improve this Doc
View Source
ones(Int32[])
Declaration
public static NDArray ones(params int[] shapes)
Parameters
Type |
Name |
Description |
System.Int32[] |
shapes |
|
Returns
|
Improve this Doc
View Source
ones(Type, Int32[])
Declaration
public static NDArray ones(Type dtype = null, params int[] shapes)
Parameters
Type |
Name |
Description |
System.Type |
dtype |
|
System.Int32[] |
shapes |
|
Returns
|
Improve this Doc
View Source
ones_like(NDArray, String)
Declaration
public static NDArray ones_like(NDArray nd, string order = "C")
Parameters
Type |
Name |
Description |
NDArray |
nd |
|
System.String |
order |
|
Returns
|
Improve this Doc
View Source
ones<T>(Int32[])
Declaration
public static NDArray ones<T>(params int[] shapes)
Parameters
Type |
Name |
Description |
System.Int32[] |
shapes |
|
Returns
Type Parameters
|
Improve this Doc
View Source
power(NDArray, ValueType)
Declaration
public static NDArray power(NDArray nd, ValueType exponent)
Parameters
Type |
Name |
Description |
NDArray |
nd |
|
System.ValueType |
exponent |
|
Returns
|
Improve this Doc
View Source
power<T>(NDArray, T)
Declaration
public static NDArray power<T>(NDArray nd, T exponent)
Parameters
Type |
Name |
Description |
NDArray |
nd |
|
T |
exponent |
|
Returns
Type Parameters
|
Improve this Doc
View Source
reshape(NDArray, Int32[])
Declaration
public static NDArray reshape(NDArray nd, params int[] shape)
Parameters
Type |
Name |
Description |
NDArray |
nd |
|
System.Int32[] |
shape |
|
Returns
|
Improve this Doc
View Source
sin(NDArray)
Declaration
public static NDArray sin(NDArray nd)
Parameters
Returns
|
Improve this Doc
View Source
transpose(NDArray)
Declaration
public static NDArray transpose(NDArray nd)
Parameters
Returns
|
Improve this Doc
View Source
vstack(NDArray[])
Declaration
public static NDArray vstack(params NDArray[] nps)
Parameters
Type |
Name |
Description |
NDArray[] |
nps |
|
Returns
|
Improve this Doc
View Source
vstack<T>(NDArray[])
Stack arrays in sequence vertically (row wise).
Declaration
public static NDArray vstack<T>(params NDArray[] nps)
Parameters
Type |
Name |
Description |
NDArray[] |
nps |
|
Returns
Type Parameters
|
Improve this Doc
View Source
zeros(Shape, Type)
Declaration
public static NDArray zeros(Shape shape, Type dtype = null)
Parameters
Type |
Name |
Description |
Shape |
shape |
|
System.Type |
dtype |
|
Returns
|
Improve this Doc
View Source
zeros(Int32[])
Return a new float array of given shape, filled with zeros.
Declaration
public static NDArray zeros(params int[] shape)
Parameters
Type |
Name |
Description |
System.Int32[] |
shape |
|
Returns
|
Improve this Doc
View Source
zeros<T>(Int32[])
Declaration
public static NDArray zeros<T>(params int[] shape)
Parameters
Type |
Name |
Description |
System.Int32[] |
shape |
|
Returns
Type Parameters