From 11de86cc1e64eb83f1d13257475a6c8988511fba Mon Sep 17 00:00:00 2001 From: dellaert Date: Sun, 3 May 2015 20:45:52 -0700 Subject: [PATCH] Better print --- gtsam/nonlinear/Expression-inl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtsam/nonlinear/Expression-inl.h b/gtsam/nonlinear/Expression-inl.h index 9893d8370..3fe33f2d1 100644 --- a/gtsam/nonlinear/Expression-inl.h +++ b/gtsam/nonlinear/Expression-inl.h @@ -683,9 +683,11 @@ public: /// Print to std::cout void print(const std::string& indent) const { + std::cout << indent << "UnaryExpression::Record {" << std::endl; static const Eigen::IOFormat matlab(0, 1, " ", "; ", "", "", "[", "]"); - std::cout << This::dTdA.format(matlab) << std::endl; + std::cout << indent << This::dTdA.format(matlab) << std::endl; This::trace.print(indent); + std::cout << indent << "}" << std::endl; } /// Start the reverse AD process