 | DoubleSparseVector(Int32) Constructor |
Constructs a DoubleSparseVector 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
Syntaxpublic DoubleSparseVector(
int capacity
)
Public Sub New (
capacity As Integer
)
public:
DoubleSparseVector(
int capacity
)
new :
capacity : int -> DoubleSparseVector
Parameters
- capacity Int32
- The number of non-zero entries in the sparse
vector.
RemarksThe
and
properties
will yield arrays of length
and will be
filled with zeros and the
NumberNonzero will yield zero.
See Also