numpy
2.0.0
|
#include <numpy/npy_common.h>
#include <numpy/npy_cpu.h>
#include <numpy/ndarraytypes.h>
#include <limits.h>
#include "ucsnarrow.h"
Go to the source code of this file.
#define error_converting | ( | x | ) | (((x) == -1) && PyErr_Occurred()) |
#define NPY_BEGIN_THREADS_NDITER | ( | iter | ) |
#define NPY_CBLAS_CHUNK NPY_MAX_INTP |
Referenced by CFLOAT_vdot(), and VOID_compare().
NPY_NO_EXPORT PyArray_Descr* _array_find_python_scalar_type | ( | PyObject * | op | ) |
References NPY_LONG, and PyArray_DescrFromType().
NPY_NO_EXPORT PyArray_Descr* _array_typedescr_fromstr | ( | char * | c_str | ) |
static NPY_INLINE int _is_basic_python_type | ( | PyObject * | obj | ) | [static] |
References npy_is_aligned().
Referenced by PyArray_GetAttrString_SuppressException().
NPY_NO_EXPORT int _IsAligned | ( | PyArrayObject * | ap | ) |
<
<
Referenced by PyArray_UpdateFlags().
References convert_shape_to_string(), PyArray_DIM, PyArray_DIMS, PyArray_NDIM, PyUString_Format, and PyUString_FromString.
Referenced by PyArray_UpdateFlags().
NPY_NO_EXPORT int _may_have_objects | ( | PyArray_Descr * | dtype | ) |
Referenced by array_nbytes_get().
NPY_NO_EXPORT int _unpack_field | ( | PyObject * | value, |
PyArray_Descr ** | descr, | ||
npy_intp * | offset | ||
) |
Referenced by STRING_copyswapn().
NPY_NO_EXPORT int _zerofill | ( | PyArrayObject * | ret | ) |
References PyArray_BASE, PyArray_CHKFLAGS, and PyArray_ISWRITEABLE.
static NPY_INLINE int blas_stride | ( | npy_intp | stride, |
unsigned | itemsize | ||
) | [static] |
Referenced by CFLOAT_vdot(), and VOID_compare().
static NPY_INLINE int check_and_adjust_index | ( | npy_intp * | index, |
npy_intp | max_item, | ||
int | axis, | ||
PyThreadState * | _save | ||
) | [static] |
References NPY_INTP_FMT.
Referenced by _nonzero_indices(), parse_index_entry(), PyArray_Nonzero(), PyArray_TakeFrom(), and PyArray_TransferMaskedStridedToNDim().
NPY_NO_EXPORT PyObject* convert_shape_to_string | ( | npy_intp | n, |
npy_intp * | vals, | ||
char * | ending | ||
) |
Referenced by _IsWriteable().
NPY_NO_EXPORT void dot_alignment_error | ( | PyArrayObject * | a, |
int | i, | ||
PyArrayObject * | b, | ||
int | j | ||
) |
Referenced by array_vdot().
NPY_NO_EXPORT char* index2ptr | ( | PyArrayObject * | mp, |
npy_intp | i | ||
) |
static NPY_INLINE int npy_is_aligned | ( | const void * | p, |
const npy_uintp | alignment | ||
) | [static] |
Referenced by _BOOL(), _is_basic_python_type(), and raw_array_assign_scalar().
static NPY_INLINE char* npy_memchr | ( | char * | haystack, |
char | needle, | ||
npy_intp | stride, | ||
npy_intp | size, | ||
npy_intp * | psubloopsize, | ||
int | invert | ||
) | [static] |
References NPY_CPU_HAVE_UNALIGNED_ACCESS.
Referenced by PyUFunc_MixedDivisionTypeResolver().
NPY_NO_EXPORT int PyArray_DTypeFromObject | ( | PyObject * | obj, |
int | maxdims, | ||
PyArray_Descr ** | out_dtype | ||
) |
References promote_types(), PyArray_Check, and PyArray_DESCR.
Referenced by _is_default_descr().
NPY_NO_EXPORT int PyArray_DTypeFromObjectHelper | ( | PyObject * | obj, |
int | maxdims, | ||
PyArray_Descr ** | out_dtype, | ||
int | string_status | ||
) |
References NPY_OBJECT, promote_types(), and PyArray_DescrFromType().
NPY_NO_EXPORT PyObject* PyArray_GetAttrString_SuppressException | ( | PyObject * | obj, |
char * | name | ||
) |
References _is_basic_python_type().