Vector<T>.GetSubvector(Int32, Int32, Int32) Method

Note: This API is now obsolete.
Returns a vector whose elements are a subset of the elements of this instance

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
[ObsoleteAttribute("Use the GetSlice method instead.")]
public Vector<T> GetSubvector(
	int startIndex,
	int endIndex,
	int stride
)

Parameters

startIndex  Int32
The index of the first element of this Vector<T> to be contained in the new vector.
endIndex  Int32
The index of the last element of this Vector<T> to be contained in the new vector.
stride  Int32
The increment for the index in this Vector<T> corresponding to an increment of one in the new vector.

Return Value

Vector<T>
A reference to the new Vector<T>.

Exceptions

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.

See Also