scalar-conversion.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2014-2020 CNRS INRIA
3 //
4 
5 #ifndef __eigenpy_scalar_conversion_hpp__
6 #define __eigenpy_scalar_conversion_hpp__
7 
8 #include "eigenpy/config.hpp"
9 
10 namespace eigenpy
11 {
12  template <typename SCALAR1, typename SCALAR2>
13  struct FromTypeToType : public boost::false_type {};
14 
15  template <typename SCALAR>
16  struct FromTypeToType<SCALAR,SCALAR> : public boost::true_type {};
17 
18  template <> struct FromTypeToType<int,long> : public boost::true_type {};
19  template <> struct FromTypeToType<int,float> : public boost::true_type {};
20  template <> struct FromTypeToType<int,std::complex<float> > : public boost::true_type {};
21  template <> struct FromTypeToType<int,double> : public boost::true_type {};
22  template <> struct FromTypeToType<int,std::complex<double> > : public boost::true_type {};
23  template <> struct FromTypeToType<int,long double> : public boost::true_type {};
24  template <> struct FromTypeToType<int,std::complex<long double> > : public boost::true_type {};
25 
26  template <> struct FromTypeToType<long,float> : public boost::true_type {};
27  template <> struct FromTypeToType<long,std::complex<float> > : public boost::true_type {};
28  template <> struct FromTypeToType<long,double> : public boost::true_type {};
29  template <> struct FromTypeToType<long,std::complex<double> > : public boost::true_type {};
30  template <> struct FromTypeToType<long,long double> : public boost::true_type {};
31  template <> struct FromTypeToType<long,std::complex<long double> > : public boost::true_type {};
32 
33  template <> struct FromTypeToType<float,std::complex<float> > : public boost::true_type {};
34  template <> struct FromTypeToType<float,double> : public boost::true_type {};
35  template <> struct FromTypeToType<float,std::complex<double> > : public boost::true_type {};
36  template <> struct FromTypeToType<float,long double> : public boost::true_type {};
37  template <> struct FromTypeToType<float,std::complex<long double> > : public boost::true_type {};
38 
39  template <> struct FromTypeToType<double,std::complex<double> > : public boost::true_type {};
40  template <> struct FromTypeToType<double,long double> : public boost::true_type {};
41  template <> struct FromTypeToType<double,std::complex<long double> > : public boost::true_type {};
42 }
43 
44 #endif // __eigenpy_scalar_conversion_hpp__


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Apr 17 2021 02:37:59