ILNumerics - Technical Application Development

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

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

#### 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: RetArrayUInt64New 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