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
88185e4f
Verified
Commit
88185e4f
authored
Jun 15, 2021
by
Justin Carpentier
Browse files
core: fix check of user types
parent
cdcfab5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/numpy-type.hpp
View file @
88185e4f
...
...
@@ -20,9 +20,12 @@ namespace eigenpy
template
<
typename
Scalar
>
bool
np_type_is_convertible_into_scalar
(
const
int
np_type
)
{
if
(
NumpyEquivalentType
<
Scalar
>::
type_code
>=
NPY_USERDEF
)
return
np_type
==
Register
::
getTypeCode
<
Scalar
>
();
if
(
NumpyEquivalentType
<
Scalar
>::
type_code
==
np_type
)
return
true
;
switch
(
np_type
)
{
case
NPY_INT
:
...
...
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