Skip to content

Commit

Permalink
imports, fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fr0do committed Sep 11, 2023
1 parent cb82fea commit b77995c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cola/linalg/inv.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from plum import dispatch
from cola.ops import LinearOperator
from cola.ops import Diagonal, Permutation
from cola.ops import Identity
from cola.ops import ScalarMul
from cola.ops import Identity, Dense
from cola.ops import ScalarMul, Sum
from cola.ops import BlockDiag, Triangular
from cola.ops import Kronecker, Product
from cola.algorithms.cg import cg
Expand Down Expand Up @@ -180,4 +180,4 @@ def inv(A: Sum[Product[Dense,Dense], Diagonal], **kwargs):

@dispatch
def inv(A: Sum[Diagonal, Product[Dense,Dense]], **kwargs):
return inv(Product(*C.Ms[1].Ms) + C.Ms[0])
return inv(Product(*A.Ms[1].Ms) + A.Ms[0])

0 comments on commit b77995c

Please sign in to comment.