Constructs a DoubleCSRSparseMat instance from the given coordinate map format.

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

Syntax

C#
public DoubleCsrSparseMatrix(
	IDictionary<IntPair, double> values,
	int numCols
)
Visual Basic (Declaration)
Public Sub New ( _
	values As IDictionary(Of IntPair, Double), _
	numCols As Integer _
)
Visual C++
public:
DoubleCsrSparseMatrix(
	IDictionary<IntPair, double>^ values, 
	int numCols
)

Parameters

values
Type: System.Collections.Generic..::.IDictionary<(Of <(IntPair, Double>)>)
The values stored as a dictionary. The row-column pair is the key and the non-zero entry is the values.
numCols
Type: System..::.Int32
The number of columns in the matrix.

See Also