defined global functions in Lie.h rather than here
parent
6bcb9d08d6
commit
bf315781af
15
cpp/Vector.h
15
cpp/Vector.h
|
@ -209,21 +209,6 @@ Vector concatVectors(size_t nrVectors, ...);
|
||||||
*/
|
*/
|
||||||
Vector rand_vector_norm(size_t dim, double mean = 0, double sigma = 1);
|
Vector rand_vector_norm(size_t dim, double mean = 0, double sigma = 1);
|
||||||
|
|
||||||
/**
|
|
||||||
* Exponential map, just returns the vector itself
|
|
||||||
*/
|
|
||||||
template<> inline Vector expmap(const Vector& v) { return v; }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Compose, adds vectors
|
|
||||||
*/
|
|
||||||
inline Vector compose(const Vector& v0, const Vector& v1) { return v0+v1; }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Inverse, negates the vector
|
|
||||||
*/
|
|
||||||
inline Vector inverse(const Vector& v) { return -v; }
|
|
||||||
|
|
||||||
} // namespace gtsam
|
} // namespace gtsam
|
||||||
|
|
||||||
static boost::minstd_rand generator(42u);
|
static boost::minstd_rand generator(42u);
|
||||||
|
|
Loading…
Reference in New Issue