cupy.ufunc¶
-
class
cupy.
ufunc
(name, nin, nout, ops, preamble=u'', loop_prep=u'', doc=u'', default_casting=None, out_ops=None, *)¶ Universal function.
Variables: Methods
-
__call__
()¶ Applies the universal function to arguments elementwise.
Parameters: - args – Input arguments. Each of them can be a
cupy.ndarray
object or a scalar. The output arguments can be omitted or be specified by theout
argument. - out (cupy.ndarray) – Output array. It outputs to new arrays default.
- dtype – Data type specifier.
Returns: Output array or a tuple of output arrays.
- args – Input arguments. Each of them can be a
Attributes
-
name
¶
-
nargs
¶
-
nin
¶
-
nout
¶
-
types
¶ A list of type signatures.
Each type signature is represented by type character codes of inputs and outputs separated by ‘->’.
-