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

Function dumpRoutineNames

numpy/linalg/lapack_lite/make_lite.py:246–253  ·  view source on GitHub ↗
(library, output_dir)

Source from the content-addressed store, hash-verified

244types = {'blas', 'lapack', 'd_lapack', 's_lapack', 'z_lapack', 'c_lapack', 'config'}
245
246def dumpRoutineNames(library, output_dir):
247 for typename in {'unknown'} | types:
248 routines = library.allRoutinesByType(typename)
249 filename = os.path.join(output_dir, typename + '_routines.lst')
250 with open(filename, 'w') as fo:
251 for r in routines:
252 deps = r.dependencies()
253 fo.write(f"{r.name}: {' '.join(deps)}\n")
254
255def concatenateRoutines(routines, output_file):
256 with open(output_file, 'w') as output_fo:

Callers 1

mainFunction · 0.85

Calls 5

openFunction · 0.85
allRoutinesByTypeMethod · 0.80
joinMethod · 0.80
dependenciesMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…