MCPcopy Create free account
hub / github.com/chunleili/mgpbd / setup_chebyshev

Method setup_chebyshev

engine/solver/amg_python.py:70–78  ·  view source on GitHub ↗

Set up Chebyshev.

(self, A)

Source from the content-addressed store, hash-verified

68
69
70 def setup_chebyshev(self, A):
71 """Set up Chebyshev."""
72 lower_bound=1.0/30.0
73 upper_bound=1.1
74 degree=3
75 rho = self.calc_spectral_radius( A)
76 a = rho * lower_bound
77 b = rho * upper_bound
78 self.chebyshev_coeff = -chebyshev_polynomial_coefficients(a, b, degree)[:-1]
79
80
81 def setup_jacobi(self, A):

Callers 1

setup_smoothersMethod · 0.95

Calls 1

calc_spectral_radiusMethod · 0.95

Tested by

no test coverage detected