|
numpy
2.0.0
|
#include <Python.h>#include <numpy/ndarraytypes.h>#include "npy_config.h"#include "npy_pycompat.h"#include "shape.h"#include "array_assign.h"#include "common.h"#include "lowlevel_strided_loops.h"#include "mem_overlap.h"Defines | |
| #define | PY_SSIZE_T_CLEAN |
| #define | NPY_NO_DEPRECATED_API NPY_API_VERSION |
| #define | _MULTIARRAYMODULE |
Functions | |
| NPY_NO_EXPORT int | broadcast_strides (int ndim, npy_intp *shape, int strides_ndim, npy_intp *strides_shape, npy_intp *strides, char *strides_name, npy_intp *out_strides) |
| NPY_NO_EXPORT int | raw_array_is_aligned (int ndim, char *data, npy_intp *strides, int alignment) |
| NPY_NO_EXPORT int | arrays_overlap (PyArrayObject *arr1, PyArrayObject *arr2) |
| #define _MULTIARRAYMODULE |
| #define NPY_NO_DEPRECATED_API NPY_API_VERSION |
| #define PY_SSIZE_T_CLEAN |
| NPY_NO_EXPORT int arrays_overlap | ( | PyArrayObject * | arr1, |
| PyArrayObject * | arr2 | ||
| ) |
| NPY_NO_EXPORT int broadcast_strides | ( | int | ndim, |
| npy_intp * | shape, | ||
| int | strides_ndim, | ||
| npy_intp * | strides_shape, | ||
| npy_intp * | strides, | ||
| char * | strides_name, | ||
| npy_intp * | out_strides | ||
| ) |
References build_shape_string(), PyUString_ConcatAndDel, PyUString_FromFormat, and PyUString_FromString.
| NPY_NO_EXPORT int raw_array_is_aligned | ( | int | ndim, |
| char * | data, | ||
| npy_intp * | strides, | ||
| int | alignment | ||
| ) |
References MEM_OVERLAP_NO, NPY_MAY_SHARE_BOUNDS, and solve_may_share_memory().
Referenced by raw_array_assign_array(), and raw_array_assign_scalar().