added constructor to convert fixed size vectors to a LieVector
parent
6d28e0a039
commit
40bc02cca8
|
|
@ -34,6 +34,10 @@ struct LieVector : public Vector, public DerivedValue<LieVector> {
|
||||||
/** initialize from a normal vector */
|
/** initialize from a normal vector */
|
||||||
LieVector(const Vector& v) : Vector(v) {}
|
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 */
|
/** wrap a double */
|
||||||
LieVector(double d) : Vector(Vector_(1, d)) {}
|
LieVector(double d) : Vector(Vector_(1, d)) {}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue