MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / __init__

Method __init__

python/krylovspace.py:240–256  ·  view source on GitHub ↗
(self, *args,
                 conjugate : bool = False,
                 abstol : float = None,
                 maxsteps : int = None,
                 printing : bool = False,
                 **kwargs)

Source from the content-addressed store, hash-verified

238 name = "CG"
239
240 def __init__(self, *args,
241 conjugate : bool = False,
242 abstol : float = None,
243 maxsteps : int = None,
244 printing : bool = False,
245 **kwargs):
246 if printing:
247 print("WARNING: printing is deprecated, use printrates instead!")
248 kwargs["printrates"] = printing
249 if abstol is not None:
250 print("WARNING: abstol is deprecated, use atol instead!")
251 kwargs["abstol"] = abstol
252 if maxsteps is not None:
253 print("WARNING: maxsteps is deprecated, use maxiter instead!")
254 kwargs["maxiter"] = maxsteps
255 super().__init__(*args, **kwargs)
256 self.conjugate = conjugate
257
258 # for backward compatibility
259 @property

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected