Distributed Vector<T>.Get Slice Core Method
Returns a vector whose elements are a subset of the elements of
this instance.
Definition
Namespace: Numerics.NET.Distributed
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
A reference to the new Vector<T>.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
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.