| FloatSparseVector(Int32) Constructor |
Constructs a FloatSparseVector instance sized for the given number
of non-zero entries. The resulting instance will not be useable until
the
and
arrays are populated.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public FloatSparseVector(
int capacity
)
Public Sub New (
capacity As Integer
)
public:
FloatSparseVector(
int capacity
)
new :
capacity : int -> FloatSparseVector
Parameters
- capacity Int32
- The number of non-zero entries in the sparse
vector.
Remarks The
and
properties
will yield arrays of length
and will be
filled with zeros and the
NumberNonzero will yield zero.See Also