Learn Before
Concept

Universal Function Object Attributes

In the Universal Function object, there are informational attributes that cannot be set:

Attributes

  • doc : A docstring for each ufunc

  • name: Name of the ufunc

  • nin: Number of inputs

  • nout: Number of output arguments

  • nargs: Total number of arguments.

  • ntypes: Number of defined inner loops

  • types: List of length ntypes containing strings showing types for which the ufunc is defined

  • identity: Identity of the ufunc

0

1

Updated 2021-03-20

Tags

Python Programming Language

Data Science