ILNumerics Ultimate VS

ILMathdiff Method (BaseArraySingle, UInt32, Int32)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Computes the differences between successive elements of A along the specified dimension dim or the n-th derivative.

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: (5.5.7503.3146)

public static RetArray<float> diff(
	BaseArray<float> A,
	uint N = 1,
	int dim = -1


Type: ILNumericsBaseArraySingle
Input array.
N (Optional)
Type: SystemUInt32
[Optional] Order of difference. Default: 1.
dim (Optional)
Type: SystemInt32
[Optional] The dimension index of the working dimension. Default (-1): first non-singleton dimension of A or 0, if no such dimension exists.

Return Value

Type: RetArraySingle
New array with the same shape as A except that the dimension specified by dim is reduced by 1 element.

If the length of the dims dimension in A is lower than 2, an empty array is returned, having the size of A but the dims dimension reduced to max(A.S[dim]-1,0).

[ILNumerics Computing Engine]

See Also