ILNumerics Ultimate VS

ILMathpermuteT Method (BaseArrayT, InArrayUInt32)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Reorder dimensions of n-dimensional array A.

[ILNumerics Computing Engine]

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

public static RetArray<T> permute<T>(
	BaseArray<T> A,
	InArray<uint> dim


Type: ILNumericsBaseArrayT
Input array
Type: ILNumericsInArrayUInt32
New dimension order. The order of the zero-based indices of the original dimensions specify the target arrays shape.

Type Parameters


Return Value

Type: RetArrayT
Array with reordered dimensions.

ArgumentException If the number of elements in A and the number of elements for the new dimensions specified by dim do not match or if any index of a dimension from A is missing in list of elements in dim.

A will not change. A new array is created, having the dimensions rearranged in the order specified by dim.

The length of dim must match the number of dimensions in A: A.S.NumberOfDimensions == dim.Length.

In version 5 permute``1(BaseArrayUMP, InArrayInt64) became more efficient since no elements must be copied for a permutation of the dimensions. The resulting array may not expose any common storage layout, though. Thus, subsequent operations handling the result may have to perform a copy nevertheless.

[ILNumerics Computing Engine]

See Also