ILNumerics Ultimate VS

Globals.slice Method (BaseArray, ILExpression, UInt64)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Slice for indexing / subarray operations. numpy style.

[ILNumerics Core Module]

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

public static ExpressionDimSpec slice(
	BaseArray start,
	ILExpression end,
	ulong step
)

Parameters

start
Type: ILNumerics.BaseArray
Scalar, numeric array with the starting index of the selection.
end
Type: ILNumerics.Core.Misc.ILExpression
(Exclusive) selection stopping index: simple computational expression (+,-,/,*) involving the end specifier which evaluates to the last index in this dimension.
step
Type: System.UInt64
Positive step size between adjacent elements. Unit: elements.

Return Value

Type: ExpressionDimSpec
Stepped range to be used in indexing expressions.
Exceptions

ExceptionCondition
ArgumentException if start or end are not scalar or not numeric or if the conversion to a long value failed.
ArgumentException if step is larger than MaxValue.
Remarks

[ILNumerics Core Module]

See Also

Reference