numpy.ufunc.identity#

attribute

ufunc.identity#

The identity value.

Data attribute containing the identity element for the ufunc,if it has one. If it does not, the attribute value is None.

Examples

>>>importnumpyasnp>>>np.add.identity0>>>np.multiply.identity1>>>print(np.power.identity)None>>>print(np.exp.identity)None
On this page