[ Web Proxy ]
URL:
Viewing: https://numpy.org/doc/stable/reference/generated/../c-api/../generated/numpy.ufunc.nout.html [Back]  [Original]

numpy.ufunc.nout — NumPy v2.5 Manual
Back to top
Search the docs ...:

numpy.ufunc.nout#

attribute

ufunc.nout#

The number of outputs.

Data attribute containing the number of arguments the ufunc treats as output.

Notes

Since all ufuncs can take output arguments, this will always be at least 1.

Examples

Try it in your browser!
>>> import numpy as np
>>> np.add.nout
1
>>> np.multiply.nout
1
>>> np.power.nout
1
>>> np.exp.nout
1

Web Proxy Viewer  |  New URL  |  Original Page