Search
Search Results
Search finished, found 33 page(s) matching the search query.
- Universal functions (
ufunc
) > Universal functions (ufunc)...NumPy reference Universal functions (ufunc)...
- Universal functions (
ufunc
) basics > Universal functions (ufunc) basics...NumPy user guide NumPy fundamentals Universal functions (ufunc) basics...
- Beyond the basics
...arrays are involved in an operation, you may want to use the same broadcasting rules that the math operations (i.e. the ufuncs) use. This can be done easily using the PyArrayMultiIterObject. This is the object returned from the Python comm...
- Generalized universal function API
...also over functions on vectors (or arrays). This concept is realized in NumPy by generalizing the universal functions (ufuncs). In regular ufuncs, the elementary function is limited to element-by-element operations, whereas the generalize...
- NumPy 1.10.0 Release Notes
...dtype no longer converts the result’s type to ndarray - the result will remain a recarray. ‘out’ keyword argument of ufuncs now accepts tuples of arrays When using the ‘out’ keyword argument of a ufunc, a tuple of arrays, one per ufunc o...
- NumPy 1.12.0 Release Notes
...contaminate the result with masks, but the other mode only outputs masks if there is no alternative. New float_power ufunc The new float_power ufunc is like the power function except all computation is done in a minimum precision of floa...
- NumPy 1.16.0 Release Notes
...mental (opt-in only) support for overriding numpy functions, see __array_function__ below. The matmul function is now a ufunc. This provides better performance and allows overriding with __array_ufunc__. Improved support for the ARM and POW...
- NumPy 1.20.0 Release Notes
...ongoing and improvements can be expected pending feedback from users. Wider use of SIMD to increase execution speed of ufuncs. Much work has been done in introducing universal functions that will ease use of modern features across differen...
- NumPy 1.21.0 Release Notes
...vel_index cannot be passed as dims keyword argument anymore. (Was deprecated in NumPy 1.16.) (gh-17900) The function PyUFunc_GenericFunction has been disabled. It was deprecated in NumPy 1.19. Users should call the ufunc directly using th...
- NumPy 1.22.0 Release Notes
...ivision of complex types will now result in a TypeError >>> a = np.arange(10) + 1j* np.arange(10) >>> a // 1 TypeError: ufunc 'floor_divide' not supported for the input types... (gh-19135) numpy.vectorize functions now produce the same...
- NumPy 1.24 Release Notes
...(gh-22228) Passing dtype instances other than the canonical (mainly native byte-order) ones to dtype= or signature= in ufuncs will now raise a TypeError. We recommend passing the strings "int8" or scalar types np.int8 since the byte-order...
- NumPy 1.3.0 Release Notes
...Notes This minor includes numerous bug fixes, official python 2.6 support, and several new features such as generalized ufuncs. Highlights Python 2.6 support Python 2.6 is now supported on all previously supported platforms, including win...
- NumPy 1.7.0 Release Notes
...Python 2.4 - 2.7 and 3.1 - 3.3 and is the last release that supports Python 2.4 - 2.5. Highlights where= parameter to ufuncs (allows the use of boolean arrays to choose where a computation should be done) vectorize improvements (added ‘ex...
- NumPy C code explanations
- NumPy quickstart
...# b is not automatically converted to integer type Traceback (most recent call last): ... numpy._core._exceptions._UFuncOutputCastingError: Cannot cast ufunc 'add' output from dtype('float64') to dtype('int64') with casting rule 'same_...
- numpy.ufunc
- The N-dimensional array (
ndarray
)...<, >>, &, ^, |, ~) and the comparisons (==, <, >, <=, >=, !=) is equivalent to the corresponding universal function (or ufunc for short) in NumPy. For more information, see the section on Universal Functions. Comparison operators: ndarra...
- ufunc API
- Universal functions (
ufunc
) - Universal functions (
ufunc
) basics - Writing your own ufunc
- Glossary
- Interoperability with NumPy
- NumPy C-API
- NumPy fundamentals
- NumPy reference
- NumPy user guide
- numpy.frompyfunc
- numpy.lib.mixins.NDArrayOperatorsMixin
- numpy.vectorize
- Standard array subclasses
- Using NumPy C-API
- Writing custom array containers