Constructs a DoubleComplexSparseVector instance sized for the given number of non-zero entries. The resulting instance will not be useable until the
CopyC#
Entries
and
CopyC#
Indices
arrays are populated.

Namespace:  CenterSpace.NMath.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public DoubleComplexSparseVector(
	int capacity
)
Visual Basic (Declaration)
Public Sub New ( _
	capacity As Integer _
)
Visual C++
public:
DoubleComplexSparseVector(
	int capacity
)

Parameters

capacity
Type: System..::.Int32
The number of non-zero entries in the sparse vector.

Remarks

The
CopyC#
Entries
and
CopyC#
Indices
properties will yield arrays of length
CopyC#
numberNonZero
and will be filled with zeros and the NumberNonzero will yield zero.

See Also