Constructs a Slice instance with the specified starting index, total number of elements, and stride.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public Slice(
	int start,
	int numElements,
	int stride
)
Visual Basic (Declaration)
Public Sub New ( _
	start As Integer, _
	numElements As Integer, _
	stride As Integer _
)
Visual C++
public:
Slice(
	int start, 
	int numElements, 
	int stride
)

Parameters

start
Type: System..::.Int32
The first data element.
numElements
Type: System..::.Int32
The total number of data elements.
stride
Type: System..::.Int32
The step increment between successive data elements.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the start is negative, the number of elements is not positive, the stride is zero, or the calculation of the end point results in a negative value.

See Also