Verbose description of a matrix element. More...
Public Member Functions
|Default constructor. |
|triplet (int r, int c, T v)|
|Full constructor. |
|bool||operator< (const triplet &t) const|
|Lexicographical comparison of triplets. |
|The row index inside the matrix. |
|The column index inside the matrix. |
|The value of the matrix element at the specified position. |
Verbose description of a matrix element.
A triplet consists of row and column indices in a matrix together with the value of the corresponding matrix cell. As the full position information is part of the object, a triplet can describe a matrix element all by itself, and an unordered collection of triplets with unique addresses can describe all nonzero entries of a matrix.