attribute
The number of outputs.
Data attribute containing the number of arguments the ufunc treats as output.
Since all ufuncs can take output arguments, this will always be at least 1.
>>> import numpy as np >>> np.add.nout 1 >>> np.multiply.nout 1 >>> np.power.nout 1 >>> np.exp.nout 1
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.ufunc.nout.html