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

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

Syntax

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

Parameters

start
Type: System..::.Int32
The first data element.
numElements
Type: System..::.Int32
The total number of data elements.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the start is negative or the number of elements is not positive.

See Also