DistributedVector<T>.GetSliceCore Method

Returns a vector whose elements are a subset of the elements of this instance.

Definition

Namespace: Extreme.Mathematics.Distributed
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
protected override Vector<T> GetSliceCore(
	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

This is an implementation method. It is safe to assume the arguments are valid.

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.

See Also