From 0a9cc8ae62709f91c4b3edac60d1e5d9587fc537 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Fri, 21 Feb 2020 13:56:34 -0500 Subject: [PATCH] Separate matrix row values with commas Separating row values with commas is supported by MATLAB so no effect there, but this also helps when printing with Python and C++ since the output can be directly copied without modification. --- gtsam/base/Matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/base/Matrix.cpp b/gtsam/base/Matrix.cpp index 705d84d25..f9a2e83a9 100644 --- a/gtsam/base/Matrix.cpp +++ b/gtsam/base/Matrix.cpp @@ -142,7 +142,7 @@ void print(const Matrix& A, const string &s, ostream& stream) { static const Eigen::IOFormat matlab( Eigen::StreamPrecision, // precision 0, // flags - " ", // coeffSeparator + ", ", // coeffSeparator ";\n", // rowSeparator " \t", // rowPrefix "", // rowSuffix