Click or drag to resize

Range(Int32, Int32, Int32) Constructor

Constructs a Range instance with the given starting index, ending index, and stride.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public Range(
	int start,
	int end,
	int stride
)

Parameters

start  Int32
The starting index.
end  Int32
The ending index.
stride  Int32
The stride.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if the start is negative, the end is negative, the stride is zero, the start is greater than the end when the stride is positive or the start is less than the end when the stride is negative.
Remarks
To indicate an ending index equal to the maximum legal index in the underlying data, use Range(int, Position, int).
Example
For example, in a vector of 10 elements, Range(0,6,2) could be used to view or manipulate the elements { 0 3 5 }.
See Also