SciPy - Sparse Linear Algebra
Which of the following is the correct way to create a simple Jacobi preconditioner using scipy.sparse.linalg.LinearOperator?
import numpy as np
from scipy.sparse.linalg import LinearOperator
A = np.array([[4, 1], [1, 3]])
M = LinearOperator(shape=A.shape, matvec=lambda x: ...)
