55 for (
size_t i = 0;
i <
m;
i++) (*
this)(
i) = data[
i];
92 return static_cast<Vector>(*this);
96 size_t dim()
const {
return this->
size(); }
100 throw std::runtime_error(
"LieVector::identity(): Don't use this function");
110 template<
class Archive>
112 ar & boost::serialization::make_nvp(
"Vector",
113 boost::serialization::base_object<Vector>(*
this));
void print(const Matrix &A, const string &s, ostream &stream)
LieVector(const Eigen::Matrix< double, N, 1 > &v)
LieVector(size_t m, const double *const data)
LieVector compose(const LieVector &q)
Vector localCoordinates(const LieVector &q)
VectorSpace provides both Testable and VectorSpaceTraits.
friend class boost::serialization::access
static Vector Logmap(const LieVector &p)
LieVector retract(const Vector &v)
bool equals(const LieVector &expected, double tol=1e-5) const
Array< double, 1, 3 > e(1./3., 0.5, 2.)
void serialize(Archive &ar, const unsigned int)
EIGEN_DEVICE_FUNC const Scalar & q
static LieVector Expmap(const Vector &v)
void print(const std::string &name="") const
LieVector(const Vector &v)
LieVector between(const LieVector &q)
Annotation for function names.
bool equal(const T &obj1, const T &obj2, double tol)
static LieVector identity()