Added NegativeMatrixException::Detail::print()

release/4.3a0
Richard Roberts 2011-09-16 05:30:02 +00:00
parent 93c601d03c
commit f07d846954
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ struct NegativeMatrixException : public std::exception {
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) {}
void print(const std::string& str = "") const {
std::cout << str << "\n";
gtsam::print(A, " A: ");
gtsam::print(U, " U: ");
gtsam::print(D, " D: ");
}
};
const boost::shared_ptr<const Detail> detail; ///< Detail
NegativeMatrixException() /**< Constructor with no detail */ {}