ILNumerics Ultimate VS

ILMathdiff Method (BaseArrayByte, 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.0.0 (5.5.7503.3146)
Syntax

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

Parameters

A
Type: ILNumericsBaseArrayByte
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: RetArrayByte
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