|
1 | 1 | /* |
2 | | - * Copyright 2020-2021 INRIA |
| 2 | + * Copyright 2020-2022 INRIA |
3 | 3 | */ |
4 | 4 |
|
5 | 5 | #ifndef __eigenpy_numpy_hpp__ |
@@ -109,6 +109,11 @@ EIGENPY_DLLAPI PyObject* call_PyArray_New(PyTypeObject* py_type_ptr, int nd, |
109 | 109 | npy_intp* shape, int np_type, |
110 | 110 | void* data_ptr, int options); |
111 | 111 |
|
| 112 | +EIGENPY_DLLAPI PyObject* call_PyArray_New(PyTypeObject* py_type_ptr, int nd, |
| 113 | + npy_intp* shape, int np_type, |
| 114 | + npy_intp const* strides, |
| 115 | + void* data_ptr, int options); |
| 116 | + |
112 | 117 | EIGENPY_DLLAPI int call_PyArray_ObjectType(PyObject*, int); |
113 | 118 |
|
114 | 119 | EIGENPY_DLLAPI PyTypeObject* getPyArrayType(); |
@@ -143,6 +148,14 @@ inline PyObject* call_PyArray_New(PyTypeObject* py_type_ptr, int nd, |
143 | 148 | options, NULL); |
144 | 149 | } |
145 | 150 |
|
| 151 | +inline PyObject* call_PyArray_New(PyTypeObject* py_type_ptr, int nd, |
| 152 | + npy_intp* shape, int np_type, |
| 153 | + npy_intp const* strides, void* data_ptr, |
| 154 | + int options) { |
| 155 | + return PyArray_New(py_type_ptr, nd, shape, np_type, strides, data_ptr, 0, |
| 156 | + options, NULL); |
| 157 | +} |
| 158 | + |
146 | 159 | inline int call_PyArray_ObjectType(PyObject* obj, int val) { |
147 | 160 | return PyArray_ObjectType(obj, val); |
148 | 161 | } |
|
0 commit comments