25 #ifdef EIGEN_MATRIXBASE_H 26 # error **FATAL ERROR**: MRPT headers must be included before <Eigen/Dense> headers. 28 #ifndef EIGEN_USE_NEW_STDVECTOR 29 # define EIGEN_USE_NEW_STDVECTOR 31 #include <Eigen/Dense> 32 #include <Eigen/StdVector> 33 #include <Eigen/StdDeque> 35 #if !EIGEN_VERSION_AT_LEAST(2,90,0) 36 #error MRPT needs version 3.0.0-beta of Eigen or newer 40 #include EIGEN_MATRIXBASE_PLUGIN_POST_IMPL 47 #define MRPT_EIGEN_DERIVED_CLASS_CTOR_OPERATOR_EQUAL(_CLASS_) \ 49 template<typename OtherDerived> \ 50 inline mrpt_autotype & operator= (const Eigen::MatrixBase <OtherDerived>& other) { \ 51 Base::operator=(other); \ 55 template<typename OtherDerived> \ 56 inline _CLASS_(const Eigen::MatrixBase <OtherDerived>& other) : Base(other.template cast<typename Base::Scalar>()) { } \ 64 class dynamic_vector :
public Eigen::Matrix<T,Eigen::Dynamic,1>
67 typedef Eigen::Matrix<T,Eigen::Dynamic,1>
Base;
Eigen::Matrix< T, Eigen::Dynamic, 1 > Base
#define MRPT_EIGEN_DERIVED_CLASS_CTOR_OPERATOR_EQUAL(_CLASS_)
Column vector, like Eigen::MatrixX*, but automatically initialized to zeros since construction...
dynamic_vector< float > CVectorFloat
Column vector, like Eigen::MatrixXf, but automatically initialized to zeros since construction...
::mrpt::utils::CStream & operator>>(mrpt::utils::CStream &in, CImagePtr &pObj)
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
dynamic_vector(size_t length, float value)
Constructor to given size and all entries to some value.
#define MRPT_MATRIX_CONSTRUCTORS_FROM_POSES(_CLASS_)
CStream BASE_IMPEXP & operator<<(mrpt::utils::CStream &s, const char *a)
dynamic_vector< T > mrpt_autotype
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLuint GLsizei GLsizei * length
dynamic_vector< double > CVectorDouble
Column vector, like Eigen::MatrixXd, but automatically initialized to zeros since construction...
GLsizei const GLfloat * value
GLubyte GLubyte GLubyte a