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
821711e2
Verified
Commit
821711e2
authored
Feb 21, 2020
by
Justin Carpentier
Browse files
core: add dedicated EigenToPyConverter
parent
f29fb6d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
821711e2
...
...
@@ -108,6 +108,7 @@ SET(${PROJECT_NAME}_HEADERS
include/eigenpy/fwd.hpp
include/eigenpy/eigen-allocator.hpp
include/eigenpy/eigen-to-python.hpp
include/eigenpy/eigen-from-python.hpp
include/eigenpy/map.hpp
include/eigenpy/geometry.hpp
include/eigenpy/geometry-conversion.hpp
...
...
include/eigenpy/details.hpp
View file @
821711e2
...
...
@@ -304,6 +304,7 @@ namespace eigenpy
}
};
#endif
template
<
typename
MatType
,
typename
EigenEquivalentType
>
EIGENPY_DEPRECATED
...
...
@@ -317,7 +318,7 @@ namespace eigenpy
{
if
(
check_registration
<
MatType
>
())
return
;
bp
::
to_python_c
onverter
<
MatType
,
EigenToPy
<
MatType
>
>
();
EigenToPyC
onverter
<
MatType
>::
registration
();
EigenFromPyConverter
<
MatType
>::
registration
();
}
...
...
include/eigenpy/eigen-to-python.hpp
View file @
821711e2
...
...
@@ -47,6 +47,24 @@ namespace eigenpy
}
};
template
<
typename
MatType
>
struct
EigenToPyConverter
{
static
void
registration
()
{
bp
::
to_python_converter
<
MatType
,
EigenToPy
<
MatType
>
>
();
}
};
#if EIGEN_VERSION_AT_LEAST(3,2,0)
template
<
typename
MatType
>
struct
EigenToPyConverter
<
eigenpy
::
Ref
<
MatType
>
>
{
static
void
registration
()
{
}
};
#endif
}
#endif // __eigenpy_eigen_to_python_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