Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Eigen_test Odometry_test AttitudeEstimation_usingTicker MPU9250_Quaternion_Binary_Serial ... more
IOFormat Class Reference
[Core module]
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="") | |
| Default contructor, see class IOFormat for the meaning of the parameters. | |
Detailed Description
Stores a set of parameters controlling the way matrices are printed.
List of available parameters:
- precision number of digits for floating point values, or one of the special constants
StreamPrecisionandFullPrecision. The default is the special valueStreamPrecisionwhich means to use the stream's own precision setting, as set for instance usingcout.precision(3). The other special valueFullPrecisionmeans that the number of digits will be computed to match the full precision of each floating-point type. - flags an OR-ed combination of flags, the default value is 0, the only currently available flag is
DontAlignColswhich allows to disable the alignment of columns, resulting in faster code. - coeffSeparator string printed between two coefficients of the same row
- rowSeparator string printed between two rows
- rowPrefix string printed at the beginning of each row
- rowSuffix string printed at the end of each row
- matPrefix string printed at the beginning of the matrix
- matSuffix string printed at the end of the matrix
Example:
Output:
- See also:
- DenseBase::format(), class WithFormat
Definition at line 50 of file IO.h.
Constructor & Destructor Documentation
| 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 = "" |
||
| ) |
Generated on Tue Jul 12 2022 17:47:04 by
1.7.2