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

Function getLapackRoutines

numpy/linalg/lapack_lite/make_lite.py:203–224  ·  view source on GitHub ↗
(wrapped_routines, ignores, lapack_dir)

Source from the content-addressed store, hash-verified

201 print('\t%s' % r.name)
202
203def getLapackRoutines(wrapped_routines, ignores, lapack_dir):
204 blas_src_dir = os.path.join(lapack_dir, 'BLAS', 'SRC')
205 if not os.path.exists(blas_src_dir):
206 blas_src_dir = os.path.join(lapack_dir, 'blas', 'src')
207 lapack_src_dir = os.path.join(lapack_dir, 'SRC')
208 if not os.path.exists(lapack_src_dir):
209 lapack_src_dir = os.path.join(lapack_dir, 'src')
210 install_src_dir = os.path.join(lapack_dir, 'INSTALL')
211 if not os.path.exists(install_src_dir):
212 install_src_dir = os.path.join(lapack_dir, 'install')
213
214 library = LapackLibrary([install_src_dir, blas_src_dir, lapack_src_dir])
215
216 for r in ignores:
217 library.addIgnorableRoutine(r)
218
219 for w in wrapped_routines:
220 library.addRoutine(w)
221
222 library.resolveAllDependencies()
223
224 return library
225
226def getWrappedRoutineNames(wrapped_routines_file):
227 routines = []

Callers 1

mainFunction · 0.85

Calls 6

LapackLibraryClass · 0.85
addIgnorableRoutineMethod · 0.80
addRoutineMethod · 0.80
joinMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected