MCPcopy Create free account
hub / github.com/numpy/numpy / __init__

Method __init__

numpy/core/code_generators/generate_umath.py:202–219  ·  view source on GitHub ↗
(self, nin, nout, identity, docstring, typereso,
                 *type_descriptions, signature=None, indexed='')

Source from the content-addressed store, hash-verified

200 indexed: add indexed loops (ufunc.at) for these type characters
201 """
202 def __init__(self, nin, nout, identity, docstring, typereso,
203 *type_descriptions, signature=None, indexed=''):
204 self.nin = nin
205 self.nout = nout
206 if identity is None:
207 identity = None_
208 self.identity = identity
209 self.docstring = docstring
210 self.typereso = typereso
211 self.type_descriptions = []
212 self.signature = signature
213 self.indexed = indexed
214 for td in type_descriptions:
215 self.type_descriptions.extend(td)
216 for td in self.type_descriptions:
217 td.finish_signature(self.nin, self.nout)
218
219 check_td_order(self.type_descriptions)
220
221
222# String-handling utilities to avoid locale-dependence.

Callers

nothing calls this directly

Calls 2

check_td_orderFunction · 0.85
finish_signatureMethod · 0.80

Tested by

no test coverage detected