DPNP provides universal functions (a.k.a. ufuncs) to support various element-wise operations. DPNP ufunc supports following features of NumPy’s one:
- Broadcasting
- Output type determination
- Casting rules
.. autosummary:: :toctree: generated/ dpnp.ufunc
There are some informational attributes that universal functions possess. None of the attributes can be set.
__doc__ | A docstring for each ufunc. The first part of the docstring is dynamically generated from the number of outputs, the name, and the number of inputs. The second part of the docstring is provided at creation time and stored with the ufunc. |
__name__ | The name of the ufunc. |
.. autosummary:: :toctree: generated/ :nosignatures: dpnp.ufunc.nin dpnp.ufunc.nout dpnp.ufunc.nargs dpnp.ufunc.types dpnp.ufunc.ntypes
.. autosummary:: :toctree: generated/ dpnp.ufunc.outer
.. autosummary:: :toctree: generated/ :nosignatures: dpnp.add dpnp.subtract dpnp.multiply dpnp.divide dpnp.logaddexp dpnp.logaddexp2 dpnp.true_divide dpnp.floor_divide dpnp.negative dpnp.power dpnp.remainder dpnp.mod dpnp.fmod dpnp.abs dpnp.absolute dpnp.fabs dpnp.rint dpnp.sign dpnp.exp dpnp.exp2 dpnp.log dpnp.log2 dpnp.log10 dpnp.expm1 dpnp.log1p dpnp.proj dpnp.sqrt dpnp.cbrt dpnp.square dpnp.reciprocal dpnp.rsqrt dpnp.gcd dpnp.lcm
.. autosummary:: :toctree: generated/ :nosignatures: dpnp.sin dpnp.cos dpnp.tan dpnp.arcsin dpnp.arccos dpnp.arctan dpnp.arctan2 dpnp.hypot dpnp.sinh dpnp.cosh dpnp.tanh dpnp.arcsinh dpnp.arccosh dpnp.arctanh dpnp.deg2rad dpnp.rad2deg
.. autosummary:: :toctree: generated/ :nosignatures: dpnp.bitwise_and dpnp.bitwise_or dpnp.bitwise_xor dpnp.invert dpnp.left_shift dpnp.right_shift
.. autosummary:: :toctree: generated/ :nosignatures: dpnp.greater dpnp.greater_equal dpnp.less dpnp.less_equal dpnp.not_equal dpnp.equal dpnp.logical_and dpnp.logical_or dpnp.logical_xor dpnp.logical_not dpnp.maximum dpnp.minimum dpnp.fmax dpnp.fmin
.. autosummary:: :toctree: generated/ :nosignatures: dpnp.isfinite dpnp.isinf dpnp.isnan dpnp.isnat dpnp.fabs dpnp.signbit dpnp.copysign dpnp.nextafter dpnp.spacing dpnp.modf dpnp.ldexp dpnp.frexp dpnp.fmod dpnp.floor dpnp.ceil dpnp.trunc