Skip to content

Commit

Permalink
MAINT: use matmul binop in minres.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Oct 27, 2021
1 parent 724c7de commit eedca98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scipy/sparse/linalg/isolve/minres.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def minres(A, b, x0=None, shift=0.0, tol=1e-5, maxiter=None,
# y = beta1 P' v1, where P = C**(-1).
# v is really P' v1.

r1 = b - A*x
r1 = b - A@x
y = psolve(r1)

beta1 = inner(r1, y)
Expand Down Expand Up @@ -370,7 +370,7 @@ def minres(A, b, x0=None, shift=0.0, tol=1e-5, maxiter=None,
residuals = []

def cb(x):
residuals.append(norm(b - A*x))
residuals.append(norm(b - A@x))

# A = poisson((10,),format='csr')
A = spdiags([arange(1,n+1,dtype=float)], [0], n, n, format='csr')
Expand Down

0 comments on commit eedca98

Please sign in to comment.