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 "arraytypes.h"
#include "arrayobject.h"
#include "hashdescr.h"
#include "descriptor.h"
#include "calculation.h"
#include "number.h"
#include "scalartypes.h"
#include "numpymemoryview.h"
#include "convert_datatype.h"
#include "nditer_pywrap.h"
#include <setjmp.h>
#include <signal.h>
#include "__multiarray_api.c"
Defines | |
#define | PY_SSIZE_T_CLEAN |
#define | _MULTIARRAYMODULE |
#define | NPY_NO_PREFIX |
#define | PyAO PyArrayObject |
#define | _ARET(x) PyArray_Return((PyArrayObject *)(x)) |
#define | STRIDING_OK(op, order) |
#define | _test_code() |
#define | SINGLE_INHERIT(child, parent) |
#define | DUAL_INHERIT(child, parent1, parent2) |
#define | DUAL_INHERIT_COMPARE(child, parent1, parent2) |
#define | DUAL_INHERIT2(child, parent1, parent2) |
#define | _addnew(val, one) |
#define | _addone(val) |
#define | RETVAL |
#define | ADDCONST(NAME) |
Functions | |
NPY_NO_EXPORT double | PyArray_GetPriority (PyObject *obj, double default_) |
NPY_NO_EXPORT int | PyArray_MultiplyIntList (int *l1, int n) |
NPY_NO_EXPORT npy_intp | PyArray_MultiplyList (npy_intp *l1, int n) |
NPY_NO_EXPORT npy_intp | PyArray_OverflowMultiplyList (npy_intp *l1, int n) |
NPY_NO_EXPORT void * | PyArray_GetPtr (PyArrayObject *obj, npy_intp *ind) |
NPY_NO_EXPORT int | PyArray_CompareLists (npy_intp *l1, npy_intp *l2, int n) |
NPY_NO_EXPORT int | PyArray_AsCArray (PyObject **op, void *ptr, npy_intp *dims, int nd, PyArray_Descr *typedescr) |
NPY_NO_EXPORT int | PyArray_As1D (PyObject **op, char **ptr, int *d1, int typecode) |
NPY_NO_EXPORT int | PyArray_As2D (PyObject **op, char ***ptr, int *d1, int *d2, int typecode) |
NPY_NO_EXPORT int | PyArray_Free (PyObject *op, void *ptr) |
static PyObject * | _swap_and_concat (PyObject *op, int axis, int n) |
NPY_NO_EXPORT PyObject * | PyArray_Concatenate (PyObject *op, int axis) |
static int | _signbit_set (PyArrayObject *arr) |
NPY_NO_EXPORT NPY_SCALARKIND | PyArray_ScalarKind (int typenum, PyArrayObject **arr) |
NPY_NO_EXPORT int | PyArray_CanCoerceScalar (int thistype, int neededtype, NPY_SCALARKIND scalar) |
static PyArrayObject * | new_array_for_sum (PyArrayObject *ap1, PyArrayObject *ap2, PyArrayObject *out, int nd, npy_intp dimensions[], int typenum) |
NPY_NO_EXPORT PyObject * | PyArray_InnerProduct (PyObject *op1, PyObject *op2) |
NPY_NO_EXPORT PyObject * | PyArray_MatrixProduct2 (PyObject *op1, PyObject *op2, PyArrayObject *out) |
NPY_NO_EXPORT PyObject * | PyArray_MatrixProduct (PyObject *op1, PyObject *op2) |
NPY_NO_EXPORT PyObject * | PyArray_CopyAndTranspose (PyObject *op) |
static PyArrayObject * | _pyarray_correlate (PyArrayObject *ap1, PyArrayObject *ap2, int typenum, int mode, int *inverted) |
static int | _pyarray_revert (PyArrayObject *ret) |
NPY_NO_EXPORT PyObject * | PyArray_Correlate2 (PyObject *op1, PyObject *op2, int mode) |
NPY_NO_EXPORT PyObject * | PyArray_Correlate (PyObject *op1, PyObject *op2, int mode) |
static PyObject * | array_putmask (PyObject *NPY_UNUSED(module), PyObject *args, PyObject *kwds) |
NPY_NO_EXPORT int | PyArray_OrderConverter (PyObject *object, NPY_ORDER *val) |
NPY_NO_EXPORT int | PyArray_ClipmodeConverter (PyObject *object, NPY_CLIPMODE *val) |
NPY_NO_EXPORT int | PyArray_ConvertClipmodeSequence (PyObject *object, NPY_CLIPMODE *modes, int n) |
static int | _equivalent_fields (PyObject *field1, PyObject *field2) |
static int | _equivalent_units (PyObject *meta1, PyObject *meta2) |
static int | _equivalent_subarrays (PyArray_ArrayDescr *sub1, PyArray_ArrayDescr *sub2) |
NPY_NO_EXPORT unsigned char | PyArray_EquivTypes (PyArray_Descr *typ1, PyArray_Descr *typ2) |
NPY_NO_EXPORT unsigned char | PyArray_EquivTypenums (int typenum1, int typenum2) |
static PyObject * | _prepend_ones (PyArrayObject *arr, int nd, int ndmin) |
static PyObject * | _array_fromobject (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kws) |
static PyObject * | array_empty (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_empty_like (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_scalar (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_zeros (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_count_nonzero (PyObject *NPY_UNUSED(self), PyObject *args) |
static PyObject * | array_fromstring (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *keywds) |
static PyObject * | array_fromfile (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *keywds) |
static PyObject * | array_fromiter (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *keywds) |
static PyObject * | array_frombuffer (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *keywds) |
static PyObject * | array_concatenate (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | array_innerproduct (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | array_matrixproduct (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static int | einsum_sub_op_from_str (PyObject *args, PyObject **str_obj, char **subscripts, PyArrayObject **op) |
static int | einsum_list_to_subscripts (PyObject *obj, char *subscripts, int subsize) |
static int | einsum_sub_op_from_lists (PyObject *args, char *subscripts, int subsize, PyArrayObject **op) |
static PyObject * | array_einsum (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | array_fastCopyAndTranspose (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | array_correlate (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | array_correlate2 (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | array_arange (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kws) |
NPY_NO_EXPORT unsigned int | PyArray_GetNDArrayCVersion (void) |
NPY_NO_EXPORT unsigned int | PyArray_GetNDArrayCFeatureVersion (void) |
static PyObject * | array__get_ndarray_c_version (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
NPY_NO_EXPORT int | PyArray_GetEndianness (void) |
static PyObject * | array__reconstruct (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | array_set_string_function (PyObject *NPY_UNUSED(self), PyObject *args, PyObject *kwds) |
static PyObject * | array_set_ops_function (PyObject *NPY_UNUSED(self), PyObject *NPY_UNUSED(args), PyObject *kwds) |
static PyObject * | array_set_datetimeparse_function (PyObject *NPY_UNUSED(self), PyObject *args, PyObject *kwds) |
NPY_NO_EXPORT PyObject * | PyArray_Where (PyObject *condition, PyObject *x, PyObject *y) |
static PyObject * | array_where (PyObject *NPY_UNUSED(ignored), PyObject *args) |
static PyObject * | array_lexsort (PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *kwds) |
static PyObject * | array_can_cast_safely (PyObject *NPY_UNUSED(self), PyObject *args, PyObject *kwds) |
static PyObject * | array_promote_types (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | array_min_scalar_type (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | array_result_type (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | new_buffer (PyObject *NPY_UNUSED(dummy), PyObject *args) |
static PyObject * | buffer_buffer (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static void | _SigSegv_Handler (int signum) |
static PyObject * | as_buffer (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | format_longfloat (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | compare_chararrays (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
static PyObject * | _vec_string_with_args (PyArrayObject *char_array, PyArray_Descr *type, PyObject *method, PyObject *args) |
static PyObject * | _vec_string_no_args (PyArrayObject *char_array, PyArray_Descr *type, PyObject *method) |
static PyObject * | _vec_string (PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) |
NPY_NO_EXPORT void | _PyArray_SigintHandler (int signum) |
NPY_NO_EXPORT void * | _PyArray_GetSigintBuf (void) |
static PyObject * | test_interrupt (PyObject *NPY_UNUSED(self), PyObject *args) |
static int | setup_scalartypes (PyObject *NPY_UNUSED(dict)) |
static void | set_flaginfo (PyObject *d) |
PyMODINIT_FUNC | initmultiarray (void) |
Variables | |
NPY_NO_EXPORT int | NPY_NUMUSERTYPES = 0 |
NPY_NO_EXPORT PyTypeObject | PyBigArray_Type |
jmp_buf | _NPY_SIGSEGV_BUF |
SIGJMP_BUF | _NPY_SIGINT_BUF |
static struct PyMethodDef | array_module_methods [] |
#define _addnew | ( | val, | |
one | |||
) |
PyDict_SetItemString(newd, #val, s=PyInt_FromLong(val)); \ Py_DECREF(s); \ PyDict_SetItemString(newd, #one, s=PyInt_FromLong(val)); \ Py_DECREF(s)
#define _addone | ( | val | ) |
PyDict_SetItemString(newd, #val, s=PyInt_FromLong(val)); \ Py_DECREF(s)
#define _ARET | ( | x | ) | PyArray_Return((PyArrayObject *)(x)) |
Referenced by PyArray_GetEndianness().
#define _MULTIARRAYMODULE |
#define _test_code | ( | ) |
{ \ test = *((char*)memptr); \ if (!ro) { \ *((char *)memptr) = '\0'; \ *((char *)memptr) = test; \ } \ test = *((char*)memptr+size-1); \ if (!ro) { \ *((char *)memptr+size-1) = '\0'; \ *((char *)memptr+size-1) = test; \ } \ }
#define ADDCONST | ( | NAME | ) |
s = PyInt_FromLong(NPY_##NAME); \ PyDict_SetItemString(d, #NAME, s); \ Py_DECREF(s)
#define DUAL_INHERIT | ( | child, | |
parent1, | |||
parent2 | |||
) |
Py##child##ArrType_Type.tp_base = &Py##parent2##ArrType_Type; \ Py##child##ArrType_Type.tp_bases = \ Py_BuildValue("(OO)", &Py##parent2##ArrType_Type, \ &Py##parent1##_Type); \ if (PyType_Ready(&Py##child##ArrType_Type) < 0) { \ PyErr_Print(); \ PyErr_Format(PyExc_SystemError, \ "could not initialize Py%sArrType_Type", \ #child); \ return -1; \ } \ Py##child##ArrType_Type.tp_hash = Py##parent1##_Type.tp_hash;
#define DUAL_INHERIT2 | ( | child, | |
parent1, | |||
parent2 | |||
) |
Py##child##ArrType_Type.tp_base = &Py##parent1##_Type; \ Py##child##ArrType_Type.tp_bases = \ Py_BuildValue("(OO)", &Py##parent1##_Type, \ &Py##parent2##ArrType_Type); \ Py##child##ArrType_Type.tp_richcompare = \ Py##parent1##_Type.tp_richcompare; \ DUAL_INHERIT_COMPARE(child, parent1, parent2) \ Py##child##ArrType_Type.tp_hash = Py##parent1##_Type.tp_hash; \ if (PyType_Ready(&Py##child##ArrType_Type) < 0) { \ PyErr_Print(); \ PyErr_Format(PyExc_SystemError, \ "could not initialize Py%sArrType_Type", \ #child); \ return -1; \ }
#define DUAL_INHERIT_COMPARE | ( | child, | |
parent1, | |||
parent2 | |||
) |
Py##child##ArrType_Type.tp_compare = \ Py##parent1##_Type.tp_compare;
#define NPY_NO_PREFIX |
#define PY_SSIZE_T_CLEAN |
#define PyAO PyArrayObject |
#define RETVAL |
#define SINGLE_INHERIT | ( | child, | |
parent | |||
) |
Py##child##ArrType_Type.tp_base = &Py##parent##ArrType_Type; \ if (PyType_Ready(&Py##child##ArrType_Type) < 0) { \ PyErr_Print(); \ PyErr_Format(PyExc_SystemError, \ "could not initialize Py%sArrType_Type", \ #child); \ return -1; \ }
#define STRIDING_OK | ( | op, | |
order | |||
) |
((order) == NPY_ANYORDER || \ ((order) == NPY_CORDER && \ PyArray_ISCONTIGUOUS(op)) || \ ((order) == NPY_FORTRANORDER && \ PyArray_ISFORTRAN(op)))
static PyObject* _array_fromobject | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kws | ||
) | [static] |
References FALSE, NPY_CORDER, NPY_FORTRANORDER, and TRUE.
static int _equivalent_fields | ( | PyObject * | field1, |
PyObject * | field2 | ||
) | [static] |
References FALSE.
static int _equivalent_subarrays | ( | PyArray_ArrayDescr * | sub1, |
PyArray_ArrayDescr * | sub2 | ||
) | [static] |
static int _equivalent_units | ( | PyObject * | meta1, |
PyObject * | meta2 | ||
) | [static] |
References Bool, PyArray_DescrFromType(), and PyArray_EquivTypes().
Referenced by PyArray_ClipmodeConverter().
static PyObject* _prepend_ones | ( | PyArrayObject * | arr, |
int | nd, | ||
int | ndmin | ||
) | [static] |
static PyArrayObject* _pyarray_correlate | ( | PyArrayObject * | ap1, |
PyArrayObject * | ap2, | ||
int | typenum, | ||
int | mode, | ||
int * | inverted | ||
) | [static] |
NPY_NO_EXPORT void* _PyArray_GetSigintBuf | ( | void | ) |
static int _pyarray_revert | ( | PyArrayObject * | ret | ) | [static] |
NPY_NO_EXPORT void _PyArray_SigintHandler | ( | int | signum | ) |
static int _signbit_set | ( | PyArrayObject * | arr | ) | [static] |
<
References _npy_scalar_kinds_table, _PyArray_Descr::f, NPY_NTYPES, PyArray_DescrFromType(), PyArray_INTNEG_SCALAR, PyArray_INTPOS_SCALAR, PyArray_NOSCALAR, PyTypeNum_ISUSERDEF, and PyArray_ArrFuncs::scalarkind.
static void _SigSegv_Handler | ( | int | signum | ) | [static] |
static PyObject* _swap_and_concat | ( | PyObject * | op, |
int | axis, | ||
int | n | ||
) | [static] |
static PyObject* _vec_string | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* _vec_string_no_args | ( | PyArrayObject * | char_array, |
PyArray_Descr * | type, | ||
PyObject * | method | ||
) | [static] |
References array_arange(), array_can_cast_safely(), array_concatenate(), array_correlate(), array_correlate2(), array_count_nonzero(), array_einsum(), array_empty(), array_empty_like(), array_fastCopyAndTranspose(), array_frombuffer(), array_fromfile(), array_fromiter(), array_fromstring(), array_innerproduct(), array_lexsort(), array_matrixproduct(), array_promote_types(), array_putmask(), array_scalar(), array_where(), array_zeros(), and NpyIter_NestedIters().
static PyObject* _vec_string_with_args | ( | PyArrayObject * | char_array, |
PyArray_Descr * | type, | ||
PyObject * | method, | ||
PyObject * | args | ||
) | [static] |
static PyObject* array__get_ndarray_c_version | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* array__reconstruct | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
static PyObject* array_arange | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kws | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_can_cast_safely | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_concatenate | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_correlate | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_correlate2 | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_count_nonzero | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_einsum | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_empty | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
References Bool, FALSE, PyArray_Dims::len, NPY_CORDER, NPY_FORTRANORDER, PyArray_Dims::ptr, PyArray_DescrConverter(), PyArray_IntpConverter(), PyArray_OrderConverter(), PyArray_Zeros(), PyDimMem_FREE, and TRUE.
Referenced by _vec_string_no_args().
static PyObject* array_empty_like | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
References PyArray_CountNonzero(), and PyArray_FromAny().
Referenced by _vec_string_no_args().
static PyObject* array_fastCopyAndTranspose | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_frombuffer | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | keywds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_fromfile | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | keywds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_fromiter | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | keywds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_fromstring | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | keywds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_innerproduct | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_lexsort | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_matrixproduct | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_min_scalar_type | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
References longdouble, and PyArray_IsScalar.
Referenced by _vec_string().
static PyObject* array_promote_types | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_putmask | ( | PyObject * | NPY_UNUSEDmodule, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_result_type | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string().
static PyObject* array_scalar | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_set_datetimeparse_function | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
<
static PyObject* array_set_ops_function | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | NPY_UNUSEDargs, | ||
PyObject * | kwds | ||
) | [static] |
static PyObject* array_set_string_function | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
References PyArray_CanCastTypeTo(), and PyArray_DescrConverter2().
static PyObject* array_where | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string_no_args().
static PyObject* array_zeros | ( | PyObject * | NPY_UNUSEDignored, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
<
References NPY_SSIZE_T_PYFMT, PyArray_DescrConverter(), and PyArray_FromIter().
Referenced by _vec_string_no_args().
static PyObject* as_buffer | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* buffer_buffer | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static PyObject* compare_chararrays | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
static int einsum_list_to_subscripts | ( | PyObject * | obj, |
char * | subscripts, | ||
int | subsize | ||
) | [static] |
Referenced by einsum_sub_op_from_str().
static int einsum_sub_op_from_lists | ( | PyObject * | args, |
char * | subscripts, | ||
int | subsize, | ||
PyArrayObject ** | op | ||
) | [static] |
static int einsum_sub_op_from_str | ( | PyObject * | args, |
PyObject ** | str_obj, | ||
char ** | subscripts, | ||
PyArrayObject ** | op | ||
) | [static] |
References einsum_list_to_subscripts(), NPY_ENSUREARRAY, NPY_MAXARGS, and PyArray_FromAny().
static PyObject* format_longfloat | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args, | ||
PyObject * | kwds | ||
) | [static] |
Referenced by _vec_string().
PyMODINIT_FUNC initmultiarray | ( | void | ) |
static PyArrayObject* new_array_for_sum | ( | PyArrayObject * | ap1, |
PyArrayObject * | ap2, | ||
PyArrayObject * | out, | ||
int | nd, | ||
npy_intp | dimensions[], | ||
int | typenum | ||
) | [static] |
References ALIGNED, PyArrayObject::dimensions, MAX_DIMS, PyArrayObject::nd, NPY_BEGIN_THREADS_DEF, Py_TYPE, PyArray_DescrFromType(), PyArray_FromAny(), and PyArray_ObjectType().
static PyObject* new_buffer | ( | PyObject * | NPY_UNUSEDdummy, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string().
NPY_NO_EXPORT int PyArray_As1D | ( | PyObject ** | op, |
char ** | ptr, | ||
int * | d1, | ||
int | typecode | ||
) |
References DEPRECATE, PyArray_AsCArray(), and PyArray_DescrFromType().
NPY_NO_EXPORT int PyArray_As2D | ( | PyObject ** | op, |
char *** | ptr, | ||
int * | d1, | ||
int * | d2, | ||
int | typecode | ||
) |
NPY_NO_EXPORT int PyArray_AsCArray | ( | PyObject ** | op, |
void * | ptr, | ||
npy_intp * | dims, | ||
int | nd, | ||
PyArray_Descr * | typedescr | ||
) |
References _pya_malloc, PyArrayObject::data, PyArrayObject::dimensions, and PyArrayObject::strides.
Referenced by PyArray_As1D().
NPY_NO_EXPORT int PyArray_CanCoerceScalar | ( | int | thistype, |
int | neededtype, | ||
NPY_SCALARKIND | scalar | ||
) |
<blockquote>
</blockquote>
NPY_NO_EXPORT int PyArray_ClipmodeConverter | ( | PyObject * | object, |
NPY_CLIPMODE * | val | ||
) |
References _equivalent_units(), PyArray_DatetimeMetaData::base, PyArray_DatetimeMetaData::den, PyArray_DatetimeMetaData::events, NPY_METADATA_DTSTR, NpyCapsule_AsVoidPtr(), and PyArray_DatetimeMetaData::num.
NPY_NO_EXPORT PyObject* PyArray_Concatenate | ( | PyObject * | op, |
int | axis | ||
) |
References MAX_DIMS, Py_TYPE, PyArray_GetPriority(), and PyArray_Ravel().
NPY_NO_EXPORT int PyArray_ConvertClipmodeSequence | ( | PyObject * | object, |
NPY_CLIPMODE * | modes, | ||
int | n | ||
) |
References _arr_descr::base, NPY_NO_EXPORT, PyArray_EquivTypes(), _arr_descr::shape, and TRUE.
NPY_NO_EXPORT PyObject* PyArray_CopyAndTranspose | ( | PyObject * | op | ) |
NPY_NO_EXPORT PyObject* PyArray_Correlate | ( | PyObject * | op1, |
PyObject * | op2, | ||
int | mode | ||
) |
NPY_NO_EXPORT PyObject* PyArray_Correlate2 | ( | PyObject * | op1, |
PyObject * | op2, | ||
int | mode | ||
) |
NPY_NO_EXPORT unsigned char PyArray_EquivTypenums | ( | int | typenum1, |
int | typenum2 | ||
) |
NPY_NO_EXPORT unsigned char PyArray_EquivTypes | ( | PyArray_Descr * | typ1, |
PyArray_Descr * | typ2 | ||
) |
Referenced by _equivalent_units(), PyArray_ConvertClipmodeSequence(), and PyArray_DescrAlignConverter2().
NPY_NO_EXPORT int PyArray_Free | ( | PyObject * | op, |
void * | ptr | ||
) |
NPY_NO_EXPORT int PyArray_GetEndianness | ( | void | ) |
References _ARET, and PyArray_LexSort().
NPY_NO_EXPORT unsigned int PyArray_GetNDArrayCFeatureVersion | ( | void | ) |
NPY_NO_EXPORT unsigned int PyArray_GetNDArrayCVersion | ( | void | ) |
NPY_NO_EXPORT double PyArray_GetPriority | ( | PyObject * | obj, |
double | default_ | ||
) |
NPY_NO_EXPORT void* PyArray_GetPtr | ( | PyArrayObject * | obj, |
npy_intp * | ind | ||
) |
NPY_NO_EXPORT PyObject* PyArray_InnerProduct | ( | PyObject * | op1, |
PyObject * | op2 | ||
) |
NPY_NO_EXPORT PyObject* PyArray_MatrixProduct | ( | PyObject * | op1, |
PyObject * | op2 | ||
) |
NPY_NO_EXPORT PyObject* PyArray_MatrixProduct2 | ( | PyObject * | op1, |
PyObject * | op2, | ||
PyArrayObject * | out | ||
) |
NPY_NO_EXPORT int PyArray_MultiplyIntList | ( | int * | l1, |
int | n | ||
) |
References NPY_MAX_INTP.
Referenced by _strided_to_strided_subarray_broadcast_withrefs().
NPY_NO_EXPORT int PyArray_OrderConverter | ( | PyObject * | object, |
NPY_ORDER * | val | ||
) |
Referenced by array_byteswap(), and array_empty().
NPY_NO_EXPORT NPY_SCALARKIND PyArray_ScalarKind | ( | int | typenum, |
PyArrayObject ** | arr | ||
) |
References PyArray_CanCastSafely().
NPY_NO_EXPORT PyObject* PyArray_Where | ( | PyObject * | condition, |
PyObject * | x, | ||
PyObject * | y | ||
) |
static void set_flaginfo | ( | PyObject * | d | ) | [static] |
static int setup_scalartypes | ( | PyObject * | NPY_UNUSEDdict | ) | [static] |
Referenced by _vec_string().
static PyObject* test_interrupt | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args | ||
) | [static] |
Referenced by _vec_string().
SIGJMP_BUF _NPY_SIGINT_BUF |
jmp_buf _NPY_SIGSEGV_BUF |
struct PyMethodDef array_module_methods[] [static] |
NPY_NO_EXPORT int NPY_NUMUSERTYPES = 0 |
NPY_NO_EXPORT PyTypeObject PyBigArray_Type |