Verified Commit fcd51fc7 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: add dedicated file for FromTypeToType

parent 3f8df4fd
......@@ -102,6 +102,7 @@ SET(${PROJECT_NAME}_HEADERS
include/eigenpy/computation-info.hpp
include/eigenpy/eigenpy.hpp
include/eigenpy/exception.hpp
include/eigenpy/scalar-conversion.hpp
include/eigenpy/expose.hpp
include/eigenpy/details.hpp
include/eigenpy/fwd.hpp
......
......@@ -12,6 +12,7 @@
#include <patchlevel.h> // For PY_MAJOR_VERSION
#include <iostream>
#include "eigenpy/scalar-conversion.hpp"
#include "eigenpy/eigenpy.hpp"
#include "eigenpy/numpy-type.hpp"
#include "eigenpy/registration.hpp"
......@@ -55,36 +56,7 @@ namespace boost { namespace python { namespace detail {
namespace eigenpy
{
template <typename SCALAR1, typename SCALAR2>
struct FromTypeToType : public boost::false_type {};
template <typename SCALAR>
struct FromTypeToType<SCALAR,SCALAR> : public boost::true_type {};
template <> struct FromTypeToType<int,long> : public boost::true_type {};
template <> struct FromTypeToType<int,float> : public boost::true_type {};
template <> struct FromTypeToType<int,std::complex<float> > : public boost::true_type {};
template <> struct FromTypeToType<int,double> : public boost::true_type {};
template <> struct FromTypeToType<int,std::complex<double> > : public boost::true_type {};
template <> struct FromTypeToType<int,long double> : public boost::true_type {};
template <> struct FromTypeToType<int,std::complex<long double> > : public boost::true_type {};
template <> struct FromTypeToType<long,float> : public boost::true_type {};
template <> struct FromTypeToType<long,std::complex<float> > : public boost::true_type {};
template <> struct FromTypeToType<long,double> : public boost::true_type {};
template <> struct FromTypeToType<long,std::complex<double> > : public boost::true_type {};
template <> struct FromTypeToType<long,long double> : public boost::true_type {};
template <> struct FromTypeToType<long,std::complex<long double> > : public boost::true_type {};
template <> struct FromTypeToType<float,std::complex<float> > : public boost::true_type {};
template <> struct FromTypeToType<float,double> : public boost::true_type {};
template <> struct FromTypeToType<float,std::complex<double> > : public boost::true_type {};
template <> struct FromTypeToType<float,long double> : public boost::true_type {};
template <> struct FromTypeToType<float,std::complex<long double> > : public boost::true_type {};
template <> struct FromTypeToType<double,std::complex<double> > : public boost::true_type {};
template <> struct FromTypeToType<double,long double> : public boost::true_type {};
template <> struct FromTypeToType<double,std::complex<long double> > : public boost::true_type {};
namespace bp = boost::python;
......
//
// Copyright (c) 2014-2020 CNRS INRIA
//
#ifndef __eigenpy_scalar_conversion_hpp__
#define __eigenpy_scalar_conversion_hpp__
#include "eigenpy/config.hpp"
namespace eigenpy
{
template <typename SCALAR1, typename SCALAR2>
struct FromTypeToType : public boost::false_type {};
template <typename SCALAR>
struct FromTypeToType<SCALAR,SCALAR> : public boost::true_type {};
template <> struct FromTypeToType<int,long> : public boost::true_type {};
template <> struct FromTypeToType<int,float> : public boost::true_type {};
template <> struct FromTypeToType<int,std::complex<float> > : public boost::true_type {};
template <> struct FromTypeToType<int,double> : public boost::true_type {};
template <> struct FromTypeToType<int,std::complex<double> > : public boost::true_type {};
template <> struct FromTypeToType<int,long double> : public boost::true_type {};
template <> struct FromTypeToType<int,std::complex<long double> > : public boost::true_type {};
template <> struct FromTypeToType<long,float> : public boost::true_type {};
template <> struct FromTypeToType<long,std::complex<float> > : public boost::true_type {};
template <> struct FromTypeToType<long,double> : public boost::true_type {};
template <> struct FromTypeToType<long,std::complex<double> > : public boost::true_type {};
template <> struct FromTypeToType<long,long double> : public boost::true_type {};
template <> struct FromTypeToType<long,std::complex<long double> > : public boost::true_type {};
template <> struct FromTypeToType<float,std::complex<float> > : public boost::true_type {};
template <> struct FromTypeToType<float,double> : public boost::true_type {};
template <> struct FromTypeToType<float,std::complex<double> > : public boost::true_type {};
template <> struct FromTypeToType<float,long double> : public boost::true_type {};
template <> struct FromTypeToType<float,std::complex<long double> > : public boost::true_type {};
template <> struct FromTypeToType<double,std::complex<double> > : public boost::true_type {};
template <> struct FromTypeToType<double,long double> : public boost::true_type {};
template <> struct FromTypeToType<double,std::complex<long double> > : public boost::true_type {};
}
#endif // __eigenpy_scalar_conversion_hpp__
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment