Interface and implementation of class triplet. More...

Go to the source code of this file.
Classes | |
| class | triplet< T > |
| Verbose description of a matrix element. More... | |
Functions | |
| template<class T > | |
| triplet< T > | make_triplet (int row, int col, T val) |
| Templated generation of triplet objects. | |
Interface and implementation of class triplet.
Definition in file triplet.hh.
| triplet<T> make_triplet | ( | int | row, | |
| int | col, | |||
| T | val | |||
| ) | [inline] |
Templated generation of triplet objects.
Using this method instead of the constructor triplet::triplet, the type of the triplet to be created can be derived from the type of the value argument. Therefore no template types have to be given, which leads to shorter code. This is similar to std::make_pair().
| row | the row index. | |
| col | the column index. | |
| val | the value. |
Definition at line 101 of file triplet.hh.
Referenced by vdiff::vdiff().
1.6.0