(lvl, tol=1e-12, maxiter=1, M=None, callback=None,
               residuals=None)
return smoother
Set up CGNR smoothing.
Set up CGNR smoothing.
Set up CGNR smoothing .
def setup_cgnr(lvl, tol=1e-12, maxiter=1, M=None, callback=None,
               residuals=None):
    """Set up CGNR smoothing."""
    def smoother(A, x, b):
        x[:] = (
            cgnr(
                A,
                b,
                x0=x,
                tol=tol,
                maxiter=maxiter,
                M=M,
                callback=callback,
                residuals=residuals)[0]).reshape(
            x.shape)
    return smoother
def setup_cgnr ( lvl , tol = 1e-12 , maxiter = 1 , M = None , callback = None , residuals = None ) : def smoother ( A , x , b ) : x [ : ] = ( cgnr ( A , b , x0 = x , tol = tol , maxiter = maxiter , M = M , callback = callback , residuals = residuals ) [ 0 ] ) . reshape ( x . shape ) return smoother