move print to cpp to wrap properly in matlab
parent
9aede467d2
commit
a2138084db
|
|
@ -19,9 +19,9 @@
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
LieMatrix::LieMatrix(size_t m, size_t n, ...)
|
LieMatrix::LieMatrix(size_t m, size_t n, ...)
|
||||||
: Matrix(m,n) {
|
: Matrix(m,n) {
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, n);
|
va_start(ap, n);
|
||||||
for(size_t i = 0; i < m; ++i) {
|
for(size_t i = 0; i < m; ++i) {
|
||||||
|
|
@ -31,6 +31,11 @@ namespace gtsam {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
va_end(ap);
|
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 */
|
/** print @param s optional string naming the object */
|
||||||
inline void print(const std::string& name="") const {
|
void print(const std::string& name="") const;
|
||||||
gtsam::print(matrix(), name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** equality up to tolerance */
|
/** equality up to tolerance */
|
||||||
inline bool equals(const LieMatrix& expected, double tol=1e-5) const {
|
inline bool equals(const LieMatrix& expected, double tol=1e-5) const {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue