move print to cpp to wrap properly in matlab

release/4.3a0
Duy-Nguyen Ta 2013-10-10 22:01:48 +00:00
parent 9aede467d2
commit a2138084db
2 changed files with 18 additions and 15 deletions

View File

@ -19,9 +19,9 @@
namespace gtsam {
/* ************************************************************************* */
LieMatrix::LieMatrix(size_t m, size_t n, ...)
: Matrix(m,n) {
/* ************************************************************************* */
LieMatrix::LieMatrix(size_t m, size_t n, ...)
: Matrix(m,n) {
va_list ap;
va_start(ap, n);
for(size_t i = 0; i < m; ++i) {
@ -31,6 +31,11 @@ namespace gtsam {
}
}
va_end(ap);
}
}
/* ************************************************************************* */
void LieMatrix::print(const std::string& name) const {
gtsam::print(matrix(), name);
}
}

View File

@ -56,9 +56,7 @@ struct LieMatrix : public Matrix, public DerivedValue<LieMatrix> {
/// @{
/** print @param s optional string naming the object */
inline void print(const std::string& name="") const {
gtsam::print(matrix(), name);
}
void print(const std::string& name="") const;
/** equality up to tolerance */
inline bool equals(const LieMatrix& expected, double tol=1e-5) const {