ILNumerics Ultimate VS

ILMathreshapeT Method (BaseArrayT, Int64, Int64, Int64, NullableStorageOrders)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
A reshaped version of A.

[ILNumerics Computing Engine]

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

public static RetArray<T> reshape<T>(
	BaseArray<T> A,
	long d0,
	long d1,
	long d2,
	Nullable<StorageOrders> order = null


Type: ILNumericsBaseArrayT
Input array.
Type: SystemInt64
Number of elements along dim 0.
Type: SystemInt64
Number of elements along dim 1.
Type: SystemInt64
Number of elements along dim 2.
order (Optional)
Type: SystemNullableStorageOrders
[Optional] Storage order for the output array. Default: null (Settings.DefaultStorageOrder).

Type Parameters


Return Value

Type: RetArrayT
Reshaped array.

The storage order for both: the order for reading the elements from A and storing the element into the reshaped array is determined as follows:

If order is specified (ColumnMajor or RowMajor) its value is used for the output. A copy is made only if really needed.Otherwise, the value of DefaultStorageOrder determins the target storage order.

A copy of the elements is required for non-continous arrays and - except for vector shaped arrays - for unmatching order settings. Otherwise the returned array references the same memory as this array and uses another size descriptor only.

[ILNumerics Computing Engine]

See Also


MathInternal.reshape``1(BaseArrayUMP, InArrayInt64, NullableStorageOrders)