Constructs a DoubleSparseVector instance from the given data.

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

Syntax

C#
public DoubleSparseVector(
	DoubleVector nonZeroEntries,
	IndexArray indices
)
Visual Basic (Declaration)
Public Sub New ( _
	nonZeroEntries As DoubleVector, _
	indices As IndexArray _
)
Visual C++
public:
DoubleSparseVector(
	DoubleVector^ nonZeroEntries, 
	IndexArray^ indices
)

Parameters

nonZeroEntries
Type: CenterSpace.NMath.Core..::.DoubleVector
The non-zero entries of the sparse vector.
indices
Type: CenterSpace.NMath.Matrix..::.IndexArray
The indices of the non-zero entries such that the index of ith entry of
CopyC#
nonZeroEntries
is
CopyC#
indices[i]

Remarks

The input data is copied.

See Also