numpy.ufunc.nin — NumPy v2.2 Manual (original) (raw)

attribute

ufunc.nin#

The number of inputs.

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

Examples

import numpy as np np.add.nin 2 np.multiply.nin 2 np.power.nin 2 np.exp.nin 1