LOOS  v2.3.2
loos::PreciseMatrixFormatter< T > Class Template Reference

Generic matrix element formatter allowing setting of width and precision. More...

#include <MatrixWrite.hpp>

Public Member Functions

 PreciseMatrixFormatter (const int width, const int precision)
 
std::string operator() (const T &t)
 

Detailed Description

template<typename T>
class loos::PreciseMatrixFormatter< T >

Generic matrix element formatter allowing setting of width and precision.

Example use:

WriteAsciiMatrix(filename, M, meta, false, PreciseMatrixFormatter<double>(16,10));

This writes the matrix M to filename using a width of 16 and a precision of 10.

Definition at line 84 of file MatrixWrite.hpp.


The documentation for this class was generated from the following file: