ILNumerics Ultimate VS

ILMathpermuteT Method (BaseArrayT, InArrayInt64)

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.0.0 (5.5.7503.3146)
Syntax

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

Parameters

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

Type Parameters

T

Return Value

Type: RetArrayT
Array with reordered dimensions.
Exceptions

ExceptionCondition
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.
Remarks

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.

From version 5 permute``1(BaseArrayUMP, InArrayInt64) is much more efficient since no elements must be copied for a permutation of the dimensions.

[ILNumerics Computing Engine]

See Also

Reference