SciPy

This is documentation for an old release of NumPy (version 1.8.0). Read this page in the documentation of the latest stable release (version > 1.17).

numpy.ufunc.nin

ufunc.nin

The number of inputs.

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

Examples

>>> np.add.nin
2
>>> np.multiply.nin
2
>>> np.power.nin
2
>>> np.exp.nin
1

Previous topic

numpy.seterrcall

Next topic

numpy.ufunc.nout