diff --git a/gtsam/linear/GaussianFactorGraph.h b/gtsam/linear/GaussianFactorGraph.h index 267792f33..aea90da1a 100644 --- a/gtsam/linear/GaussianFactorGraph.h +++ b/gtsam/linear/GaussianFactorGraph.h @@ -224,10 +224,10 @@ namespace gtsam { std::pair hessian(boost::optional optionalOrdering = boost::none) const; /** Return only the diagonal of the Hessian A'*A, as a VectorValues */ - VectorValues hessianDiagonal() const; + virtual VectorValues hessianDiagonal() const; /** Return the block diagonal of the Hessian for this factor */ - std::map hessianBlockDiagonal() const; + virtual std::map hessianBlockDiagonal() const; /** Solve the factor graph by performing multifrontal variable elimination in COLAMD order using * the dense elimination function specified in \c function (default EliminatePreferCholesky),