Fixed printing
parent
c1f464625b
commit
3238c59a39
|
@ -251,8 +251,10 @@ public:
|
||||||
/// Streaming
|
/// Streaming
|
||||||
GTSAM_EXPORT friend std::ostream &operator<<(std::ostream &os,
|
GTSAM_EXPORT friend std::ostream &operator<<(std::ostream &os,
|
||||||
const ExpressionNode& node) {
|
const ExpressionNode& node) {
|
||||||
os << "Expression of type " << typeid(int).name() << std::endl;
|
os << "Expression of type " << typeid(T).name();
|
||||||
if (node.traceSize_>0) os << node.traceSize_ << std::endl;
|
if (node.traceSize_>0) os << ", trace size = " << node.traceSize_;
|
||||||
|
os << "\n";
|
||||||
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return keys that play in this expression as a set
|
/// Return keys that play in this expression as a set
|
||||||
|
|
|
@ -54,7 +54,7 @@ public:
|
||||||
|
|
||||||
/// Print
|
/// Print
|
||||||
void print(const std::string& s) const {
|
void print(const std::string& s) const {
|
||||||
std::cout << s << root_ << std::endl;
|
std::cout << s << *root_ << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Construct a constant expression
|
// Construct a constant expression
|
||||||
|
|
Loading…
Reference in New Issue