Better print

release/4.3a0
dellaert 2015-05-03 20:45:52 -07:00
parent 660acec58e
commit 11de86cc1e
1 changed files with 3 additions and 1 deletions

View File

@ -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