move print to cpp to wrap properly in matlab
parent
9aede467d2
commit
a2138084db
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue