| Slice(Int32, Int32, Int32) Constructor |
Constructs a Slice instance with the specified starting index, total number of
elements, and stride.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public Slice(
int start,
int numElements,
int stride
)
Public Sub New (
start As Integer,
numElements As Integer,
stride As Integer
)
public:
Slice(
int start,
int numElements,
int stride
)
new :
start : int *
numElements : int *
stride : int -> Slice
Parameters
- start Int32
- The first data element.
- numElements Int32
- The total number of data elements.
- stride Int32
- The step increment between successive data elements.
Exceptions Exception | Condition |
---|
InvalidArgumentException | Thrown 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