numpy
2.0.0
|
#include <Python.h>
#include "structmember.h"
#include "numpy/arrayobject.h"
#include "numpy/arrayscalars.h"
#include "npy_config.h"
#include "common.h"
#include "npy_pycompat.h"
#include "usertypes.h"
Defines | |
#define | PY_SSIZE_T_CLEAN |
#define | NPY_NO_DEPRECATED_API NPY_API_VERSION |
#define | _MULTIARRAYMODULE |
Functions | |
static int * | _append_new (int *types, int insert) |
static npy_bool | _default_nonzero (void *ip, void *arr) |
static void | _default_copyswapn (void *dst, npy_intp dstride, void *src, npy_intp sstride, npy_intp n, int swap, void *arr) |
NPY_NO_EXPORT void | PyArray_InitArrFuncs (PyArray_ArrFuncs *f) |
NPY_NO_EXPORT int | PyArray_RegisterDataType (PyArray_Descr *descr) |
NPY_NO_EXPORT int | PyArray_RegisterCastFunc (PyArray_Descr *descr, int totype, PyArray_VectorUnaryFunc *castfunc) |
NPY_NO_EXPORT int | PyArray_RegisterCanCast (PyArray_Descr *descr, int totype, NPY_SCALARKIND scalar) |
Variables | |
NPY_NO_EXPORT PyArray_Descr ** | userdescrs = NULL |
#define _MULTIARRAYMODULE |
#define NPY_NO_DEPRECATED_API NPY_API_VERSION |
#define PY_SSIZE_T_CLEAN |
static int* _append_new | ( | int * | types, |
int | insert | ||
) | [static] |
static void _default_copyswapn | ( | void * | dst, |
npy_intp | dstride, | ||
void * | src, | ||
npy_intp | sstride, | ||
npy_intp | n, | ||
int | swap, | ||
void * | arr | ||
) | [static] |
static npy_bool _default_nonzero | ( | void * | ip, |
void * | arr | ||
) | [static] |
References NPY_TRUE.
NPY_NO_EXPORT void PyArray_InitArrFuncs | ( | PyArray_ArrFuncs * | f | ) |
NPY_NO_EXPORT int PyArray_RegisterCanCast | ( | PyArray_Descr * | descr, |
int | totype, | ||
NPY_SCALARKIND | scalar | ||
) |
References PyArray_ArrFuncs::cancastto, _PyArray_Descr::f, and NPY_NOTYPE.
NPY_NO_EXPORT int PyArray_RegisterCastFunc | ( | PyArray_Descr * | descr, |
int | totype, | ||
PyArray_VectorUnaryFunc * | castfunc | ||
) |
References PyArray_ArrFuncs::castdict, and _PyArray_Descr::f.
NPY_NO_EXPORT int PyArray_RegisterDataType | ( | PyArray_Descr * | descr | ) |
References _PyArray_Descr::type_num, and userdescrs.
NPY_NO_EXPORT PyArray_Descr** userdescrs = NULL |
Referenced by PyArray_RegisterDataType().