numpy
2.0.0
|
#include <Python.h>
#include "structmember.h"
#include <npy_config.h>
#include "numpy/arrayobject.h"
#include "numpy/arrayscalars.h"
#include "npy_pycompat.h"
#include "arrayobject.h"
#include "ctors.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 | |
int | fallocate (int fd, int mode, off_t offset, off_t len) |
static int | npy_fallocate (npy_intp nbytes, FILE *fp) |
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 |
int fallocate | ( | int | fd, |
int | mode, | ||
off_t | offset, | ||
off_t | len | ||
) |
Referenced by npy_fallocate().
static int npy_fallocate | ( | npy_intp | nbytes, |
FILE * | fp | ||
) | [static] |
References fallocate(), NPY_BEGIN_ALLOW_THREADS, NPY_END_ALLOW_THREADS, npy_ftell, and NPY_INTP_FMT.
NPY_NO_EXPORT int PyArray_AssignOne | ( | PyArrayObject * | dst, |
PyArrayObject * | wheremask | ||
) |
NPY_NO_EXPORT int PyArray_AssignZero | ( | PyArrayObject * | dst, |
PyArrayObject * | wheremask | ||
) |
NPY_NO_EXPORT int PyArray_FillWithScalar | ( | PyArrayObject * | arr, |
PyObject * | obj | ||
) |
References NPY_LONGLONG, NPY_ULONGLONG, and PyArray_DescrFromType().
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 | ||
) |
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] |