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

Method getRoutine

numpy/linalg/lapack_lite/make_lite.py:134–143  ·  view source on GitHub ↗

Get a routine from the library. Will add if it's not found.

(self, rname)

Source from the content-addressed store, hash-verified

132 self.getRoutine(rname)
133
134 def getRoutine(self, rname):
135 """Get a routine from the library. Will add if it's not found.
136 """
137 unique = []
138 rname = rname.lower()
139 routine = self.names_to_routines.get(rname, unique)
140 if routine is unique:
141 routine = self._findRoutine(rname)
142 self.names_to_routines[rname] = routine
143 return routine
144
145 def allRoutineNames(self):
146 """Return the names of all the routines.

Callers 2

addRoutineMethod · 0.95

Calls 3

_findRoutineMethod · 0.95
lowerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected