ILNumerics Ultimate VS

ILMathdiff Method (BaseArrayUInt64, 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.4.0.0 (5.4.7431.3055)
Syntax

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

Parameters

A
Type: ILNumericsBaseArrayUInt64
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: RetArrayUInt64
New array with the same shape as A except that the dimension specified by dim is reduced by 1 element.
Remarks

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

Reference