numpy.ufunc.nin#

attribute

ufunc.nin#

The number of inputs.

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

Examples

>>>importnumpyasnp>>>np.add.nin2>>>np.multiply.nin2>>>np.power.nin2>>>np.exp.nin1
On this page