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
59039fba
Verified
Commit
59039fba
authored
Jul 17, 2021
by
Justin Carpentier
Browse files
user type: set additional fields
parent
10beaf23
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/register.cpp
View file @
59039fba
...
...
@@ -62,10 +62,13 @@ namespace eigenpy
descr
.
typeobj
=
py_type_ptr
;
descr
.
kind
=
'V'
;
descr
.
byteorder
=
'='
;
descr
.
type
=
'r'
;
descr
.
elsize
=
type_size
;
descr
.
flags
=
NPY_LIST_PICKLE
|
NPY_USE_GETITEM
|
NPY_USE_SETITEM
|
NPY_NEEDS_INIT
|
NPY_NEEDS_PYAPI
;
// descr->names = PyTuple_New(0);
// descr->fields = PyDict_New();
descr
.
flags
=
NPY_NEEDS_PYAPI
|
NPY_USE_GETITEM
|
NPY_USE_SETITEM
;
descr
.
type_num
=
0
;
descr
.
names
=
0
;
descr
.
fields
=
0
;
descr
.
alignment
=
call_PyArray_DescrFromType
(
NPY_OBJECT
)
->
alignment
;
PyArray_ArrFuncs
*
funcs_ptr
=
new
PyArray_ArrFuncs
;
PyArray_ArrFuncs
&
funcs
=
*
funcs_ptr
;
...
...
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