added constructor to convert fixed size vectors to a LieVector

release/4.3a0
Alex Cunningham 2012-04-11 15:40:55 +00:00
parent 6d28e0a039
commit 40bc02cca8
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@ struct LieVector : public Vector, public DerivedValue<LieVector> {
/** initialize from a normal vector */
LieVector(const Vector& v) : Vector(v) {}
/** initialize from a fixed size normal vector */
template<int N>
LieVector(const Eigen::Matrix<double, N, 1>& v) : Vector(v) {}
/** wrap a double */
LieVector(double d) : Vector(Vector_(1, d)) {}