Formatter for Eigen matrix type. More...
#include <formatters.hpp>

| Public Member Functions | |
| FloatMatrixFormatter (const int &w=-1, const unsigned int &p=2) | |
| Default constructor.  More... | |
| FloatMatrixFormatter< Derived > & | operator() (const Derived &matrix) | 
| Format a matrix with permanently stored precision/width.  More... | |
| FloatMatrixFormatter< Derived > & | operator() (const Derived &matrix, const int &w, const unsigned int &p) | 
| Format a matrix with temporarily specified precision/width.  More... | |
| unsigned int | precision () | 
| Returns the current precision setting.  More... | |
| FloatMatrixFormatter< Derived > & | precision (const unsigned int &p) | 
| Sets the precision format parameter.  More... | |
| int | width () | 
| Returns the current width setting.  More... | |
| FloatMatrixFormatter< Derived > & | width (const int &w) | 
| Sets the width format parameter.  More... | |
| virtual | ~FloatMatrixFormatter () | 
| Private Attributes | |
| const Derived * | _matrix | 
| ecl::Format< typename Derived::Scalar > | format | 
| bool | ready_to_format | 
| bool | tmp_formatting | 
| unsigned int | tmp_precision | 
| int | tmp_width | 
| Friends | |
| template<typename OutputStream , typename Derived_ > | |
| OutputStream & | operator<< (OutputStream &ostream, FloatMatrixFormatter< Derived_ > &formatter) | 
| Stream the formatter.  More... | |
Formatter for Eigen matrix type.
I want make it formatting any types of eigen
| Derived | : MatrixBase's type which specify the matrix as vector, matrix with any storage type | 
Definition at line 67 of file eigen/formatters.hpp.
| 
 | inline | 
Default constructor.
Initialises the format tags for width, and precision.
| w | : width (default - no width constraints) | 
| p | : the number of decimal places of precision (default - 4) | 
Definition at line 81 of file eigen/formatters.hpp.
| 
 | inlinevirtual | 
Definition at line 89 of file eigen/formatters.hpp.
| 
 | inline | 
Format a matrix with permanently stored precision/width.
This function directly formats the specified input value with the stored settings.
| matrix | : the matrix to be formatted (gets temporarily stored as a pointer). | 
Definition at line 148 of file eigen/formatters.hpp.
| 
 | inline | 
Format a matrix with temporarily specified precision/width.
This function directly formats the specified input value and temporary settings.
| matrix | : the matrix to be formatted (gets temporarily stored as a pointer). | 
| w | : the width to use for inserted floats (-1 is no width constraint). | 
| p | : the number of decimal places of precision. | 
Definition at line 170 of file eigen/formatters.hpp.
| 
 | inline | 
Returns the current precision setting.
Definition at line 124 of file eigen/formatters.hpp.
| 
 | inline | 
Sets the precision format parameter.
Sets the precision format parameter.
| p | : the number of decimal places of precision. | 
Definition at line 102 of file eigen/formatters.hpp.
| 
 | inline | 
Returns the current width setting.
Definition at line 130 of file eigen/formatters.hpp.
| 
 | inline | 
Sets the width format parameter.
Sets the width format parameter.
| w | : the width to use for inserted floats (-1 is no width constraint). | 
Definition at line 115 of file eigen/formatters.hpp.
| 
 | friend | 
Stream the formatter.
Insertion operator for sending the formatter to an output stream.
| ostream | : the output stream. | 
| formatter | : the formatter to be inserted. | 
| OutputStream | : the type of the output stream to be inserted into. | 
| Derived | : matrix type. | 
| StandardException | : throws if the formatter has un-specified _matrix [debug mode only] | 
Definition at line 203 of file eigen/formatters.hpp.
| 
 | private | 
Definition at line 201 of file eigen/formatters.hpp.
| 
 | private | 
Definition at line 196 of file eigen/formatters.hpp.
| 
 | private | 
Definition at line 200 of file eigen/formatters.hpp.
| 
 | private | 
Definition at line 199 of file eigen/formatters.hpp.
| 
 | private | 
Definition at line 198 of file eigen/formatters.hpp.
| 
 | private | 
Definition at line 197 of file eigen/formatters.hpp.