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 template <typename SCALAR1, typename SCALAR2>
12 struct FromTypeToType : public boost::false_type {};
13 
14 template <typename SCALAR>
15 struct FromTypeToType<SCALAR, SCALAR> : public boost::true_type {};
16 
17 template <>
18 struct FromTypeToType<int, long> : public boost::true_type {};
19 template <>
20 struct FromTypeToType<int, float> : public boost::true_type {};
21 template <>
22 struct FromTypeToType<int, std::complex<float> > : public boost::true_type {};
23 template <>
24 struct FromTypeToType<int, double> : public boost::true_type {};
25 template <>
26 struct FromTypeToType<int, std::complex<double> > : public boost::true_type {};
27 template <>
28 struct FromTypeToType<int, long double> : public boost::true_type {};
29 template <>
30 struct FromTypeToType<int, std::complex<long double> >
31  : public boost::true_type {};
32 
33 template <>
34 struct FromTypeToType<long, float> : public boost::true_type {};
35 template <>
36 struct FromTypeToType<long, std::complex<float> > : public boost::true_type {};
37 template <>
38 struct FromTypeToType<long, double> : public boost::true_type {};
39 template <>
40 struct FromTypeToType<long, std::complex<double> > : public boost::true_type {};
41 template <>
42 struct FromTypeToType<long, long double> : public boost::true_type {};
43 template <>
44 struct FromTypeToType<long, std::complex<long double> >
45  : public boost::true_type {};
46 
47 template <>
48 struct FromTypeToType<float, std::complex<float> > : public boost::true_type {};
49 template <>
50 struct FromTypeToType<float, double> : public boost::true_type {};
51 template <>
52 struct FromTypeToType<float, std::complex<double> > : public boost::true_type {
53 };
54 template <>
55 struct FromTypeToType<float, long double> : public boost::true_type {};
56 template <>
57 struct FromTypeToType<float, std::complex<long double> >
58  : public boost::true_type {};
59 
60 template <>
61 struct FromTypeToType<double, std::complex<double> > : public boost::true_type {
62 };
63 template <>
64 struct FromTypeToType<double, long double> : public boost::true_type {};
65 template <>
66 struct FromTypeToType<double, std::complex<long double> >
67  : public boost::true_type {};
68 } // namespace eigenpy
69 
70 #endif // __eigenpy_scalar_conversion_hpp__


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Fri Jun 2 2023 02:10:26