Returns a vector whose components are a subset of the components of
this instance
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function GetSubvector ( _
startIndex As Integer, _
endIndex As Integer, _
stride As Integer _
) As Vector |
| C++ |
|---|
public:
Vector^ GetSubvector (
int startIndex,
int endIndex,
int stride
) |
Parameters
- startIndex (System.Int32)
- The index of the first element of this
Vector to be contained in the new
vector.
- endIndex (System.Int32)
- The index of the last element of this
Vector to be contained in the new
vector.
- stride (System.Int32)
- The increment for the index
in this Vector corresponding to an
increment of one in the new vector.
Return Value
A reference to the new
Vector.
Exceptions
| Exception | Condition |
|---|
| ArgumentOutOfRangeException |
Either offset is outside the bounds
for this Vector, or the
length is so large that the new
Vector would not be entirely contained
in the current vector. |