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

Method resolveAllDependencies

numpy/linalg/lapack_lite/make_lite.py:155–174  ·  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

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