Click or drag to resize

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
C#
Entries
and
C#
Indices
arrays are populated.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public FloatSparseVector(
	int capacity
)

Parameters

capacity  Int32
The number of non-zero entries in the sparse vector.
Remarks
The
C#
Entries
and
C#
Indices
properties will yield arrays of length
C#
numberNonZero
and will be filled with zeros and the NumberNonzero will yield zero.
See Also