Skip to content

Commit

Permalink
Resolve incorrect handling of BlockArray reduction (see #408)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendt Wohlberg committed Apr 20, 2023
1 parent dd43264 commit 92b56f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scico/linop/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def valid_adjoint(

u = A(x)
v = AT(y)
yTu = snp.dot(y.ravel().conj(), u.ravel()) # type: ignore
vTx = snp.dot(v.ravel().conj(), x.ravel()) # type: ignore
yTu = snp.sum(y.conj() * u) # type: ignore
vTx = snp.sum(v.conj() * x) # type: ignore
err = snp.abs(yTu - vTx) / max(snp.abs(yTu), snp.abs(vTx))
if eps is None:
return err
Expand Down

0 comments on commit 92b56f3

Please sign in to comment.