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

Function removeBuiltinFunctions

numpy/linalg/lapack_lite/clapack_scrub.py:250–269  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

248 return source
249
250def removeBuiltinFunctions(source):
251 lines = LineQueue()
252
253 def LookingForBuiltinFunctions(line):
254 if line.strip() == '/* Builtin functions */':
255 return InBuiltInFunctions
256 else:
257 lines.add(line)
258 return LookingForBuiltinFunctions
259
260 def InBuiltInFunctions(line):
261 if line.strip() == '':
262 return LookingForBuiltinFunctions
263 else:
264 return InBuiltInFunctions
265
266 state = LookingForBuiltinFunctions
267 for line in UStringIO(source):
268 state = state(line)
269 return lines.getValue()
270
271def replaceDlamch(source):
272 """Replace dlamch_ calls with appropriate macros"""

Callers

nothing calls this directly

Calls 2

getValueMethod · 0.95
LineQueueClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…