Table of Contents

Class TensorEngine

Namespace
NumSharp
Assembly
NumSharp.dll
public abstract class TensorEngine
Inheritance
TensorEngine
Derived
Inherited Members
Extension Methods

Methods

ACos(in NDArray, NPTypeCode?)

public abstract NDArray ACos(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

ACos(in NDArray, Type)

public abstract NDArray ACos(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

AMax(in NDArray, int, Type, bool)

public abstract NDArray AMax(in NDArray nd, int axis, Type dtype, bool keepdims = false)

Parameters

nd NDArray
axis int
dtype Type
keepdims bool

Returns

NDArray

AMax(in NDArray, int?, NPTypeCode?, bool)

public abstract NDArray AMax(in NDArray nd, int? axis = null, NPTypeCode? typeCode = null, bool keepdims = false)

Parameters

nd NDArray
axis int?
typeCode NPTypeCode?
keepdims bool

Returns

NDArray

AMin(in NDArray, int, Type, bool)

public abstract NDArray AMin(in NDArray nd, int axis, Type dtype, bool keepdims = false)

Parameters

nd NDArray
axis int
dtype Type
keepdims bool

Returns

NDArray

AMin(in NDArray, int?, NPTypeCode?, bool)

public abstract NDArray AMin(in NDArray nd, int? axis = null, NPTypeCode? typeCode = null, bool keepdims = false)

Parameters

nd NDArray
axis int?
typeCode NPTypeCode?
keepdims bool

Returns

NDArray

ASin(in NDArray, NPTypeCode?)

public abstract NDArray ASin(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

ASin(in NDArray, Type)

public abstract NDArray ASin(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

ATan(in NDArray, NPTypeCode?)

public abstract NDArray ATan(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

ATan(in NDArray, Type)

public abstract NDArray ATan(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

ATan2(in NDArray, in NDArray, NPTypeCode?)

public abstract NDArray ATan2(in NDArray y, in NDArray x, NPTypeCode? typeCode = null)

Parameters

y NDArray
x NDArray
typeCode NPTypeCode?

Returns

NDArray

ATan2(in NDArray, in NDArray, Type)

public abstract NDArray ATan2(in NDArray y, in NDArray x, Type dtype)

Parameters

y NDArray
x NDArray
dtype Type

Returns

NDArray

Abs(in NDArray, NPTypeCode?)

public abstract NDArray Abs(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Abs(in NDArray, Type)

public abstract NDArray Abs(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Add(in NDArray, in NDArray)

public abstract NDArray Add(in NDArray lhs, in NDArray rhs)

Parameters

lhs NDArray
rhs NDArray

Returns

NDArray

All(NDArray)

public abstract bool All(NDArray nd)

Parameters

nd NDArray

Returns

bool

All(NDArray, int)

public abstract NDArray<bool> All(NDArray nd, int axis)

Parameters

nd NDArray
axis int

Returns

NDArray<bool>

AllClose(NDArray, NDArray, double, double, bool)

public abstract bool AllClose(NDArray a, NDArray b, double rtol = 1E-05, double atol = 1E-08, bool equal_nan = false)

Parameters

a NDArray
b NDArray
rtol double
atol double
equal_nan bool

Returns

bool

ArgMax(in NDArray)

public abstract NDArray ArgMax(in NDArray a)

Parameters

a NDArray

Returns

NDArray

ArgMax(in NDArray, int)

public abstract NDArray ArgMax(in NDArray a, int axis)

Parameters

a NDArray
axis int

Returns

NDArray

ArgMin(in NDArray)

public abstract NDArray ArgMin(in NDArray a)

Parameters

a NDArray

Returns

NDArray

ArgMin(in NDArray, int)

public abstract NDArray ArgMin(in NDArray a, int axis)

Parameters

a NDArray
axis int

Returns

NDArray

Cast(NDArray, NPTypeCode, bool)

public abstract NDArray Cast(NDArray x, NPTypeCode dtype, bool copy)

Parameters

x NDArray
dtype NPTypeCode
copy bool

Returns

NDArray

Cast(NDArray, Type, bool)

public abstract NDArray Cast(NDArray x, Type dtype, bool copy)

Parameters

x NDArray
dtype Type
copy bool

Returns

NDArray

Ceil(in NDArray, NPTypeCode?)

public abstract NDArray Ceil(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Ceil(in NDArray, Type)

public abstract NDArray Ceil(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Clip(in NDArray, in ValueType, in ValueType, NPTypeCode?)

public abstract NDArray Clip(in NDArray lhs, in ValueType min, in ValueType max, NPTypeCode? typeCode = null)

Parameters

lhs NDArray
min ValueType
max ValueType
typeCode NPTypeCode?

Returns

NDArray

Clip(in NDArray, in ValueType, in ValueType, Type)

public abstract NDArray Clip(in NDArray lhs, in ValueType min, in ValueType max, Type dtype)

Parameters

lhs NDArray
min ValueType
max ValueType
dtype Type

Returns

NDArray

ClipNDArray(in NDArray, in NDArray, in NDArray, NPTypeCode?, NDArray)

public abstract NDArray ClipNDArray(in NDArray lhs, in NDArray min, in NDArray max, NPTypeCode? typeCode = null, NDArray @out = null)

Parameters

lhs NDArray
min NDArray
max NDArray
typeCode NPTypeCode?
out NDArray

Returns

NDArray

ClipNDArray(in NDArray, in NDArray, in NDArray, Type, NDArray)

public abstract NDArray ClipNDArray(in NDArray lhs, in NDArray min, in NDArray max, Type dtype, NDArray @out = null)

Parameters

lhs NDArray
min NDArray
max NDArray
dtype Type
out NDArray

Returns

NDArray

Compare(in NDArray, in NDArray)

public abstract NDArray<bool> Compare(in NDArray lhs, in NDArray rhs)

Parameters

lhs NDArray
rhs NDArray

Returns

NDArray<bool>

Cos(in NDArray, NPTypeCode?)

public abstract NDArray Cos(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Cos(in NDArray, Type)

public abstract NDArray Cos(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Cosh(in NDArray, NPTypeCode?)

public abstract NDArray Cosh(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Cosh(in NDArray, Type)

public abstract NDArray Cosh(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

CreateNDArray(Shape, Type, IArraySlice, char)

public abstract NDArray CreateNDArray(Shape shape, Type dtype = null, IArraySlice buffer = null, char order = 'C')

Parameters

shape Shape
dtype Type
buffer IArraySlice
order char

Returns

NDArray

CreateNDArray(Shape, Type, Array, char)

public abstract NDArray CreateNDArray(Shape shape, Type dtype = null, Array buffer = null, char order = 'C')

Parameters

shape Shape
dtype Type
buffer Array
order char

Returns

NDArray

Divide(in NDArray, in NDArray)

public abstract NDArray Divide(in NDArray lhs, in NDArray rhs)

Parameters

lhs NDArray
rhs NDArray

Returns

NDArray

Dot(in NDArray, in NDArray)

public abstract NDArray Dot(in NDArray x, in NDArray y)

Parameters

x NDArray
y NDArray

Returns

NDArray

Exp(in NDArray, NPTypeCode?)

public abstract NDArray Exp(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Exp(in NDArray, Type)

public abstract NDArray Exp(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Exp2(in NDArray, NPTypeCode?)

public abstract NDArray Exp2(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Exp2(in NDArray, Type)

public abstract NDArray Exp2(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Expm1(in NDArray, NPTypeCode?)

public abstract NDArray Expm1(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Expm1(in NDArray, Type)

public abstract NDArray Expm1(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Floor(in NDArray, NPTypeCode?)

public abstract NDArray Floor(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Floor(in NDArray, Type)

public abstract NDArray Floor(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

GetStorage(NPTypeCode)

Get storage for given typeCode.

public abstract UnmanagedStorage GetStorage(NPTypeCode typeCode)

Parameters

typeCode NPTypeCode

Returns

UnmanagedStorage

GetStorage(Type)

Get storage for given dtype.

public abstract UnmanagedStorage GetStorage(Type dtype)

Parameters

dtype Type

Returns

UnmanagedStorage

IsClose(NDArray, NDArray, double, double, bool)

public abstract NDArray<bool> IsClose(NDArray a, NDArray b, double rtol = 1E-05, double atol = 1E-08, bool equal_nan = false)

Parameters

a NDArray
b NDArray
rtol double
atol double
equal_nan bool

Returns

NDArray<bool>

IsFinite(NDArray)

public abstract NDArray<bool> IsFinite(NDArray a)

Parameters

a NDArray

Returns

NDArray<bool>

IsNan(NDArray)

public abstract NDArray<bool> IsNan(NDArray a)

Parameters

a NDArray

Returns

NDArray<bool>

Log(in NDArray, NPTypeCode?)

public abstract NDArray Log(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Log(in NDArray, Type)

public abstract NDArray Log(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Log10(in NDArray, NPTypeCode?)

public abstract NDArray Log10(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Log10(in NDArray, Type)

public abstract NDArray Log10(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Log1p(in NDArray, NPTypeCode?)

public abstract NDArray Log1p(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Log1p(in NDArray, Type)

public abstract NDArray Log1p(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Log2(in NDArray, NPTypeCode?)

public abstract NDArray Log2(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Log2(in NDArray, Type)

public abstract NDArray Log2(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Matmul(NDArray, NDArray)

public abstract NDArray Matmul(NDArray lhs, NDArray rhs)

Parameters

lhs NDArray
rhs NDArray

Returns

NDArray

Mean(in NDArray, int, Type, bool)

public abstract NDArray Mean(in NDArray nd, int axis, Type dtype, bool keepdims = false)

Parameters

nd NDArray
axis int
dtype Type
keepdims bool

Returns

NDArray

Mean(in NDArray, int?, NPTypeCode?, bool)

public abstract NDArray Mean(in NDArray nd, int? axis = null, NPTypeCode? typeCode = null, bool keepdims = false)

Parameters

nd NDArray
axis int?
typeCode NPTypeCode?
keepdims bool

Returns

NDArray

Mod(in NDArray, in NDArray)

public abstract NDArray Mod(in NDArray lhs, in NDArray rhs)

Parameters

lhs NDArray
rhs NDArray

Returns

NDArray

ModF(in NDArray, NPTypeCode?)

public abstract (NDArray Fractional, NDArray Intergral) ModF(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

(NDArray Lhs, NDArray Rhs)

ModF(in NDArray, Type)

public abstract (NDArray Fractional, NDArray Intergral) ModF(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

(NDArray Lhs, NDArray Rhs)

MoveAxis(in NDArray, int[], int[])

public abstract NDArray MoveAxis(in NDArray nd, int[] source, int[] destinition)

Parameters

nd NDArray
source int[]
destinition int[]

Returns

NDArray

Multiply(NDArray, NDArray)

public abstract NDArray Multiply(NDArray lhs, NDArray rhs)

Parameters

lhs NDArray
rhs NDArray

Returns

NDArray

Negate(in NDArray)

public abstract NDArray Negate(in NDArray nd)

Parameters

nd NDArray

Returns

NDArray

NonZero(in NDArray)

public abstract NDArray<int>[] NonZero(in NDArray a)

Parameters

a NDArray

Returns

NDArray<int>[]

Power(in NDArray, in ValueType, NPTypeCode?)

public abstract NDArray Power(in NDArray lhs, in ValueType rhs, NPTypeCode? typeCode = null)

Parameters

lhs NDArray
rhs ValueType
typeCode NPTypeCode?

Returns

NDArray

Power(in NDArray, in ValueType, Type)

public abstract NDArray Power(in NDArray lhs, in ValueType rhs, Type type)

Parameters

lhs NDArray
rhs ValueType
type Type

Returns

NDArray

ReduceAMax(NDArray, int?, bool, NPTypeCode?)

public abstract NDArray ReduceAMax(NDArray arr, int? axis_, bool keepdims = false, NPTypeCode? typeCode = null)

Parameters

arr NDArray
axis_ int?
keepdims bool
typeCode NPTypeCode?

Returns

NDArray

ReduceAMin(NDArray, int?, bool, NPTypeCode?)

public abstract NDArray ReduceAMin(NDArray arr, int? axis_, bool keepdims = false, NPTypeCode? typeCode = null)

Parameters

arr NDArray
axis_ int?
keepdims bool
typeCode NPTypeCode?

Returns

NDArray

ReduceAdd(in NDArray, int?, bool, NPTypeCode?, NDArray)

public abstract NDArray ReduceAdd(in NDArray arr, int? axis_, bool keepdims = false, NPTypeCode? typeCode = null, NDArray @out = null)

Parameters

arr NDArray
axis_ int?
keepdims bool
typeCode NPTypeCode?
out NDArray

Returns

NDArray

ReduceArgMax(NDArray, int?)

public abstract NDArray ReduceArgMax(NDArray arr, int? axis_)

Parameters

arr NDArray
axis_ int?

Returns

NDArray

ReduceArgMin(NDArray, int?)

public abstract NDArray ReduceArgMin(NDArray arr, int? axis_)

Parameters

arr NDArray
axis_ int?

Returns

NDArray

ReduceCumAdd(in NDArray, int?, NPTypeCode?)

public abstract NDArray ReduceCumAdd(in NDArray arr, int? axis_, NPTypeCode? typeCode = null)

Parameters

arr NDArray
axis_ int?
typeCode NPTypeCode?

Returns

NDArray

ReduceMean(in NDArray, int?, bool, NPTypeCode?)

public abstract NDArray ReduceMean(in NDArray arr, int? axis_, bool keepdims = false, NPTypeCode? typeCode = null)

Parameters

arr NDArray
axis_ int?
keepdims bool
typeCode NPTypeCode?

Returns

NDArray

ReduceProduct(NDArray, int?, bool, NPTypeCode?)

public abstract NDArray ReduceProduct(NDArray arr, int? axis_, bool keepdims = false, NPTypeCode? typeCode = null)

Parameters

arr NDArray
axis_ int?
keepdims bool
typeCode NPTypeCode?

Returns

NDArray

ReduceStd(NDArray, int?, bool, int?, NPTypeCode?)

public abstract NDArray ReduceStd(NDArray arr, int? axis_, bool keepdims = false, int? ddof = null, NPTypeCode? typeCode = null)

Parameters

arr NDArray
axis_ int?
keepdims bool
ddof int?
typeCode NPTypeCode?

Returns

NDArray

ReduceVar(NDArray, int?, bool, int?, NPTypeCode?)

public abstract NDArray ReduceVar(NDArray arr, int? axis_, bool keepdims = false, int? ddof = null, NPTypeCode? typeCode = null)

Parameters

arr NDArray
axis_ int?
keepdims bool
ddof int?
typeCode NPTypeCode?

Returns

NDArray

RollAxis(in NDArray, int, int)

public abstract NDArray RollAxis(in NDArray nd, int axis, int start = 0)

Parameters

nd NDArray
axis int
start int

Returns

NDArray

Round(in NDArray, int, NPTypeCode?)

public abstract NDArray Round(in NDArray nd, int decimals, NPTypeCode? typeCode = null)

Parameters

nd NDArray
decimals int
typeCode NPTypeCode?

Returns

NDArray

Round(in NDArray, int, Type)

public abstract NDArray Round(in NDArray nd, int decimals, Type dtype)

Parameters

nd NDArray
decimals int
dtype Type

Returns

NDArray

Round(in NDArray, NPTypeCode?)

public abstract NDArray Round(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Round(in NDArray, Type)

public abstract NDArray Round(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Sign(in NDArray, NPTypeCode?)

public abstract NDArray Sign(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Sign(in NDArray, Type)

public abstract NDArray Sign(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Sin(in NDArray, NPTypeCode?)

public abstract NDArray Sin(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Sin(in NDArray, Type)

public abstract NDArray Sin(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Sinh(in NDArray, NPTypeCode?)

public abstract NDArray Sinh(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Sinh(in NDArray, Type)

public abstract NDArray Sinh(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Sqrt(in NDArray, NPTypeCode?)

public abstract NDArray Sqrt(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Sqrt(in NDArray, Type)

public abstract NDArray Sqrt(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Subtract(in NDArray, in NDArray)

public abstract NDArray Subtract(in NDArray lhs, in NDArray rhs)

Parameters

lhs NDArray
rhs NDArray

Returns

NDArray

Sum(in NDArray, int, Type, bool)

public abstract NDArray Sum(in NDArray nd, int axis, Type dtype, bool keepdims = false)

Parameters

nd NDArray
axis int
dtype Type
keepdims bool

Returns

NDArray

Sum(in NDArray, int?, NPTypeCode?, bool)

public abstract NDArray Sum(in NDArray nd, int? axis = null, NPTypeCode? typeCode = null, bool keepdims = false)

Parameters

nd NDArray
axis int?
typeCode NPTypeCode?
keepdims bool

Returns

NDArray

SwapAxes(in NDArray, int, int)

public abstract NDArray SwapAxes(in NDArray nd, int axis1, int axis2)

Parameters

nd NDArray
axis1 int
axis2 int

Returns

NDArray

Tan(in NDArray, NPTypeCode?)

public abstract NDArray Tan(in NDArray nd, NPTypeCode? typeCod = null)

Parameters

nd NDArray
typeCod NPTypeCode?

Returns

NDArray

Tan(in NDArray, Type)

public abstract NDArray Tan(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Tanh(in NDArray, NPTypeCode?)

public abstract NDArray Tanh(in NDArray nd, NPTypeCode? typeCode = null)

Parameters

nd NDArray
typeCode NPTypeCode?

Returns

NDArray

Tanh(in NDArray, Type)

public abstract NDArray Tanh(in NDArray nd, Type dtype)

Parameters

nd NDArray
dtype Type

Returns

NDArray

Transpose(in NDArray, int[])

public abstract NDArray Transpose(in NDArray nd, int[] premute = null)

Parameters

nd NDArray
premute int[]

Returns

NDArray