attribute
The number of inputs.
Data attribute containing the number of arguments the ufunc treats as input.
>>> import numpy as np >>> np.add.nin 2 >>> np.multiply.nin 2 >>> np.power.nin 2 >>> np.exp.nin 1
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.ufunc.nin.html