Verbose description of a matrix element. More...
#include <triplet.hh>

Public Member Functions | |
| triplet () | |
| Default constructor. | |
| triplet (int r, int c, T v) | |
| Full constructor. | |
| bool | operator< (const triplet &t) const |
| Lexicographical comparison of triplets. | |
Public Attributes | |
| int | row |
| The row index inside the matrix. | |
| int | col |
| The column index inside the matrix. | |
| T | val |
| 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.
Definition at line 42 of file triplet.hh.
Full constructor.
| r | the row index. | |
| c | the column index. | |
| v | the value. |
Definition at line 72 of file triplet.hh.
Lexicographical comparison of triplets.
| t | the second triplet with which this one is to be compared. |
Definition at line 81 of file triplet.hh.
1.6.0