Vector<T>.GetSubvector(Slice, Intent) 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(
	Slice slice,
	Intent intent
)

Parameters

slice  Slice
A Slice structure that specifies the elements to return.
intent  Intent
An Intent value that specifies the intended use of the sub-vector.

Return Value

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

Remarks

The intent parameter can be used to choose the optimal representation of the sub-vector for a specific purpose. Note that this method guararantees that the returned vector will be suitable for the specified purpose, but it will not enforce it. For example, if the purpose of the sub-vector is ReadOnly, there is no guarantee that the returned vector will be read-only.

Exceptions

ArgumentOutOfRangeException

The start index of slice is less than zero or greater than the length of the vector.

-or-

One or more indexes in the slice are outside the range of the vector indexes.

See Also