Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
fcd51fc7
Verified
Commit
fcd51fc7
authored
Feb 21, 2020
by
Justin Carpentier
Browse files
core: add dedicated file for FromTypeToType
parent
3f8df4fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
fcd51fc7
...
...
@@ -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
...
...
include/eigenpy/details.hpp
View file @
fcd51fc7
...
...
@@ -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
;
...
...
include/eigenpy/scalar-conversion.hpp
0 → 100644
View file @
fcd51fc7
//
// 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__
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment