| CompressedSparseRowT(IDictionaryIntPair, T, Int32, 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 numRows,
int numCols
)
Public Sub New (
values As IDictionary(Of IntPair, T),
numRows As Integer,
numCols As Integer
)
public:
CompressedSparseRow(
IDictionary<IntPair, T>^ values,
int numRows,
int numCols
)
new :
values : IDictionary<IntPair, 'T> *
numRows : int *
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.
- numRows Int32
- The number of rows in the matrix. Since the compressed row
format requires at least on nonzero entry in each row, the number of rows must match
the largest row index in the values argument.
- 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