diff --git a/gtsam/linear/GaussianConditional.cpp b/gtsam/linear/GaussianConditional.cpp index 3174c2f44..39a21a617 100644 --- a/gtsam/linear/GaussianConditional.cpp +++ b/gtsam/linear/GaussianConditional.cpp @@ -120,6 +120,10 @@ namespace gtsam { << endl; } cout << formatMatrixIndented(" d = ", getb(), true) << "\n"; + if (nrParents() == 0) { + const auto mean = solve({}); // solve for mean. + mean.print(" mean"); + } if (model_) model_->print(" Noise model: "); else