ILNumerics - Technical Application Development
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
New array without singleton dimension.
This function (as all functions in ILNumerics) respects the setting of MinNumberOfArrayDimensions.
Thus, commonly, the array returned may still has up to two singleton dimensions, if ArrayStyle is ILNumericsV4.
Creates an array similar to this array, having singleton dimensions removed.
[ILNumerics Computing Engine]
Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
public static RetT squeeze<T, LocalT, InT, OutT, RetT, StorageT>( ConcreteArray<T, LocalT, InT, OutT, RetT, StorageT> A ) where LocalT : Mutable<T, LocalT, InT, OutT, RetT, StorageT> where InT : Immutable<T, LocalT, InT, OutT, RetT, StorageT> where OutT : Mutable<T, LocalT, InT, OutT, RetT, StorageT> where RetT : ConcreteRetArray<T, LocalT, InT, OutT, RetT, StorageT> where StorageT : new(), BaseStorage<T, LocalT, InT, OutT, RetT, StorageT>
Parameters
- A
- Type: ILNumerics.Core.ArraysConcreteArrayT, LocalT, InT, OutT, RetT, StorageT
Input array, will not be altered.
Type Parameters
- T
- LocalT
- InT
- OutT
- RetT
- StorageT
Return Value
Type: RetTNew array without singleton dimension.
Remarks
Note that removing singleton dimensions does not change the number of elements of the array. Hence, no copy is made for squeeze``6(ConcreteArrayUMP, UMP, UMP, UMP, UMP, UMP).
[ILNumerics Computing Engine]
See Also
Reference
[!:reshape<T>(InArray<T>, long, long, long, long, StorageOrders?)]