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 _
) As Vector
C#
public Vector GetSubvector (
	int startIndex,
	int endIndex
)
C++
public:
Vector^ GetSubvector (
	int startIndex, 
	int endIndex
)

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.

Return Value

A reference to the new Vector.

Exceptions

ExceptionCondition
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.