MCPcopy Index your code
hub / github.com/numpy/numpy / __init__

Method __init__

numpy/_core/code_generators/generate_umath.py:208–227  ·  view source on GitHub ↗
(self, nin, nout, identity, docstring, typereso,
                 *type_descriptions, signature=None, indexed='',
                 no_float_errors=False)

Source from the content-addressed store, hash-verified

206 no_float_errors: if True, the ufunc never raises floating point errors
207 """
208 def __init__(self, nin, nout, identity, docstring, typereso,
209 *type_descriptions, signature=None, indexed='',
210 no_float_errors=False):
211 self.nin = nin
212 self.nout = nout
213 if identity is None:
214 identity = None_
215 self.identity = identity
216 self.docstring = docstring
217 self.typereso = typereso
218 self.type_descriptions = []
219 self.signature = signature
220 self.indexed = indexed
221 self.no_float_errors = no_float_errors
222 for td in type_descriptions:
223 self.type_descriptions.extend(td)
224 for td in self.type_descriptions:
225 td.finish_signature(self.nin, self.nout)
226
227 check_td_order(self.type_descriptions)
228
229
230# 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