def __init__(self, operator, operator_norm=None, verbose=True, tol=1e-5):
        """Initialize a new instance.

        Parameters
        ----------
        operator : `Operator`
            The operator to run tests on
        operator_norm : float, optional
            The norm of the operator, used for error estimates. If
            ``None`` is given, the norm is estimated during
            initialization.
        verbose : bool, optional
            If ``True``, print additional info text.
        tol : float, optional
            Tolerance parameter used as a base for the actual tolerance
            in the tests. Depending on the expected accuracy, the actual
            tolerance used in a test can be a factor times this number.
        """
        self.operator = operator
        self.verbose = False
        if operator_norm is None:
            self.operator_norm = self.norm()
        else:
            self.operator_norm = float(operator_norm)

        self.verbose = bool(verbose)
        self.tol = float(tol)
def __init__ ( self , operator , operator_norm = None , verbose = True , tol = 1e-5 ) : self . operator = operator self . verbose = False if operator_norm is None : self . operator_norm = self . norm ( ) else : self . operator_norm = float ( operator_norm ) self . verbose = bool ( verbose ) self . tol = float ( tol )
Initialize a new instance.

        Parameters
        ----------
        operator : `Operator`
            The operator to run tests on
        operator_norm : float, optional
            The norm of the operator, used for error estimates. If
            ``None`` is given, the norm is estimated during
            initialization.
        verbose : bool, optional
            If ``True``, print additional info text.
        tol : float, optional
            Tolerance parameter used as a base for the actual tolerance
            in the tests. Depending on the expected accuracy, the actual
            tolerance used in a test can be a factor times this number.