numpy 2.0.0
src/multiarray/descriptor.h
Go to the documentation of this file.
00001 #ifndef _NPY_ARRAYDESCR_H_
00002 #define _NPY_ARRAYDESCR_H_
00003 
00004 NPY_NO_EXPORT PyObject *arraydescr_protocol_typestr_get(PyArray_Descr *);
00005 NPY_NO_EXPORT PyObject *arraydescr_protocol_descr_get(PyArray_Descr *self);
00006 
00007 NPY_NO_EXPORT PyObject *
00008 array_set_typeDict(PyObject *NPY_UNUSED(ignored), PyObject *args);
00009 
00010 NPY_NO_EXPORT PyArray_Descr *
00011 _arraydescr_fromobj(PyObject *obj);
00012 
00013 /*
00014  * This creates a shorter repr using the 'kind' and 'itemsize',
00015  * instead of the longer type name. It also creates the input
00016  * for constructing a dtype rather than the full dtype function
00017  * call.
00018  *
00019  * This does not preserve the 'align=True' parameter
00020  * for structured arrays like the regular repr does.
00021  */
00022 NPY_NO_EXPORT PyObject *
00023 arraydescr_short_construction_repr(PyArray_Descr *dtype);
00024 
00025 #ifdef NPY_ENABLE_SEPARATE_COMPILATION
00026 extern NPY_NO_EXPORT char *_datetime_strings[];
00027 #endif
00028 
00029 #endif