Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chunleili/mgpbd
/ MultiLevel
Class
MultiLevel
engine/solver/amg_python.py:97–100 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
95
96
def
build_levels(self, A, Ps=[]):
97
class
MultiLevel:
98
A = None
99
P = None
100
R = None
101
102
''
'Give A and a list of prolongation matrices Ps, return a list of levels'
''
103
lvl = len(Ps) + 1
# number of levels
Callers
1
build_levels
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected