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
538ce6c1
Verified
Commit
538ce6c1
authored
Feb 26, 2020
by
Justin Carpentier
Browse files
core: fix signatures
parent
94128d8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/numpy.hpp
View file @
538ce6c1
...
...
@@ -37,7 +37,7 @@ namespace eigenpy
{
EIGENPY_DLLEXPORT
PyObject
*
call_PyArray_SimpleNew
(
int
nd
,
npy_intp
*
shape
,
NPY_TYPES
np_type
);
EIGENPY_DLLEXPORT
PyObject
*
call_PyArray_New
(
int
nd
,
npy_intp
*
shape
,
NPY_TYPES
np_type
,
void
*
data_ptr
,
npy_
int
p
options
);
EIGENPY_DLLEXPORT
PyObject
*
call_PyArray_New
(
int
nd
,
npy_intp
*
shape
,
NPY_TYPES
np_type
,
void
*
data_ptr
,
int
options
);
EIGENPY_DLLEXPORT
int
call_PyArray_ObjectType
(
PyObject
*
,
int
);
}
...
...
src/numpy.cpp
View file @
538ce6c1
...
...
@@ -19,10 +19,10 @@ namespace eigenpy
PyObject
*
call_PyArray_SimpleNew
(
int
nd
,
npy_intp
*
shape
,
NPY_TYPES
np_type
)
{
return
(
PyArrayObject
*
)
PyArray_SimpleNew
(
nd
,
shape
,
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
,
npy_
int
p
options
)
PyObject
*
call_PyArray_New
(
int
nd
,
npy_intp
*
shape
,
NPY_TYPES
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