| CompressedSparseRowT(IDictionaryIntPair, T, Int32) Constructor |
Constructs a compressed row storage instance from the given coordinate
map format.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public CompressedSparseRow(
IDictionary<IntPair, T> values,
int numCols
)
Public Sub New (
values As IDictionary(Of IntPair, T),
numCols As Integer
)
public:
CompressedSparseRow(
IDictionary<IntPair, T>^ values,
int numCols
)
new :
values : IDictionary<IntPair, 'T> *
numCols : int -> CompressedSparseRow
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