numpy
2.0.0
|
#include <Python.h>
#include "structmember.h"
#include "numpy/arrayobject.h"
#include "numpy/arrayscalars.h"
#include "npy_config.h"
#include "npy_pycompat.h"
#include "arrayobject.h"
#include "mapping.h"
#include "lowlevel_strided_loops.h"
#include "scalartypes.h"
#include "array_assign.h"
#include "convert.h"
Defines | |
#define | PY_SSIZE_T_CLEAN |
#define | NPY_NO_DEPRECATED_API NPY_API_VERSION |
#define | _MULTIARRAYMODULE |
Functions | |
static PyObject * | recursive_tolist (PyArrayObject *self, char *dataptr, int startdim) |
NPY_NO_EXPORT PyObject * | PyArray_ToList (PyArrayObject *self) |
NPY_NO_EXPORT int | PyArray_ToFile (PyArrayObject *self, FILE *fp, char *sep, char *format) |
NPY_NO_EXPORT PyObject * | PyArray_ToString (PyArrayObject *self, NPY_ORDER order) |
NPY_NO_EXPORT int | PyArray_FillWithScalar (PyArrayObject *arr, PyObject *obj) |
NPY_NO_EXPORT int | PyArray_AssignZero (PyArrayObject *dst, PyArrayObject *wheremask) |
NPY_NO_EXPORT int | PyArray_AssignOne (PyArrayObject *dst, PyArrayObject *wheremask) |
NPY_NO_EXPORT PyObject * | PyArray_NewCopy (PyArrayObject *obj, NPY_ORDER order) |
NPY_NO_EXPORT PyObject * | PyArray_View (PyArrayObject *self, PyArray_Descr *type, PyTypeObject *pytype) |
#define _MULTIARRAYMODULE |
#define NPY_NO_DEPRECATED_API NPY_API_VERSION |
#define PY_SSIZE_T_CLEAN |
NPY_NO_EXPORT int PyArray_AssignOne | ( | PyArrayObject * | dst, |
PyArrayObject * | wheremask | ||
) |
References Py_TYPE.
NPY_NO_EXPORT int PyArray_AssignZero | ( | PyArrayObject * | dst, |
PyArrayObject * | wheremask | ||
) |
References NPY_UNSAFE_CASTING, PyArray_AssignArray(), and PyArray_NewLikeArray().
NPY_NO_EXPORT int PyArray_FillWithScalar | ( | PyArrayObject * | arr, |
PyObject * | obj | ||
) |
NPY_NO_EXPORT PyObject* PyArray_NewCopy | ( | PyArrayObject * | obj, |
NPY_ORDER | order | ||
) |
NPY_NO_EXPORT int PyArray_ToFile | ( | PyArrayObject * | self, |
FILE * | fp, | ||
char * | sep, | ||
char * | format | ||
) |
References PyArrayIterObject_tag::dataptr, PyArrayIterObject_tag::index, NPY_BEGIN_ALLOW_THREADS, NPY_BEGIN_THREADS, NPY_BEGIN_THREADS_DEF, NPY_END_ALLOW_THREADS, NPY_END_THREADS, NPY_INTP_FMT, NPY_LIST_PICKLE, PyArray_DATA, PyArray_DESCR, PyArray_ISCONTIGUOUS, PyArray_ITER_NEXT, PyArray_IterNew(), PyArray_SIZE, PyDataType_FLAGCHK, and PyArrayIterObject_tag::size.
NPY_NO_EXPORT PyObject* PyArray_ToList | ( | PyArrayObject * | self | ) |
NPY_NO_EXPORT PyObject* PyArray_ToString | ( | PyArrayObject * | self, |
NPY_ORDER | order | ||
) |
NPY_NO_EXPORT PyObject* PyArray_View | ( | PyArrayObject * | self, |
PyArray_Descr * | type, | ||
PyTypeObject * | pytype | ||
) |
static PyObject* recursive_tolist | ( | PyArrayObject * | self, |
char * | dataptr, | ||
int | startdim | ||
) | [static] |
References PyArray_DESCR, PyArray_DIM, PyArray_NDIM, and PyArray_STRIDE.