ILNumerics Ultimate VS

ILMathsqueezeT, LocalT, InT, OutT, RetT, StorageT Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
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: RetT
New array without singleton dimension.
Remarks

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.

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?)]