|
numpy 2.0.0
|
#include "Python.h"#include "structmember.h"#include "numpy/arrayobject.h"#include "numpy/arrayscalars.h"#include "numpy/npy_3kcompat.h"#include "numpy/npy_math.h"#include "numpy/halffloat.h"#include "npy_config.h"#include "npy_sort.h"#include "common.h"#include "ctors.h"#include "usertypes.h"#include "_datetime.h"#include "numpyos.h"Defines | |
| #define | PY_SSIZE_T_CLEAN |
| #define | NPY_NO_DEPRECATED_API |
| #define | _MULTIARRAYMODULE |
| #define | NPY_NO_PREFIX |
| #define | __ALIGNED(obj, sz) ((((size_t) obj) % (sz))==0) |
| #define | _NPY_UNUSEDBOOL NPY_UNUSED |
| #define | _NPY_UNUSEDBYTE NPY_UNUSED |
| #define | _NPY_UNUSEDUBYTE NPY_UNUSED |
| #define | _NPY_UNUSEDSHORT NPY_UNUSED |
| #define | _NPY_UNUSEDUSHORT NPY_UNUSED |
| #define | _NPY_UNUSEDINT NPY_UNUSED |
| #define | _NPY_UNUSEDUINT NPY_UNUSED |
| #define | _NPY_UNUSEDLONG NPY_UNUSED |
| #define | _NPY_UNUSEDULONG NPY_UNUSED |
| #define | _NPY_UNUSEDLONGLONG NPY_UNUSED |
| #define | _NPY_UNUSEDULONGLONG NPY_UNUSED |
| #define | _NPY_UNUSEDHALF NPY_UNUSED |
| #define | _NPY_UNUSEDFLOAT NPY_UNUSED |
| #define | _NPY_UNUSEDDOUBLE NPY_UNUSED |
| #define | _NPY_UNUSEDLONGDOUBLE NPY_UNUSED |
| #define | _NPY_UNUSEDCFLOAT NPY_UNUSED |
| #define | _NPY_UNUSEDCDOUBLE NPY_UNUSED |
| #define | _NPY_UNUSEDCLONGDOUBLE NPY_UNUSED |
| #define | _NPY_UNUSEDDATETIME NPY_UNUSED |
| #define | _NPY_UNUSEDTIMEDELTA NPY_UNUSED |
| #define | _NPY_UNUSEDHALF NPY_UNUSED |
| #define | _NPY_UNUSEDSTRING |
| #define | _NPY_UNUSEDVOID |
| #define | _NPY_UNUSEDUNICODE |
| #define | fname @_scan NULL |
| #define | fname @_fromstr NULL |
| #define | _NONZERO(a) ((a) != 0) |
| #define | WHITESPACE " \t\n\r\v\f" |
| #define | WHITELEN 6 |
| #define | PyArray_UCS4_ISSPACE(ch) Py_STRING_ISSPACE((char)ch) |
| #define | LT(a, b) ((a) < (b) || ((b) != (b) && (a) ==(a))) |
| #define | _LESS_THAN_OR_EQUAL(a, b) ((a) <= (b)) |
| #define | VOID_argmax NULL |
| #define | BOOL_fill NULL |
| #define | _LESS_THAN(a, b) ((a) < (b)) |
| #define | _GREATER_THAN(a, b) ((a) > (b)) |
| #define | _HALF_LESS_THAN(a, b) (!npy_half_isnan(a) && npy_half_lt_nonan(a, b)) |
| #define | _HALF_GREATER_THAN(a, b) (!npy_half_isnan(a) && npy_half_lt_nonan(b, a)) |
| #define | OBJECT_fastclip NULL |
| #define | OBJECT_fastputmask NULL |
| #define | OBJECT_fasttake NULL |
| #define | _ALIGN(type) offsetof(struct {char c; type v;}, v) |
| #define | _MAX_LETTER 128 |
| #define | BITSOF_INTP CHAR_BIT*SIZEOF_PY_INTPTR_T |
| #define | BITSOF_BYTE CHAR_BIT |
| #define | BITSOF_CFLOAT 2*BITSOF_FLOAT |
| #define | BITSOF_CDOUBLE 2*BITSOF_DOUBLE |
| #define | BITSOF_CLONGDOUBLE 2*BITSOF_LONGDOUBLE |
| #define | SETTYPE(name) |
Functions | |
| static double | MyPyFloat_AsDouble (PyObject *obj) |
| static npy_half | MyPyFloat_AsHalf (PyObject *obj) |
| static PyObject * | MyPyFloat_FromHalf (npy_half h) |
| static type MyPyLong_As | Type (PyObject *obj) |
| static PyObject *TYPE | _getitem (char *ip, PyArrayObject *ap) |
| static int TYPE | _setitem (PyObject *op, char *ov, PyArrayObject *ap) |
| static PyObject * | LONGDOUBLE_getitem (char *ip, PyArrayObject *ap) |
| static int | LONGDOUBLE_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
| static PyObject * | CLONGDOUBLE_getitem (char *ip, PyArrayObject *ap) |
| static PyObject * | UNICODE_getitem (char *ip, PyArrayObject *ap) |
| static int | UNICODE_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
| static PyObject * | STRING_getitem (char *ip, PyArrayObject *ap) |
| static int | STRING_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
| static PyObject * | OBJECT_getitem (char *ip, PyArrayObject *ap) |
| static int | OBJECT_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
| static PyObject * | VOID_getitem (char *ip, PyArrayObject *ap) |
| NPY_NO_EXPORT int | PyArray_CopyObject (PyArrayObject *, PyObject *) |
| static int | VOID_setitem (PyObject *op, char *ip, PyArrayObject *ap) |
| static PyObject * | DATETIME_getitem (char *ip, PyArrayObject *ap) |
| static PyObject * | TIMEDELTA_getitem (char *ip, PyArrayObject *ap) |
| static int | DATETIME_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
| static int | TIMEDELTA_setitem (PyObject *op, char *ov, PyArrayObject *ap) |
| static void FROMTYPE _to_ | TOTYPE (@fromtype @*ip,@totype @*op, intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
| static void TYPE | _to_HALF (@type @*ip, npy_half *op, intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
| static void HALF_to_ | TYPE (npy_half *ip,@type @*op, intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
| static void TYPE | _to_HALF (@itype @*ip, npy_half *op, intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
| static void HALF_to_ | TYPE (npy_half *ip,@itype @*op, intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
| static void | CLONGDOUBLE_to_HALF (longdouble *ip, npy_half *op, intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
| static void | HALF_to_CLONGDOUBLE (npy_half *ip, longdouble *op, intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
| static void FROMTYPE | _to_BOOL (@fromtype @*ip, Bool *op, intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
| static void | HALF_to_BOOL (npy_half *ip, Bool *op, intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
| static void BOOL_to_ | TOTYPE (Bool *ip,@totype @*op, intp n, PyArrayObject *NPY_UNUSED(aip), PyArrayObject *NPY_UNUSED(aop)) |
| static void FROMTYPE | _to_OBJECT (@fromtype @*ip, PyObject **op, intp n, PyArrayObject *aip, PyArrayObject *NPY_UNUSED(aop)) |
| static void OBJECT_to_ | TOTYPE (PyObject **ip,@totype @*op, intp n, PyArrayObject *_NPY_UNUSED @TOTYPE @(aip), PyArrayObject *aop) |
| static void from _to_ | to (@fromtyp @*ip,@totyp @*op, intp n, PyArrayObject *aip, PyArrayObject *aop) |
| static int fname | _scan (FILE *fp,@type @*ip, void *NPY_UNUSED(ignore), PyArray_Descr *NPY_UNUSED(ignored)) |
| static int | HALF_scan (FILE *fp, npy_half *ip, void *NPY_UNUSED(ignore), PyArray_Descr *NPY_UNUSED(ignored)) |
| static int fname | _scan (FILE *fp,@type @*ip, void *NPY_UNUSED(ignore), PyArray_Descr *NPY_UNUSED(ignore2)) |
| static int | BOOL_scan (FILE *fp, Bool *ip, void *NPY_UNUSED(ignore), PyArray_Descr *NPY_UNUSED(ignore2)) |
| static int fname | _fromstr (char *str,@type @*ip, char **endptr, PyArray_Descr *NPY_UNUSED(ignore)) |
| static int | HALF_fromstr (char *str, npy_half *ip, char **endptr, PyArray_Descr *NPY_UNUSED(ignore)) |
| static int | BOOL_fromstr (char *str, Bool *ip, char **endptr, PyArray_Descr *NPY_UNUSED(ignore)) |
| static void fname | _copyswapn (void *dst, intp dstride, void *src, intp sstride, intp n, int swap, void *NPY_UNUSED(arr)) |
| static void fname | _copyswap (void *dst, void *src, int swap, void *NPY_UNUSED(arr)) |
| static void fname | _copyswapn (void *dst, intp dstride, void *src, intp sstride, intp n, int NPY_UNUSED(swap), void *NPY_UNUSED(arr)) |
| static void fname | _copyswap (void *dst, void *src, int NPY_UNUSED(swap), void *NPY_UNUSED(arr)) |
| static void | OBJECT_copyswapn (PyObject **dst, intp dstride, PyObject **src, intp sstride, intp n, int NPY_UNUSED(swap), void *NPY_UNUSED(arr)) |
| static void | OBJECT_copyswap (PyObject **dst, PyObject **src, int NPY_UNUSED(swap), void *NPY_UNUSED(arr)) |
| static void | STRING_copyswapn (char *dst, intp dstride, char *src, intp sstride, intp n, int NPY_UNUSED(swap), PyArrayObject *arr) |
| static void | VOID_copyswapn (char *dst, intp dstride, char *src, intp sstride, intp n, int swap, PyArrayObject *arr) |
| static void | VOID_copyswap (char *dst, char *src, int swap, PyArrayObject *arr) |
| static void | UNICODE_copyswapn (char *dst, intp dstride, char *src, intp sstride, intp n, int swap, PyArrayObject *arr) |
| static void | STRING_copyswap (char *dst, char *src, int NPY_UNUSED(swap), PyArrayObject *arr) |
| static void | UNICODE_copyswap (char *dst, char *src, int swap, PyArrayObject *arr) |
| static Bool fname | _nonzero (char *ip, PyArrayObject *ap) |
| static Bool | Py_STRING_ISSPACE (char ch) |
| static Bool | STRING_nonzero (char *ip, PyArrayObject *ap) |
| static Bool | UNICODE_nonzero (PyArray_UCS4 *ip, PyArrayObject *ap) |
| static Bool | OBJECT_nonzero (PyObject **ip, PyArrayObject *ap) |
| static Bool | VOID_nonzero (char *ip, PyArrayObject *ap) |
| static int | BOOL_compare (Bool *ip1, Bool *ip2, PyArrayObject *NPY_UNUSED(ap)) |
| static int TYPE | _compare (@type @*pa,@type @*pb, PyArrayObject *NPY_UNUSED(ap)) |
| static int TYPE | _compare (@type @*pa,@type @*pb) |
| static int | HALF_compare (npy_half *pa, npy_half *pb, PyArrayObject *NPY_UNUSED(ap)) |
| static int | OBJECT_compare (PyObject **ip1, PyObject **ip2, PyArrayObject *NPY_UNUSED(ap)) |
| static int | STRING_compare (char *ip1, char *ip2, PyArrayObject *ap) |
| static int | UNICODE_compare (PyArray_UCS4 *ip1, PyArray_UCS4 *ip2, PyArrayObject *ap) |
| static int | VOID_compare (char *ip1, char *ip2, PyArrayObject *ap) |
| static int fname | _argmax (@type @*ip, intp n, intp *max_ind, PyArrayObject *NPY_UNUSED(aip)) |
| static int | OBJECT_argmax (PyObject **ip, intp n, intp *max_ind, PyArrayObject *NPY_UNUSED(aip)) |
| static int fname | _argmax (@type @*ip, intp n, intp *max_ind, PyArrayObject *aip) |
| static void | BOOL_dot (char *ip1, intp is1, char *ip2, intp is2, char *op, intp n, void *NPY_UNUSED(ignore)) |
| static void name | _dot (char *ip1, intp is1, char *ip2, intp is2, char *op, intp n, void *NPY_UNUSED(ignore)) |
| static void | HALF_dot (char *ip1, npy_intp is1, char *ip2, npy_intp is2, char *op, npy_intp n, void *NPY_UNUSED(ignore)) |
| static void | OBJECT_dot (char *ip1, intp is1, char *ip2, intp is2, char *op, intp n, void *NPY_UNUSED(ignore)) |
| static void | OBJECT_fill (PyObject **buffer, intp length, void *NPY_UNUSED(ignored)) |
| static void NAME | _fill (@typ @*buffer, intp length, void *NPY_UNUSED(ignored)) |
| static void | HALF_fill (npy_half *buffer, npy_intp length, void *NPY_UNUSED(ignored)) |
| static void NAME | _fill (@typ @*buffer, intp length, void *NPY_UNUSED(ignore)) |
| static void | OBJECT_fillwithscalar (PyObject **buffer, intp length, PyObject **value, void *NPY_UNUSED(ignored)) |
| static void NAME | _fillwithscalar (@typ @*buffer, intp length,@typ @*value, void *NPY_UNUSED(ignored)) |
| static void name | _fastclip (@type @*in, intp ni,@type @*min,@type @*max,@type @*out) |
| static void name | _fastputmask (@type @*in, Bool *mask, intp ni,@type @*vals, intp nv) |
| static int name | _fasttake (@type @*dest,@type @*src, intp *indarray, intp nindarray, intp n_outer, intp m_middle, intp nelem, NPY_CLIPMODE clipmode) |
| static void | _init_datetime_descr (PyArray_Descr *descr) |
| NPY_NO_EXPORT PyArray_Descr * | PyArray_DescrFromType (int type) |
| NPY_NO_EXPORT int | set_typeinfo (PyObject *dict) |
Variables | |
| static PyArray_ArrFuncs _Py NAME | _ArrFuncs |
| static PyArray_Descr from | _Descr |
| static char | _letter_to_num [_MAX_LETTER] |
| static PyArray_Descr * | _builtin_descrs [] |
| #define __ALIGNED | ( | obj, | |
| sz | |||
| ) | ((((size_t) obj) % (sz))==0) |
| #define _ALIGN | ( | type | ) | offsetof(struct {char c; type v;}, v) |
| #define _GREATER_THAN | ( | a, | |
| b | |||
| ) | ((a) > (b)) |
| #define _HALF_GREATER_THAN | ( | a, | |
| b | |||
| ) | (!npy_half_isnan(a) && npy_half_lt_nonan(b, a)) |
| #define _HALF_LESS_THAN | ( | a, | |
| b | |||
| ) | (!npy_half_isnan(a) && npy_half_lt_nonan(a, b)) |
| #define _LESS_THAN | ( | a, | |
| b | |||
| ) | ((a) < (b)) |
| #define _LESS_THAN_OR_EQUAL | ( | a, | |
| b | |||
| ) | ((a) <= (b)) |
| #define _MAX_LETTER 128 |
| #define _MULTIARRAYMODULE |
| #define _NONZERO | ( | a | ) | ((a) != 0) |
| #define _NPY_UNUSEDBOOL NPY_UNUSED |
| #define _NPY_UNUSEDBYTE NPY_UNUSED |
| #define _NPY_UNUSEDCDOUBLE NPY_UNUSED |
| #define _NPY_UNUSEDCFLOAT NPY_UNUSED |
| #define _NPY_UNUSEDCLONGDOUBLE NPY_UNUSED |
| #define _NPY_UNUSEDDATETIME NPY_UNUSED |
| #define _NPY_UNUSEDDOUBLE NPY_UNUSED |
| #define _NPY_UNUSEDFLOAT NPY_UNUSED |
| #define _NPY_UNUSEDHALF NPY_UNUSED |
| #define _NPY_UNUSEDHALF NPY_UNUSED |
| #define _NPY_UNUSEDINT NPY_UNUSED |
| #define _NPY_UNUSEDLONG NPY_UNUSED |
| #define _NPY_UNUSEDLONGDOUBLE NPY_UNUSED |
| #define _NPY_UNUSEDLONGLONG NPY_UNUSED |
| #define _NPY_UNUSEDSHORT NPY_UNUSED |
| #define _NPY_UNUSEDSTRING |
| #define _NPY_UNUSEDTIMEDELTA NPY_UNUSED |
| #define _NPY_UNUSEDUBYTE NPY_UNUSED |
| #define _NPY_UNUSEDUINT NPY_UNUSED |
| #define _NPY_UNUSEDULONG NPY_UNUSED |
| #define _NPY_UNUSEDULONGLONG NPY_UNUSED |
| #define _NPY_UNUSEDUNICODE |
| #define _NPY_UNUSEDUSHORT NPY_UNUSED |
| #define _NPY_UNUSEDVOID |
| #define BITSOF_BYTE CHAR_BIT |
| #define BITSOF_CDOUBLE 2*BITSOF_DOUBLE |
| #define BITSOF_CFLOAT 2*BITSOF_FLOAT |
| #define BITSOF_CLONGDOUBLE 2*BITSOF_LONGDOUBLE |
| #define BITSOF_INTP CHAR_BIT*SIZEOF_PY_INTPTR_T |
| #define BOOL_fill NULL |
| #define fname @_fromstr NULL |
| #define fname @_scan NULL |
Referenced by BOOL_compare(), and ufunc_frompyfunc().
| #define LT | ( | a, | |
| b | |||
| ) | ((a) < (b) || ((b) != (b) && (a) ==(a))) |
| #define NPY_NO_DEPRECATED_API |
| #define NPY_NO_PREFIX |
| #define OBJECT_fastclip NULL |
| #define OBJECT_fastputmask NULL |
| #define OBJECT_fasttake NULL |
| #define PY_SSIZE_T_CLEAN |
| #define PyArray_UCS4_ISSPACE | ( | ch | ) | Py_STRING_ISSPACE((char)ch) |
| #define SETTYPE | ( | name | ) |
Py_INCREF(&Py##name##ArrType_Type); \ PyDict_SetItemString(infodict, #name, \ (PyObject *)&Py##name##ArrType_Type)
| #define VOID_argmax NULL |
| #define WHITELEN 6 |
| #define WHITESPACE " \t\n\r\v\f" |
| static int fname _argmax | ( | @type @* | ip, |
| intp | n, | ||
| intp * | max_ind, | ||
| PyArrayObject * | NPY_UNUSEDaip | ||
| ) | [static] |
<
Referenced by BOOL_compare().
| static int fname _argmax | ( | @type @* | ip, |
| intp | n, | ||
| intp * | max_ind, | ||
| PyArrayObject * | aip | ||
| ) | [static] |
| static int TYPE _compare | ( | @type @* | pa, |
| @type @* | pb, | ||
| PyArrayObject * | NPY_UNUSEDap | ||
| ) | [static] |
| static int C TYPE _compare | ( | @type @* | pa, |
| @type @* | pb | ||
| ) | [static] |
References TRUE.
| static void fname _copyswap | ( | void * | dst, |
| void * | src, | ||
| int | NPY_UNUSEDswap, | ||
| void * | NPY_UNUSEDarr | ||
| ) | [static] |
References _unaligned_strided_byte_copy(), c, PyArrayObject::descr, and _PyArray_Descr::elsize.
| static void fname _copyswap | ( | void * | dst, |
| void * | src, | ||
| int | swap, | ||
| void * | NPY_UNUSEDarr | ||
| ) | [static] |
<
References PyArray_ArrFuncs::copyswapn, PyArrayObject::descr, _PyArray_Descr::f, and NPY_TITLE_KEY.
| static void fname _copyswapn | ( | void * | dst, |
| intp | dstride, | ||
| void * | src, | ||
| intp | sstride, | ||
| intp | n, | ||
| int | swap, | ||
| void * | NPY_UNUSEDarr | ||
| ) | [static] |
</blockquote>
| static void name _dot | ( | char * | ip1, |
| intp | is1, | ||
| char * | ip2, | ||
| intp | is2, | ||
| char * | op, | ||
| intp | n, | ||
| void * | NPY_UNUSEDignore | ||
| ) | [static] |
</blockquote>
| static void name _fastclip | ( | @type @* | in, |
| intp | ni, | ||
| @type @* | min, | ||
| @type @* | max, | ||
| @type @* | out | ||
| ) | [static] |
| static void name _fastputmask | ( | @type @* | in, |
| Bool * | mask, | ||
| intp | ni, | ||
| @type @* | vals, | ||
| intp | nv | ||
| ) | [static] |
</blockquote>
| static int name _fasttake | ( | @type @* | dest, |
| @type @* | src, | ||
| intp * | indarray, | ||
| intp | nindarray, | ||
| intp | n_outer, | ||
| intp | m_middle, | ||
| intp | nelem, | ||
| NPY_CLIPMODE | clipmode | ||
| ) | [static] |
</blockquote>
| static void NAME _fill | ( | @typ @* | buffer, |
| intp | length, | ||
| void * | NPY_UNUSEDignored | ||
| ) | [static] |
</blockquote>
| static void NAME _fill | ( | @typ @* | buffer, |
| intp | length, | ||
| void * | NPY_UNUSEDignore | ||
| ) | [static] |
| static void NAME _fillwithscalar | ( | @typ @* | buffer, |
| intp | length, | ||
| @typ @* | value, | ||
| void * | NPY_UNUSEDignored | ||
| ) | [static] |
</blockquote>
| static int fname _fromstr | ( | char * | str, |
| @type @* | ip, | ||
| char ** | endptr, | ||
| PyArray_Descr * | NPY_UNUSEDignore | ||
| ) | [static] |
| static PyObject *TYPE _getitem | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
<blockquote> LongLong, ULongLong, Half, Float, Double#</blockquote> </blockquote>
References kind().
Referenced by OBJECT_dot(), and TYPE().
| static void _init_datetime_descr | ( | PyArray_Descr * | descr | ) | [static] |
| static Bool fname _nonzero | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int fname _scan | ( | FILE * | fp, |
| @type @* | ip, | ||
| void * | NPY_UNUSEDignore, | ||
| PyArray_Descr * | NPY_UNUSEDignore2 | ||
| ) | [static] |
| static int fname _scan | ( | FILE * | fp, |
| @type @* | ip, | ||
| void * | NPY_UNUSEDignore, | ||
| PyArray_Descr * | NPY_UNUSEDignored | ||
| ) | [static] |
| static int TYPE _setitem | ( | PyObject * | op, |
| char * | ov, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
<
Referenced by _to_BOOL().
| static void FROMTYPE _to_BOOL | ( | @fromtype @* | ip, |
| Bool * | op, | ||
| intp | n, | ||
| PyArrayObject * | NPY_UNUSEDaip, | ||
| PyArrayObject * | NPY_UNUSEDaop | ||
| ) | [static] |
</blockquote>
References _setitem(), and TOTYPE().
Referenced by OBJECT_dot().
| static void TYPE _to_HALF | ( | @type @* | ip, |
| npy_half * | op, | ||
| intp | n, | ||
| PyArrayObject * | NPY_UNUSEDaip, | ||
| PyArrayObject * | NPY_UNUSEDaop | ||
| ) | [static] |
| static void TYPE _to_HALF | ( | @itype @* | ip, |
| npy_half * | op, | ||
| intp | n, | ||
| PyArrayObject * | NPY_UNUSEDaip, | ||
| PyArrayObject * | NPY_UNUSEDaop | ||
| ) | [static] |
| static void FROMTYPE _to_OBJECT | ( | @fromtype @* | ip, |
| PyObject ** | op, | ||
| intp | n, | ||
| PyArrayObject * | aip, | ||
| PyArrayObject * | NPY_UNUSEDaop | ||
| ) | [static] |
longlong, ulonglong, npy_half, float, double, longdouble, cfloat, cdouble, clongdouble, char, char, char, PyObject *, datetime, timedelta#
References Bool, and NumPyOS_ascii_ftolf().
Referenced by OBJECT_dot().
| static int BOOL_compare | ( | Bool * | ip1, |
| Bool * | ip2, | ||
| PyArrayObject * | NPY_UNUSEDap | ||
| ) | [static] |
References _argmax(), _compare(), Bool, BOOL_dot(), PyArrayObject::descr, _PyArray_Descr::elsize, FALSE, fname, NPY_UNUSED, PyArray_free, PyArray_malloc, and type().
| static int BOOL_fromstr | ( | char * | str, |
| Bool * | ip, | ||
| char ** | endptr, | ||
| PyArray_Descr * | NPY_UNUSEDignore | ||
| ) | [static] |
| static int BOOL_scan | ( | FILE * | fp, |
| Bool * | ip, | ||
| void * | NPY_UNUSEDignore, | ||
| PyArray_Descr * | NPY_UNUSEDignore2 | ||
| ) | [static] |
| static PyObject* CLONGDOUBLE_getitem | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static void CLONGDOUBLE_to_HALF | ( | longdouble * | ip, |
| npy_half * | op, | ||
| intp | n, | ||
| PyArrayObject * | NPY_UNUSEDaip, | ||
| PyArrayObject * | NPY_UNUSEDaop | ||
| ) | [static] |
| static PyObject* DATETIME_getitem | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int DATETIME_setitem | ( | PyObject * | op, |
| char * | ov, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
| static int HALF_compare | ( | npy_half * | pa, |
| npy_half * | pb, | ||
| PyArrayObject * | NPY_UNUSEDap | ||
| ) | [static] |
| static void HALF_dot | ( | char * | ip1, |
| npy_intp | is1, | ||
| char * | ip2, | ||
| npy_intp | is2, | ||
| char * | op, | ||
| npy_intp | n, | ||
| void * | NPY_UNUSEDignore | ||
| ) | [static] |
| static int HALF_fromstr | ( | char * | str, |
| npy_half * | ip, | ||
| char ** | endptr, | ||
| PyArray_Descr * | NPY_UNUSEDignore | ||
| ) | [static] |
| static int HALF_scan | ( | FILE * | fp, |
| npy_half * | ip, | ||
| void * | NPY_UNUSEDignore, | ||
| PyArray_Descr * | NPY_UNUSEDignored | ||
| ) | [static] |
| static void HALF_to_BOOL | ( | npy_half * | ip, |
| Bool * | op, | ||
| intp | n, | ||
| PyArrayObject * | NPY_UNUSEDaip, | ||
| PyArrayObject * | NPY_UNUSEDaop | ||
| ) | [static] |
| static void HALF_to_CLONGDOUBLE | ( | npy_half * | ip, |
| longdouble * | op, | ||
| intp | n, | ||
| PyArrayObject * | NPY_UNUSEDaip, | ||
| PyArrayObject * | NPY_UNUSEDaop | ||
| ) | [static] |
| static PyObject* LONGDOUBLE_getitem | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
References PyArrayObject::descr, and _PyArray_Descr::elsize.
| static int LONGDOUBLE_setitem | ( | PyObject * | op, |
| char * | ov, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
| static double MyPyFloat_AsDouble | ( | PyObject * | obj | ) | [static] |
| static npy_half MyPyFloat_AsHalf | ( | PyObject * | obj | ) | [static] |
References MyPyFloat_AsDouble(), and npy_double_to_half().
| static PyObject* MyPyFloat_FromHalf | ( | npy_half | h | ) | [static] |
References npy_half_to_double().
| static int OBJECT_argmax | ( | PyObject ** | ip, |
| intp | n, | ||
| intp * | max_ind, | ||
| PyArrayObject * | NPY_UNUSEDaip | ||
| ) | [static] |
| static int OBJECT_compare | ( | PyObject ** | ip1, |
| PyObject ** | ip2, | ||
| PyArrayObject * | NPY_UNUSEDap | ||
| ) | [static] |
| static void OBJECT_copyswap | ( | PyObject ** | dst, |
| PyObject ** | src, | ||
| int | NPY_UNUSEDswap, | ||
| void * | NPY_UNUSEDarr | ||
| ) | [static] |
| static void OBJECT_copyswapn | ( | PyObject ** | dst, |
| intp | dstride, | ||
| PyObject ** | src, | ||
| intp | sstride, | ||
| intp | n, | ||
| int | NPY_UNUSEDswap, | ||
| void * | NPY_UNUSEDarr | ||
| ) | [static] |
| static void OBJECT_dot | ( | char * | ip1, |
| intp | is1, | ||
| char * | ip2, | ||
| intp | is2, | ||
| char * | op, | ||
| intp | n, | ||
| void * | NPY_UNUSEDignore | ||
| ) | [static] |
References _getitem(), _to_BOOL(), and _to_OBJECT().
| static void OBJECT_fill | ( | PyObject ** | buffer, |
| intp | length, | ||
| void * | NPY_UNUSEDignored | ||
| ) | [static] |
References _ALIGN, _Descr, ArrType_Type, PyArrayDescr_Type, and suff().
| static void OBJECT_fillwithscalar | ( | PyObject ** | buffer, |
| intp | length, | ||
| PyObject ** | value, | ||
| void * | NPY_UNUSEDignored | ||
| ) | [static] |
| static PyObject* OBJECT_getitem | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static Bool OBJECT_nonzero | ( | PyObject ** | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int OBJECT_setitem | ( | PyObject * | op, |
| char * | ov, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
| static Bool Py_STRING_ISSPACE | ( | char | ch | ) | [static] |
References PyArrayObject::descr, PyArray_HASFIELDS, and STRING_compare().
| NPY_NO_EXPORT int PyArray_CopyObject | ( | PyArrayObject * | dest, |
| PyObject * | src_object | ||
| ) |
| NPY_NO_EXPORT PyArray_Descr* PyArray_DescrFromType | ( | int | type | ) |
Referenced by _array_find_python_scalar_type(), _descr_from_subtype(), _equivalent_fields(), _signbit_set(), apply_business_day_count(), array_subscript_nice(), business_day_offset(), dtype_kind_to_simplified_ordering(), get_nbo_datetime_to_string_transfer_function(), new_array_for_sum(), object_ufunc_type_resolution(), PyArray_ArgMax(), PyArray_As1D(), PyArray_DescrFromTypeObject(), and PyUFunc_MultiplicationTypeResolution().
| NPY_NO_EXPORT int set_typeinfo | ( | PyObject * | dict | ) |
</blockquote>
</blockquote>
<blockquote> Long, ULong, LongLong, ULongLong#</blockquote>
| static int STRING_compare | ( | char * | ip1, |
| char * | ip2, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
| static void STRING_copyswap | ( | char * | dst, |
| char * | src, | ||
| int | NPY_UNUSEDswap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
| static void STRING_copyswapn | ( | char * | dst, |
| intp | dstride, | ||
| char * | src, | ||
| intp | sstride, | ||
| intp | n, | ||
| int | NPY_UNUSEDswap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
References Bool, PyArrayObject::descr, FALSE, _PyArray_Descr::fields, PyArrayObject::flags, NPY_TITLE_KEY, and PyArray_HASFIELDS.
| static PyObject* STRING_getitem | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static Bool STRING_nonzero | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int STRING_setitem | ( | PyObject * | op, |
| char * | ov, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
| static PyObject* TIMEDELTA_getitem | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int TIMEDELTA_setitem | ( | PyObject * | op, |
| char * | ov, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
References type().
| static void from _to_ to | ( | @fromtyp @* | ip, |
| @totyp @* | op, | ||
| intp | n, | ||
| PyArrayObject * | aip, | ||
| PyArrayObject * | aop | ||
| ) | [static] |
<blockquote> LONGLONG, ULONGLONG, HALF, FLOAT, DOUBLE, LONGDOUBLE, CFLOAT, CDOUBLE, CLONGDOUBLE, DATETIME, TIMEDELTA)*3#</blockquote>
</blockquote>
<
| static void FROMTYPE _to_ TOTYPE | ( | @fromtype @* | ip, |
| @totype @* | op, | ||
| intp | n, | ||
| PyArrayObject * | NPY_UNUSEDaip, | ||
| PyArrayObject * | NPY_UNUSEDaop | ||
| ) | [static] |
</blockquote>
</blockquote>
References Bool, and npy_half_iszero().
Referenced by _to_BOOL().
| static void OBJECT_to_ TOTYPE | ( | PyObject ** | ip, |
| @totype @* | op, | ||
| intp | n, | ||
| PyArrayObject *_NPY_UNUSED @TOTYPE @ | aip, | ||
| PyArrayObject * | aop | ||
| ) | [static] |
References npy_double_to_half(), and NumPyOS_ascii_strtod().
| static void BOOL_to_ TOTYPE | ( | Bool * | ip, |
| @totype @* | op, | ||
| intp | n, | ||
| PyArrayObject * | NPY_UNUSEDaip, | ||
| PyArrayObject * | NPY_UNUSEDaop | ||
| ) | [static] |
#one = 1*10, NPY_HALF_ONE, 1*5# #zero = 0*10, NPY_HALF_ZERO, 0*5#
| static u type MyPyLong_AsUnsigned Type | ( | PyObject * | obj | ) | [static] |
| static void HALF_to_ TYPE | ( | npy_half * | ip, |
| @type @* | op, | ||
| intp | n, | ||
| PyArrayObject * | NPY_UNUSEDaip, | ||
| PyArrayObject * | NPY_UNUSEDaop | ||
| ) | [static] |
| static void HALF_to_ TYPE | ( | npy_half * | ip, |
| @itype @* | op, | ||
| intp | n, | ||
| PyArrayObject * | NPY_UNUSEDaip, | ||
| PyArrayObject * | NPY_UNUSEDaop | ||
| ) | [static] |
References _getitem().
| static int UNICODE_compare | ( | PyArray_UCS4 * | ip1, |
| PyArray_UCS4 * | ip2, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
| static void UNICODE_copyswap | ( | char * | dst, |
| char * | src, | ||
| int | swap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
References Bool, npy_half_isnan(), and npy_half_lt_nonan().
| static void UNICODE_copyswapn | ( | char * | dst, |
| intp | dstride, | ||
| char * | src, | ||
| intp | sstride, | ||
| intp | n, | ||
| int | swap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
| static PyObject* UNICODE_getitem | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static Bool UNICODE_nonzero | ( | PyArray_UCS4 * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int UNICODE_setitem | ( | PyObject * | op, |
| char * | ov, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
| static int VOID_compare | ( | char * | ip1, |
| char * | ip2, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
| static void VOID_copyswap | ( | char * | dst, |
| char * | src, | ||
| int | swap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
References type().
| static void VOID_copyswapn | ( | char * | dst, |
| intp | dstride, | ||
| char * | src, | ||
| intp | sstride, | ||
| intp | n, | ||
| int | swap, | ||
| PyArrayObject * | arr | ||
| ) | [static] |
| static PyObject* VOID_getitem | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static Bool VOID_nonzero | ( | char * | ip, |
| PyArrayObject * | ap | ||
| ) | [static] |
| static int VOID_setitem | ( | PyObject * | op, |
| char * | ip, | ||
| PyArrayObject * | ap | ||
| ) | [static] |
static PyArray_ArrFuncs _Py NAME _ArrFuncs [static] |
</blockquote>
<blockquote>
</blockquote>
</blockquote>
PyArray_Descr* _builtin_descrs[] [static] |
{
&BOOL_Descr,
&BYTE_Descr,
&UBYTE_Descr,
&SHORT_Descr,
&USHORT_Descr,
&INT_Descr,
&UINT_Descr,
&LONG_Descr,
&ULONG_Descr,
&LONGLONG_Descr,
&ULONGLONG_Descr,
&FLOAT_Descr,
&DOUBLE_Descr,
&LONGDOUBLE_Descr,
&CFLOAT_Descr,
&CDOUBLE_Descr,
&CLONGDOUBLE_Descr,
&OBJECT_Descr,
&STRING_Descr,
&UNICODE_Descr,
&VOID_Descr,
&DATETIME_Descr,
&TIMEDELTA_Descr,
&HALF_Descr
}
NPY_NO_EXPORT PyArray_Descr from _Descr [static] |
{
PyObject_HEAD_INIT(&PyArrayDescr_Type)
&Py@NAME@ArrType_Type,
PyArray_@from@LTR,
PyArray_@from@LTR,
'@endian@',
0,
PyArray_@from@,
0,
_ALIGN(@align@),
NULL,
NULL,
NULL,
&_Py@NAME@_ArrFuncs,
NULL,
}
Referenced by OBJECT_fill().
char _letter_to_num[_MAX_LETTER] [static] |