Click or drag to resize

CompressedSparseRowT(IDictionaryIntPair, T, Int32) Constructor

Constructs a compressed row storage instance from the given coordinate map format.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public CompressedSparseRow(
	IDictionary<IntPair, T> values,
	int numCols
)

Parameters

values  IDictionaryIntPair, T
The values stored as a dictionary. The row-column pair is the key and the non-zero entry is the values.
numCols  Int32
The number of columns in the matrix.
Remarks
If the values argument is an instance of ISortedDictionary the construction will be much quicker since values will not need to be sorted.
See Also