Returns a vector whose elements are a subset of the elements of
this instance
Namespace: Extreme.MathematicsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public Vector<T> GetSlice(
int startIndex,
int endIndex,
Intent intent
)
Public Function GetSlice (
startIndex As Integer,
endIndex As Integer,
intent As Intent
) As Vector(Of T)
public:
Vector<T>^ GetSlice(
int startIndex,
int endIndex,
Intent intent
)
member GetSlice :
startIndex : int *
endIndex : int *
intent : Intent -> 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. - intent
- Type: Extreme.MathematicsIntent
An Intent value that
specifies the intended use of the sub-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: 6.0
Reference