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
8bbaa052
Verified
Commit
8bbaa052
authored
Dec 28, 2020
by
Justin Carpentier
Browse files
core: allows template specialization of EigenToPy
parent
121f6e76
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/eigen-to-python.hpp
View file @
8bbaa052
...
...
@@ -50,7 +50,7 @@ namespace eigenpy
{
namespace
bp
=
boost
::
python
;
template
<
typename
MatType
>
template
<
typename
MatType
,
typename
_Scalar
>
struct
EigenToPy
{
static
PyObject
*
convert
(
typename
boost
::
add_reference
<
typename
boost
::
add_const
<
MatType
>::
type
>::
type
mat
)
...
...
@@ -82,8 +82,8 @@ namespace eigenpy
}
};
template
<
typename
MatType
,
int
Options
,
typename
Stride
>
struct
EigenToPy
<
Eigen
::
Ref
<
MatType
,
Options
,
Stride
>
>
template
<
typename
MatType
,
int
Options
,
typename
Stride
,
typename
_Scalar
>
struct
EigenToPy
<
Eigen
::
Ref
<
MatType
,
Options
,
Stride
>
,
_Scalar
>
{
static
PyObject
*
convert
(
const
Eigen
::
Ref
<
MatType
,
Options
,
Stride
>
&
mat
)
{
...
...
include/eigenpy/fwd.hpp
View file @
8bbaa052
...
...
@@ -28,8 +28,8 @@
namespace
eigenpy
{
template
<
typename
MatType
>
struct
EigenToPy
;
template
<
typename
MatType
>
struct
EigenFromPy
;
template
<
typename
MatType
,
typename
Scalar
=
typename
boost
::
remove_reference
<
MatType
>
::
type
::
Scalar
>
struct
EigenToPy
;
}
#endif // ifndef __eigenpy_fwd_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