feature: change rowPrefix to an indent. Now all columns are aligned

release/4.3a0
lvzhaoyang 2015-10-22 15:04:53 -04:00
parent 8379ab16c7
commit 0b2d4f1182
2 changed files with 4 additions and 4 deletions

View File

@ -189,7 +189,7 @@ void print(const Matrix& A, const string &s, ostream& stream) {
0, // flags 0, // flags
" ", // coeffSeparator " ", // coeffSeparator
";\n", // rowSeparator ";\n", // rowSeparator
" ", // rowPrefix " \t", // rowPrefix
"", // rowSuffix "", // rowSuffix
"[\n", // matPrefix "[\n", // matPrefix
"\n ]" // matSuffix "\n ]" // matSuffix

View File

@ -349,11 +349,11 @@ void JacobianFactor::print(const string& s,
const KeyFormatter& formatter) const { const KeyFormatter& formatter) const {
static const Eigen::IOFormat matlab( static const Eigen::IOFormat matlab(
Eigen::StreamPrecision, // precision Eigen::StreamPrecision, // precision
0, // flags 0, // flags
" ", // coeffSeparator " ", // coeffSeparator
";\n", // rowSeparator ";\n", // rowSeparator
" ", // rowPrefix "\t", // rowPrefix
"", // rowSuffix "", // rowSuffix
"[\n", // matPrefix "[\n", // matPrefix
"\n ]" // matSuffix "\n ]" // matSuffix
); );