numpy 2.0.0
src/multiarray/conversion_utils.h
Go to the documentation of this file.
00001 #ifndef _NPY_PRIVATE_CONVERSION_UTILS_H_
00002 #define _NPY_PRIVATE_CONVERSION_UTILS_H_
00003 
00004 NPY_NO_EXPORT int
00005 PyArray_Converter(PyObject *object, PyObject **address);
00006 
00007 NPY_NO_EXPORT int
00008 PyArray_OutputConverter(PyObject *object, PyArrayObject **address);
00009 
00010 NPY_NO_EXPORT int
00011 PyArray_IntpConverter(PyObject *obj, PyArray_Dims *seq);
00012 
00013 NPY_NO_EXPORT int
00014 PyArray_BufferConverter(PyObject *obj, PyArray_Chunk *buf);
00015 
00016 NPY_NO_EXPORT int
00017 PyArray_BoolConverter(PyObject *object, Bool *val);
00018 
00019 NPY_NO_EXPORT int
00020 PyArray_ByteorderConverter(PyObject *obj, char *endian);
00021 
00022 NPY_NO_EXPORT int
00023 PyArray_SortkindConverter(PyObject *obj, NPY_SORTKIND *sortkind);
00024 
00025 NPY_NO_EXPORT int
00026 PyArray_SearchsideConverter(PyObject *obj, void *addr);
00027 
00028 NPY_NO_EXPORT int
00029 PyArray_PyIntAsInt(PyObject *o);
00030 
00031 NPY_NO_EXPORT intp
00032 PyArray_PyIntAsIntp(PyObject *o);
00033 
00034 NPY_NO_EXPORT int
00035 PyArray_IntpFromSequence(PyObject *seq, intp *vals, int maxvals);
00036 
00037 NPY_NO_EXPORT int
00038 PyArray_TypestrConvert(int itemsize, int gentype);
00039 
00040 NPY_NO_EXPORT PyObject *
00041 PyArray_IntTupleFromIntp(int len, intp *vals);
00042 
00043 #endif