|
numpy
2.0.0
|
Go to the source code of this file.
| NPY_NO_EXPORT int linear_search_type_resolver | ( | PyUFuncObject * | self, |
| PyArrayObject ** | op, | ||
| NPY_CASTING | input_casting, | ||
| NPY_CASTING | output_casting, | ||
| int | any_object, | ||
| PyArray_Descr ** | out_dtype | ||
| ) |
<blockquote>
</blockquote>
Referenced by PyUFunc_DefaultTypeResolver().
| NPY_NO_EXPORT int PyUFunc_AbsoluteTypeResolver | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes | ||
| ) |
| NPY_NO_EXPORT int PyUFunc_AdditionTypeResolver | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes | ||
| ) |
<blockquote> m8[<A>] + m8[<B>] => m8[gcd(<A>,<B>)] + m8[gcd(<A>,<B>)] m8[<A>] + int => m8[<A>] + m8[<A>] int + m8[<A>] => m8[<A>] + m8[<A>] M8[<A>] + int => M8[<A>] + m8[<A>] int + M8[<A>] => m8[<A>] + M8[<A>] M8[<A>] + m8[<B>] => M8[gcd(<A>,<B>)] + m8[gcd(<A>,<B>)] m8[<A>] + M8[<B>] => m8[gcd(<A>,<B>)] + M8[gcd(<A>,<B>)]</blockquote>
| NPY_NO_EXPORT int PyUFunc_DefaultLegacyInnerLoopSelector | ( | PyUFuncObject * | ufunc, |
| PyArray_Descr ** | dtypes, | ||
| PyUFuncGenericFunction * | out_innerloop, | ||
| void ** | out_innerloopdata, | ||
| int * | out_needs_api | ||
| ) |
<blockquote> like a hash table.</blockquote>
References NPY_OBJECT, NPY_VOID, PyArray_CanCastArrayTo(), PyArray_CanCastTypeTo(), PyArray_DESCR, and PyArray_DescrFromType().
| NPY_NO_EXPORT int PyUFunc_DefaultMaskedInnerLoopSelector | ( | PyUFuncObject * | ufunc, |
| PyArray_Descr ** | dtypes, | ||
| PyArray_Descr * | mask_dtype, | ||
| npy_intp * | NPY_UNUSEDfixed_strides, | ||
| npy_intp | NPY_UNUSEDfixed_mask_stride, | ||
| PyUFunc_MaskedStridedInnerLoopFunc ** | out_innerloop, | ||
| NpyAuxData ** | out_innerloopdata, | ||
| int * | out_needs_api | ||
| ) |
| NPY_NO_EXPORT int PyUFunc_DivisionTypeResolver | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes | ||
| ) |
<blockquote> m8[<A>] / m8[<B>] to m8[gcd(<A>,<B>)] / m8[gcd(<A>,<B>)] -> float64 m8[<A>] / int## to m8[<A>] / int64 -> m8[<A>] m8[<A>] / float## to m8[<A>] / float64 -> m8[<A>]</blockquote>
| NPY_NO_EXPORT int PyUFunc_MixedDivisionTypeResolver | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes | ||
| ) |
References data, _ufunc_masker_data::nargs, npy_memchr(), _ufunc_masker_data::unmasked_innerloop, and _ufunc_masker_data::unmasked_innerloopdata.
| NPY_NO_EXPORT int PyUFunc_MultiplicationTypeResolver | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes | ||
| ) |
<blockquote> int## * m8[<A>] => int64 * m8[<A>] m8[<A>] * int## => m8[<A>] * int64 float## * m8[<A>] => float64 * m8[<A>] m8[<A>] * float## => m8[<A>] * float64</blockquote>
References ensure_dtype_nbo(), _tagPyUFuncObject::name, NPY_DOUBLE, NPY_LONGLONG, NPY_TIMEDELTA, PyArray_DESCR, PyArray_DescrFromType(), PyArray_DescrNewFromType(), PyArray_PromoteTypes(), PyTypeNum_ISDATETIME, PyTypeNum_ISFLOAT, PyTypeNum_ISINTEGER, PyUFunc_DefaultTypeResolver(), PyUFunc_ValidateCasting(), PyUString_ConcatAndDel, PyUString_FromFormat, and PyUString_FromString.
| NPY_NO_EXPORT int PyUFunc_NegativeTypeResolver | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes | ||
| ) |
References NPY_UNSAFE_CASTING, and PyUFunc_SimpleUnaryOperationTypeResolver().
| NPY_NO_EXPORT int PyUFunc_OnesLikeTypeResolver | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes | ||
| ) |
| NPY_NO_EXPORT int PyUFunc_SimpleBinaryComparisonTypeResolver | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes | ||
| ) |
| NPY_NO_EXPORT int PyUFunc_SimpleBinaryOperationTypeResolver | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes | ||
| ) |
Referenced by timedelta_dtype_with_copied_meta().
| NPY_NO_EXPORT int PyUFunc_SimpleUnaryOperationTypeResolver | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes | ||
| ) |
References PyUFunc_DefaultTypeResolver().
Referenced by PyUFunc_NegativeTypeResolver().
| NPY_NO_EXPORT int PyUFunc_SubtractionTypeResolver | ( | PyUFuncObject * | ufunc, |
| NPY_CASTING | casting, | ||
| PyArrayObject ** | operands, | ||
| PyObject * | type_tup, | ||
| PyArray_Descr ** | out_dtypes | ||
| ) |
<blockquote> m8[<A>] - m8[<B>] => m8[gcd(<A>,<B>)] - m8[gcd(<A>,<B>)] m8[<A>] - int => m8[<A>] - m8[<A>] int - m8[<A>] => m8[<A>] - m8[<A>] M8[<A>] - int => M8[<A>] - m8[<A>] M8[<A>] - m8[<B>] => M8[gcd(<A>,<B>)] - m8[gcd(<A>,<B>)]</blockquote>
References PyArray_DESCR, PyArray_PromoteTypes(), and timedelta_dtype_with_copied_meta().
| NPY_NO_EXPORT int type_tuple_type_resolver | ( | PyUFuncObject * | self, |
| PyObject * | type_tup, | ||
| PyArrayObject ** | op, | ||
| NPY_CASTING | casting, | ||
| int | any_object, | ||
| PyArray_Descr ** | out_dtype | ||
| ) |
Referenced by PyUFunc_DefaultTypeResolver().