From 56eb1bb808483bcbb1a369034ca5e73fe06e4640 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Tue, 19 Jan 2021 15:23:14 -0500 Subject: [PATCH] use of passed in stream for print capture --- 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 551bdac10..41a80629b 100644 --- a/gtsam/base/Matrix.cpp +++ b/gtsam/base/Matrix.cpp @@ -153,7 +153,7 @@ const Eigen::IOFormat& matlabFormat() { /* ************************************************************************* */ //3 argument call void print(const Matrix& A, const string &s, ostream& stream) { - cout << s << A.format(matlabFormat()) << endl; + stream << s << A.format(matlabFormat()) << endl; } /* ************************************************************************* */