diff --git a/gtsam/base/cholesky.h b/gtsam/base/cholesky.h index 155b36418..0c4689113 100644 --- a/gtsam/base/cholesky.h +++ b/gtsam/base/cholesky.h @@ -33,7 +33,7 @@ struct NegativeMatrixException : public std::exception { Matrix A; ///< The original matrix attempted to factor Matrix U; ///< The produced upper-triangular factor Matrix D; ///< The produced diagonal factor - Detail(const Matrix& _A, const Matrix& _U, const Matrix& _D) /**< Detail constructor */ : A(_A), U(_A), D(_D) {} + Detail(const Matrix& _A, const Matrix& _U, const Matrix& _D) /**< Detail constructor */ : A(_A), U(_U), D(_D) {} void print(const std::string& str = "") const { std::cout << str << "\n"; gtsam::print(A, " A: ");