Stores a set of parameters controlling the way matrices are printed. More...
#include <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="") | |
Public Attributes | |
| std::string | coeffSeparator |
| int | flags |
| std::string | matPrefix |
| std::string | matSuffix |
| int | precision |
| std::string | rowPrefix |
| std::string | rowSeparator |
| std::string | rowSpacer |
| std::string | rowSuffix |
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:
1.11 2 3.33
4 5 6
7 8.89 9
----------------------------------------
<< 1.11, 2, 3.33, 4, 5, 6, 7, 8.89, 9;
----------------------------------------
[1.111, 2, 3.333]
[ 4, 5, 6]
[ 7, 8.889, 9]
----------------------------------------
[ 1.11, 2, 3.33;
4, 5, 6;
7, 8.89, 9]
----------------------------------------
[[1.111111, 2, 3.33333];
[ 4, 5, 6];
[ 7, 8.888888, 9]]
----------------------------------------
|
inline |
Default contructor, see class IOFormat for the meaning of the parameters
References IOFormat::matSuffix, and IOFormat::rowSpacer.
| std::string coeffSeparator |
Referenced by Eigen::internal::print_matrix().
| int flags |
Referenced by Eigen::internal::print_matrix().
| std::string matPrefix |
Referenced by Eigen::internal::print_matrix().
| std::string matSuffix |
Referenced by IOFormat::IOFormat(), and Eigen::internal::print_matrix().
| int precision |
Referenced by Eigen::internal::print_matrix().
| std::string rowPrefix |
Referenced by Eigen::internal::print_matrix().
| std::string rowSeparator |
Referenced by Eigen::internal::print_matrix().
| std::string rowSpacer |
Referenced by IOFormat::IOFormat(), and Eigen::internal::print_matrix().
| std::string rowSuffix |
Referenced by Eigen::internal::print_matrix().
1.8.1.1