CategoricalVector<T>.AsDenseVector Method

Returns this vector as a dense vector.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
C#
public override DenseVector<T> AsDenseVector()

Return Value

DenseVector<T>
A DenseVector<T> with the same elements as this vector.

Remarks

If this vector is already a dense vector with the requested storage type, this method returns the current instance. Otherwise it materializes the logical values into a dense vector with the requested storage type.

See Also