MRPT  2.0.4
MatrixVectorBase_instantiate_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-2020, 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 #include "MatrixVectorBase_impl.h"
15 
16 using namespace mrpt::math;
17 
18 template <typename T>
19 template <typename T2>
21 {
23  r.asEigen() = asEigen().template cast<T2>();
24  return r;
25 }
26 
27 // Explicit instantiation of "MatrixVectorBase_impl.h" methods:
28 #define DO_VECDYN_INSTANTIATION(T_) \
29  template class mrpt::math::MatrixVectorBase<T_, CVectorDynamic<T_>>;
30 
math-precomp.h
mrpt::math::CVectorDynamic::cast
CVectorDynamic< T2 > cast() const
Definition: CVectorDynamic.cpp:19
DO_VECDYN_INSTANTIATION
#define DO_VECDYN_INSTANTIATION(T_)
Definition: MatrixVectorBase_instantiate_CVectorDynamic.cpp:28
MatrixVectorBase_impl.h
CVectorDynamic.h
mrpt::math::size
size_t size(const MATRIXLIKE &m, const int dim)
Definition: math/include/mrpt/math/bits_math.h:21
mrpt::math::CVectorDynamic
Template for column vectors of dynamic size, compatible with Eigen.
Definition: CVectorDynamic.h:31
mrpt::math
This base provides a set of functions for maths stuff.
Definition: math/include/mrpt/math/bits_math.h:11



Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sun Jul 19 15:15:43 UTC 2020