Universal Functions (ufunc)¶
CuPy provides universal functions (a.k.a. ufuncs) to support various elementwise operations. CuPy’s ufunc supports following features of NumPy’s one:
- Output type determination
- Casting rules
CuPy’s ufunc currently does not provide methods such as
Applies the universal function to arguments elementwise.
Output array or a tuple of output arrays.
A list of type signatures.
Each type signature is represented by type character codes of inputs and outputs separated by ‘->’.