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
19f41401
Verified
Commit
19f41401
authored
Apr 19, 2022
by
Justin Carpentier
Browse files
core: add new signature for call_PyArray_New
parent
ee3370b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/numpy.hpp
View file @
19f41401
/*
* Copyright 2020-202
1
INRIA
* Copyright 2020-202
2
INRIA
*/
#ifndef __eigenpy_numpy_hpp__
...
...
@@ -109,6 +109,11 @@ EIGENPY_DLLAPI PyObject* call_PyArray_New(PyTypeObject* py_type_ptr, int nd,
npy_intp
*
shape
,
int
np_type
,
void
*
data_ptr
,
int
options
);
EIGENPY_DLLAPI
PyObject
*
call_PyArray_New
(
PyTypeObject
*
py_type_ptr
,
int
nd
,
npy_intp
*
shape
,
int
np_type
,
npy_intp
const
*
strides
,
void
*
data_ptr
,
int
options
);
EIGENPY_DLLAPI
int
call_PyArray_ObjectType
(
PyObject
*
,
int
);
EIGENPY_DLLAPI
PyTypeObject
*
getPyArrayType
();
...
...
@@ -143,6 +148,14 @@ inline PyObject* call_PyArray_New(PyTypeObject* py_type_ptr, int nd,
options
,
NULL
);
}
inline
PyObject
*
call_PyArray_New
(
PyTypeObject
*
py_type_ptr
,
int
nd
,
npy_intp
*
shape
,
int
np_type
,
npy_intp
const
*
strides
,
void
*
data_ptr
,
int
options
)
{
return
PyArray_New
(
py_type_ptr
,
nd
,
shape
,
np_type
,
strides
,
data_ptr
,
0
,
options
,
NULL
);
}
inline
int
call_PyArray_ObjectType
(
PyObject
*
obj
,
int
val
)
{
return
PyArray_ObjectType
(
obj
,
val
);
}
...
...
src/numpy.cpp
View file @
19f41401
/*
* Copyright 2020-202
1
INRIA
* Copyright 2020-202
2
INRIA
*/
#include
"eigenpy/numpy.hpp"
...
...
@@ -31,6 +31,13 @@ PyObject* call_PyArray_New(PyTypeObject* py_type_ptr, int nd, npy_intp* shape,
options
,
NULL
);
}
PyObject
*
call_PyArray_New
(
PyTypeObject
*
py_type_ptr
,
int
nd
,
npy_intp
*
shape
,
int
np_type
,
npy_intp
const
*
strides
,
void
*
data_ptr
,
int
options
)
{
return
PyArray_New
(
py_type_ptr
,
nd
,
shape
,
np_type
,
strides
,
data_ptr
,
0
,
options
,
NULL
);
}
int
call_PyArray_ObjectType
(
PyObject
*
obj
,
int
val
)
{
return
PyArray_ObjectType
(
obj
,
val
);
}
...
...
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