numpy 2.0.0
|
#include <Python.h>
#include "structmember.h"
#include "numpy/arrayobject.h"
#include "numpy/arrayscalars.h"
#include "numpy/npy_math.h"
#include "npy_config.h"
#include "numpy/npy_3kcompat.h"
#include "ctors.h"
#include "shape.h"
Defines | |
#define | PY_SSIZE_T_CLEAN |
#define | _MULTIARRAYMODULE |
#define | NPY_NO_PREFIX |
#define | PyAO PyArrayObject |
Functions | |
static int | _check_ones (PyArrayObject *self, int newnd, intp *newdims, intp *strides) |
static int | _fix_unknown_dimension (PyArray_Dims *newshape, intp s_original) |
static int | _attempt_nocopy_reshape (PyArrayObject *self, int newnd, intp *newdims, intp *newstrides, int fortran) |
static void | _putzero (char *optr, PyObject *zero, PyArray_Descr *dtype) |
NPY_NO_EXPORT PyObject * | PyArray_Resize (PyArrayObject *self, PyArray_Dims *newshape, int refcheck, NPY_ORDER fortran) |
NPY_NO_EXPORT PyObject * | PyArray_Newshape (PyArrayObject *self, PyArray_Dims *newdims, NPY_ORDER order) |
NPY_NO_EXPORT PyObject * | PyArray_Reshape (PyArrayObject *self, PyObject *shape) |
NPY_NO_EXPORT PyObject * | PyArray_Squeeze (PyArrayObject *self) |
NPY_NO_EXPORT PyObject * | PyArray_SwapAxes (PyArrayObject *ap, int a1, int a2) |
NPY_NO_EXPORT PyObject * | PyArray_Transpose (PyArrayObject *ap, PyArray_Dims *permute) |
int | _npy_stride_sort_item_comparator (const void *a, const void *b) |
NPY_NO_EXPORT void | PyArray_CreateSortedStridePerm (PyArrayObject *arr, _npy_stride_sort_item *strideperm) |
NPY_NO_EXPORT PyObject * | PyArray_Ravel (PyArrayObject *a, NPY_ORDER order) |
NPY_NO_EXPORT PyObject * | PyArray_Flatten (PyArrayObject *a, NPY_ORDER order) |
#define _MULTIARRAYMODULE |
#define NPY_NO_PREFIX |
#define PY_SSIZE_T_CLEAN |
#define PyAO PyArrayObject |
static int _attempt_nocopy_reshape | ( | PyArrayObject * | self, |
int | newnd, | ||
intp * | newdims, | ||
intp * | newstrides, | ||
int | fortran | ||
) | [static] |
<blockquote> with appropriate strides</blockquote>
static int _check_ones | ( | PyArrayObject * | self, |
int | newnd, | ||
intp * | newdims, | ||
intp * | strides | ||
) | [static] |
static int _fix_unknown_dimension | ( | PyArray_Dims * | newshape, |
intp | s_original | ||
) | [static] |
int _npy_stride_sort_item_comparator | ( | const void * | a, |
const void * | b | ||
) |
References NPY_CORDER, and PyArray_Newshape().
static void _putzero | ( | char * | optr, |
PyObject * | zero, | ||
PyArray_Descr * | dtype | ||
) | [static] |
References MAX_DIMS.
Referenced by _check_ones().
NPY_NO_EXPORT void PyArray_CreateSortedStridePerm | ( | PyArrayObject * | arr, |
_npy_stride_sort_item * | strideperm | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Flatten | ( | PyArrayObject * | a, |
NPY_ORDER | order | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Newshape | ( | PyArrayObject * | self, |
PyArray_Dims * | newdims, | ||
NPY_ORDER | order | ||
) |
References FALSE.
Referenced by _npy_stride_sort_item_comparator(), and _strings_richcompare().
NPY_NO_EXPORT PyObject* PyArray_Ravel | ( | PyArrayObject * | a, |
NPY_ORDER | order | ||
) |
Referenced by PyArray_Concatenate(), and PyArray_CopyAnyIntoOrdered().
NPY_NO_EXPORT PyObject* PyArray_Reshape | ( | PyArrayObject * | self, |
PyObject * | shape | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Resize | ( | PyArrayObject * | self, |
PyArray_Dims * | newshape, | ||
int | refcheck, | ||
NPY_ORDER | fortran | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Squeeze | ( | PyArrayObject * | self | ) |
NPY_NO_EXPORT PyObject* PyArray_SwapAxes | ( | PyArrayObject * | ap, |
int | a1, | ||
int | a2 | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Transpose | ( | PyArrayObject * | ap, |
PyArray_Dims * | permute | ||
) |
Referenced by PyArray_SearchSorted().