triplet.hh File Reference

Interface and implementation of class triplet. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  triplet< T >
 Verbose description of a matrix element. More...


template<class T >
triplet< T > make_triplet (int row, int col, T val)
 Templated generation of triplet objects.

Detailed Description

Interface and implementation of class triplet.

Definition in file triplet.hh.

Function Documentation

template<class T >
triplet<T> make_triplet ( int  row,
int  col,
) [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().

Generated on Fri Aug 21 08:15:08 2009 for mqn2mps by  doxygen 1.6.0