Returns a vector whose elements are a subset of the elements of
this instance
Namespace: Extreme.Mathematics.GenericAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public Vector<T> GetSubvector(
int startIndex,
int endIndex,
int stride
)
Public Function GetSubvector (
startIndex As Integer,
endIndex As Integer,
stride As Integer
) As Vector(Of T)
public:
Vector<T>^ GetSubvector(
int startIndex,
int endIndex,
int stride
)
member GetSubvector :
startIndex : int *
endIndex : int *
stride : int -> Vector<'T>
Parameters
- startIndex
- Type: SystemInt32
The index of the first element of this
VectorT to be contained in the new
vector. - endIndex
- Type: SystemInt32
The index of the last element of this
VectorT to be contained in the new
vector. - stride
- Type: SystemInt32
The increment for the index
in this VectorT corresponding to an
increment of one in the new vector.
Return Value
Type:
VectorTA reference to the new
VectorT.
Exception | Condition |
---|
ArgumentOutOfRangeException | startIndex is less than zero or greater than the length
of the vector. -or- endIndex is less than zero or greater than the length
of the vector. |
Numerical Libraries
Supported in: 5.x, 4.x
Reference