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

Function dumpRoutineNames

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

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls 5

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

Tested by

no test coverage detected