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

Method resolveAllDependencies

numpy/linalg/lapack_lite/make_lite.py:154–173  ·  view source on GitHub ↗

Try to add routines to the library to satisfy all the dependencies for each routine in the library. Returns a set of routine names that have the dependencies unresolved.

(self)

Source from the content-addressed store, hash-verified

152 return list(self.names_to_routines.values())
153
154 def resolveAllDependencies(self):
155 """Try to add routines to the library to satisfy all the dependencies
156 for each routine in the library.
157
158 Returns a set of routine names that have the dependencies unresolved.
159 """
160 done_this = set()
161 last_todo = set()
162 while True:
163 todo = set(self.allRoutineNames()) - done_this
164 if todo == last_todo:
165 break
166 for rn in todo:
167 r = self.getRoutine(rn)
168 deps = r.dependencies()
169 for d in deps:
170 self.addRoutine(d)
171 done_this.add(rn)
172 last_todo = todo
173 return todo
174
175class LapackLibrary(FortranLibrary):
176 def _newFortranRoutine(self, rname, filename):

Callers 1

getLapackRoutinesFunction · 0.80

Calls 5

allRoutineNamesMethod · 0.95
getRoutineMethod · 0.95
addRoutineMethod · 0.95
dependenciesMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected