Verified Commit 59039fba authored by Justin Carpentier's avatar Justin Carpentier
Browse files

user type: set additional fields

parent 10beaf23
...@@ -62,10 +62,13 @@ namespace eigenpy ...@@ -62,10 +62,13 @@ namespace eigenpy
descr.typeobj = py_type_ptr; descr.typeobj = py_type_ptr;
descr.kind = 'V'; descr.kind = 'V';
descr.byteorder = '='; descr.byteorder = '=';
descr.type = 'r';
descr.elsize = type_size; descr.elsize = type_size;
descr.flags = NPY_LIST_PICKLE | NPY_USE_GETITEM | NPY_USE_SETITEM | NPY_NEEDS_INIT | NPY_NEEDS_PYAPI; descr.flags = NPY_NEEDS_PYAPI | NPY_USE_GETITEM | NPY_USE_SETITEM;
// descr->names = PyTuple_New(0); descr.type_num = 0;
// descr->fields = PyDict_New(); descr.names = 0;
descr.fields = 0;
descr.alignment = call_PyArray_DescrFromType(NPY_OBJECT)->alignment;
PyArray_ArrFuncs * funcs_ptr = new PyArray_ArrFuncs; PyArray_ArrFuncs * funcs_ptr = new PyArray_ArrFuncs;
PyArray_ArrFuncs & funcs = *funcs_ptr; PyArray_ArrFuncs & funcs = *funcs_ptr;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment