Initialze the data in self with the given sparse data in coordinate format.

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

Syntax

C#
void InitializeData(
	IDictionary<IntPair, T> values,
	int numRows,
	int numCols
)
Visual Basic (Declaration)
Sub InitializeData ( _
	values As IDictionary(Of IntPair, T), _
	numRows As Integer, _
	numCols As Integer _
)
Visual C++
void InitializeData(
	IDictionary<IntPair, T>^ values, 
	int numRows, 
	int numCols
)

Parameters

values
Type: System.Collections.Generic..::.IDictionary<(Of <(IntPair, T>)>)
Nonzero values. The keys are the row-column position and the value is the numerical value at that position.
numRows
Type: System..::.Int32
The number of rows in the matrix.
numCols
Type: System..::.Int32
The number of columns in the matrix.

See Also