MRPT  1.9.9
CVectorDynamic.cpp
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2 | Mobile Robot Programming Toolkit (MRPT) |
3 | https://www.mrpt.org/ |
4 | |
5 | Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
6 | See: https://www.mrpt.org/Authors - All rights reserved. |
7 | Released under BSD License. See: https://www.mrpt.org/License |
8 +------------------------------------------------------------------------+ */
9 
10 #include "math-precomp.h" // Precompiled headers
11 
13 #include <Eigen/Dense>
14 
15 using namespace mrpt::math;
16 
17 template <typename T>
18 template <typename T2>
20 {
22  r.asEigen() = asEigen().template cast<T2>();
23  return r;
24 }
25 
26 #define DO_VECDYN_INSTANTIATION(T_) \
27  template class mrpt::math::CVectorDynamic<T_>;
28 
#define DO_VECDYN_INSTANTIATION(T_)
Template for column vectors of dynamic size, compatible with Eigen.
size_t size(const MATRIXLIKE &m, const int dim)
CVectorDynamic< T2 > cast() const
This base provides a set of functions for maths stuff.
GLdouble GLdouble GLdouble r
Definition: glext.h:3711



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 4363012a5 Tue Nov 19 10:55:26 2019 +0100 at mar nov 19 11:00:13 CET 2019