def pinv(A: LinearOperator, alg: Algorithm = Auto()):
    """(lazily) computes the pseudo-inverse of a linear operator.

    Args:
        A (LinearOperator): The linear operator to compute the inverse of.
        alg (Algorithm, optional): The algorithm to use for the solves.

    Returns:
        LinearOperator: The pseudo-inverse of the linear operator.

    Example:
        >>> A = MyLinearOperator()
        >>> x = cola.pinv(A) @ b

    """
(lazily) computes the pseudo-inverse of a linear operator.

    Args:
        A (LinearOperator): The linear operator to compute the inverse of.
        alg (Algorithm, optional): The algorithm to use for the solves.

    Returns:
        LinearOperator: The pseudo-inverse of the linear operator.

    Example:
        >>> A = MyLinearOperator()
        >>> x = cola.pinv(A) @ b

    
cola/linalg/inverse/pinv.py