Custom linear operators# operators Custom scipy.sparse.linalg.LinearOperator classes. operators.Identity(*args, **kwargs) Identity matrix. operators.get_diagonal(operator) Extract diagonal of a linear operator.