ILNumerics Ultimate VS

ConcreteArrayT1, LocalT, InT, OutT, RetT, StorageTSubarray Method (DimSpec)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Extract part from this array. Matlab® and numpy indexing.

[ILNumerics Core Module]

Namespace:  ILNumerics.Core.Arrays
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public RetT Subarray(
	DimSpec d0
)

Parameters

d0
Type: ILNumericsDimSpec
Range specification along the first dimension.

Return Value

Type: RetT
New array as vector with parts of this array elements as specified by d0.
Exceptions

ExceptionCondition
IndexOutOfRangeException if the range provided in d0 addresses any elements outside the range of this array. I.e.: d0 refers to a non-existing element. See ArrayStyle.
NotSupportedException if d0 attempts to use an indexing feature which is not supported in the current ArrayStyle mode. For example, if d0 was provided as newaxis while in ILNumericsV4 mode.
Remarks

This method considers a single dimension specifier only. For multi-dimensional arrays a flattened version is considered and the range d0 is extracted from the flattened version. The term 'flatten' here means: reshaping the array to a 1-dimensional array by lining-up all elements of the array in column major order.

The setting MinNumberOfArrayDimensions is respected for the array returned.

The setting ArrayStyle is considered. In ILNumericsV4 array style (default) it allows d0 to refer to any element inside all dimensions of this array (and not only inside this dimension) in the same manner as the 'linear indexing' feature known from Matlab® et al.

[ILNumerics Core Module]

See Also

Reference

Other Resources