Vector<T>.ToSparseVector Method

Creates a copy of the vector as a SparseVector<T>.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public virtual SparseVector<T> ToSparseVector()

Return Value

SparseVector<T>
A SparseVector<T> with the same value as this instance.

See Also