Skip to content
GitLab
Menu
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
9059f354
Verified
Commit
9059f354
authored
Feb 26, 2020
by
Justin Carpentier
Browse files
core: fix cast
parent
538ce6c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/numpy.hpp
View file @
9059f354
...
...
@@ -35,9 +35,9 @@ namespace eigenpy
#if defined _WIN32 || defined __CYGWIN__
namespace
eigenpy
{
EIGENPY_DLLEXPORT
PyObject
*
call_PyArray_SimpleNew
(
int
nd
,
npy_intp
*
shape
,
NPY_TYPES
np_type
);
EIGENPY_DLLEXPORT
PyObject
*
call_PyArray_SimpleNew
(
int
nd
,
npy_intp
*
shape
,
int
np_type
);
EIGENPY_DLLEXPORT
PyObject
*
call_PyArray_New
(
int
nd
,
npy_intp
*
shape
,
NPY_TYPES
np_type
,
void
*
data_ptr
,
int
options
);
EIGENPY_DLLEXPORT
PyObject
*
call_PyArray_New
(
int
nd
,
npy_intp
*
shape
,
int
np_type
,
void
*
data_ptr
,
int
options
);
EIGENPY_DLLEXPORT
int
call_PyArray_ObjectType
(
PyObject
*
,
int
);
}
...
...
src/numpy.cpp
View file @
9059f354
...
...
@@ -17,12 +17,12 @@ namespace eigenpy
#if defined _WIN32 || defined __CYGWIN__
PyObject
*
call_PyArray_SimpleNew
(
int
nd
,
npy_intp
*
shape
,
NPY_TYPES
np_type
)
PyObject
*
call_PyArray_SimpleNew
(
int
nd
,
npy_intp
*
shape
,
int
np_type
)
{
return
PyArray_SimpleNew
(
nd
,
shape
,
np_type
);
}
PyObject
*
call_PyArray_New
(
int
nd
,
npy_intp
*
shape
,
NPY_TYPES
np_type
,
void
*
data_ptr
,
int
options
)
PyObject
*
call_PyArray_New
(
int
nd
,
npy_intp
*
shape
,
int
np_type
,
void
*
data_ptr
,
int
options
)
{
return
PyArray_New
(
&
PyArray_Type
,
nd
,
shape
,
np_type
,
NULL
,
data_ptr
,
0
,
options
,
NULL
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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