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
7fbb1ee8
Verified
Commit
7fbb1ee8
authored
Jul 30, 2021
by
Justin Carpentier
Browse files
core: add missing NumpyEquivalentType
parent
7f1e2a3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/numpy.hpp
View file @
7fbb1ee8
/*
* Copyright 2020 INRIA
* Copyright 2020
-2021
INRIA
*/
#ifndef __eigenpy_numpy_hpp__
...
...
@@ -43,7 +43,11 @@ namespace eigenpy
template
<
>
struct
NumpyEquivalentType
<
std
::
complex
<
long
double
>
>
{
enum
{
type_code
=
NPY_CLONGDOUBLE
};};
template
<
>
struct
NumpyEquivalentType
<
bool
>
{
enum
{
type_code
=
NPY_BOOL
};};
template
<
>
struct
NumpyEquivalentType
<
int
>
{
enum
{
type_code
=
NPY_INT
};};
template
<
>
struct
NumpyEquivalentType
<
unsigned
int
>
{
enum
{
type_code
=
NPY_UINT
};};
template
<
>
struct
NumpyEquivalentType
<
long
>
{
enum
{
type_code
=
NPY_LONG
};};
template
<
>
struct
NumpyEquivalentType
<
unsigned
long
>
{
enum
{
type_code
=
NPY_ULONG
};};
template
<
>
struct
NumpyEquivalentType
<
int64_t
>
{
enum
{
type_code
=
NPY_INT64
};};
// template <> struct NumpyEquivalentType<long long> { enum { type_code = NPY_LONGLONG };};
template
<
typename
Scalar
>
bool
isNumpyNativeType
()
...
...
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