Vector.Create From Memory Slice<T> Method
Constructs a new dense vector.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
A DenseVector<T>.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public static DenseVector<T> CreateFromMemorySlice<T>(
int length,
MemorySlice<T> values,
ArrayMutability mutability,
bool checkMissingValues = false
)
Parameters
- length Int32
- The length of the vector.
- values MemorySlice<T>
- A strided structure containing the elements.
- mutability ArrayMutability
- Specifies how the vector's values may be changed.
- checkMissingValues Boolean (Optional)
- Optional. Specifies whether operations involving the vector should check for the presence of missing values. The default is false.
Type Parameters
- T
Return Value
DenseVector<T>A DenseVector<T>.