Stores a set of parameters controlling the way matrices are printed.
List of available parameters:
StreamPrecision and FullPrecision. The default is the special value StreamPrecision which means to use the stream's own precision setting, as set for instance using cout.precision(3). The other special value FullPrecision means that the number of digits will be computed to match the full precision of each floating-point type.DontAlignCols which allows to disable the alignment of columns, resulting in faster code.Example:
Output:
Definition at line 63 of file IO.h.
#include <src/Core/IO.h>
Public Member Functions | |
| IOFormat (int _precision=StreamPrecision, int _flags=0, const std::string &_coeffSeparator=" ", const std::string &_rowSeparator="\n", const std::string &_rowPrefix="", const std::string &_rowSuffix="", const std::string &_matPrefix="", const std::string &_matSuffix="") | |
| Default contructor, see class IOFormat for the meaning of the parameters. | |
Public Attributes | |
| std::string | matPrefix |
| std::string | matSuffix |
| std::string | rowPrefix |
| std::string | rowSuffix |
| std::string | rowSeparator |
| std::string | rowSpacer |
| std::string | coeffSeparator |
| int | precision |
| int | flags |
| IOFormat::IOFormat | ( | int | _precision = StreamPrecision, |
| int | _flags = 0, |
||
| const std::string & | _coeffSeparator = " ", |
||
| const std::string & | _rowSeparator = "\n", |
||
| const std::string & | _rowPrefix = "", |
||
| const std::string & | _rowSuffix = "", |
||
| const std::string & | _matPrefix = "", |
||
| const std::string & | _matSuffix = "" |
||
| ) | [inline] |
| std::string IOFormat::coeffSeparator |
Definition at line 83 of file IO.h.
Referenced by internal::print_matrix().
| int IOFormat::flags |
Definition at line 85 of file IO.h.
Referenced by internal::print_matrix().
| std::string IOFormat::matPrefix |
Definition at line 81 of file IO.h.
Referenced by internal::print_matrix().
| std::string IOFormat::matSuffix |
Definition at line 81 of file IO.h.
Referenced by IOFormat(), and internal::print_matrix().
Definition at line 84 of file IO.h.
Referenced by internal::print_matrix().
| std::string IOFormat::rowPrefix |
Definition at line 82 of file IO.h.
Referenced by internal::print_matrix().
| std::string IOFormat::rowSeparator |
Definition at line 82 of file IO.h.
Referenced by internal::print_matrix().
| std::string IOFormat::rowSpacer |
Definition at line 82 of file IO.h.
Referenced by IOFormat(), and internal::print_matrix().
| std::string IOFormat::rowSuffix |
Definition at line 82 of file IO.h.
Referenced by internal::print_matrix().
| Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011 |