Go to the source code of this file.
Function Documentation
- Register a type number indicating that a descriptor can be cast
- to it safely
If we were to allow this, the casting lookup table for built-in types needs to be modified, as cancastto is not checked for them.
register with cancastto These lists won't be freed once created -- they become part of the data-type
register with cancastscalarkindto
References PyArray_ArrFuncs::cancastto, _PyArray_Descr::f, and PyArray_NOTYPE.
NPY_NO_EXPORT int PyArray_RegisterDataType |
( |
PyArray_Descr * |
descr | ) |
|
returns typenum to associate with this type >=PyArray_USERDEF. needs the userdecrs table and PyArray_NUMUSER variables defined in arraytypes.inc
- Register Data type
- Does not change the reference count of descr
See if this type is already registered
References _PyArray_Descr::type_num, and userdescrs.
Variable Documentation