Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Member Functions | Public Attributes
Eigen::IOFormat Class Reference

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 matPrefix
 
std::string matSuffix
 
std::string rowPrefix
 
std::string rowSuffix
 
std::string rowSeparator
 
std::string rowSpacer
 
std::string coeffSeparator
 
int precision
 
int flags
 

Detailed Description

Stores a set of parameters controlling the way matrices are printed.

List of available parameters:

Example:

Output:

See also
DenseBase::format(), class WithFormat

Definition at line 50 of file IO.h.

Constructor & Destructor Documentation

Eigen::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

Default contructor, see class IOFormat for the meaning of the parameters

Definition at line 53 of file IO.h.

57  : matPrefix(_matPrefix), matSuffix(_matSuffix), rowPrefix(_rowPrefix), rowSuffix(_rowSuffix), rowSeparator(_rowSeparator),
58  rowSpacer(""), coeffSeparator(_coeffSeparator), precision(_precision), flags(_flags)
59  {
60  int i = int(matSuffix.length())-1;
61  while (i>=0 && matSuffix[i]!='\n')
62  {
63  rowSpacer += ' ';
64  i--;
65  }
66  }

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