ILNumerics - Technical Application Development
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Array with reordered dimensions.
A will not change. A new array is created, having
the dimensions rearranged in the order specified by dim.
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
Parameters
- A
- Type: ILNumericsBaseArrayT
Input array - dim
- Type: ILNumericsInArrayUInt32
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: RetArrayTArray with reordered dimensions.
Exceptions
Exception | Condition |
---|---|
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
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