better matrix printing without space wastage, fixed notation in comment

release/4.3a0
Varun Agrawal 2020-04-03 21:52:21 -04:00
parent b4eb0c233d
commit b48456b871
2 changed files with 3 additions and 3 deletions

View File

@ -144,10 +144,10 @@ void print(const Matrix& A, const string &s, ostream& stream) {
0, // flags 0, // flags
", ", // coeffSeparator ", ", // coeffSeparator
";\n", // rowSeparator ";\n", // rowSeparator
" \t", // rowPrefix "\t", // rowPrefix
"", // rowSuffix "", // rowSuffix
"[\n", // matPrefix "[\n", // matPrefix
"\n ]" // matSuffix "\n]" // matSuffix
); );
cout << s << A.format(matlab) << endl; cout << s << A.format(matlab) << endl;
} }

View File

@ -44,7 +44,7 @@ public:
private: private:
Rot3 R_; ///< Rotation gRp, between global and pose frame Rot3 R_; ///< Rotation gRp, between global and pose frame
Point3 t_; ///< Translation gTp, from global origin to pose frame origin Point3 t_; ///< Translation gPp, from global origin to pose frame origin
public: public: