Array Math.As Vector<T>(T[], Array Mutability) Method
Converts an array to a vector without copying.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The array values converted to a vector.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static DenseVector<T> AsVector<T>(
this T[] values,
ArrayMutability mutability = ArrayMutability.Immutable
)
Parameters
- values T[]
- An array.
- mutability ArrayMutability (Optional)
- Specifies the mutability of the vector.
Type Parameters
- T
- The type of the elements of the array.
Return Value
DenseVector<T>The array values converted to a vector.