Vector<T>.AsDenseVector Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0

Overload List

AsDenseVector() Returns this vector as a dense vector.
AsDenseVector<TStorage>() Returns this vector as a dense vector.

AsDenseVector

Returns this vector as a dense vector.
C#
public virtual DenseVector<T> AsDenseVector()

Return Value

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

Remarks

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

AsDenseVector<TStorage>

Returns this vector as a dense vector.
C#
public virtual DenseVector<T, TStorage> AsDenseVector<TStorage>()
where TStorage : Object, IStorageSlice<T, TStorage>

Type Parameters

TStorage

Return Value

DenseVector<T, TStorage>
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