Skip to content

Commit

Permalink
Fix leftorth! and rightorth! with empty blocks
Browse files Browse the repository at this point in the history
Issue #204
  • Loading branch information
Jutho authored Jan 17, 2025
1 parent 4b1b265 commit b8a5145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tensors/factorizations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function leftorth!(t::TensorMap{<:RealOrComplexFloat};
T = float(scalartype(t))
Q = similar(t, T, codomain(t) W)
R = similar(t, T, W domain(t))
if !isempty(blocksectors(domain(t)))
if !isempty(blocks(t))
for (c, (Qc, Rc)) in QRdata
copy!(block(Q, c), Qc)
copy!(block(R, c), Rc)
Expand Down Expand Up @@ -441,7 +441,7 @@ function rightorth!(t::TensorMap{<:RealOrComplexFloat};
T = float(scalartype(t))
L = similar(t, T, codomain(t) W)
Q = similar(t, T, W domain(t))
if !isempty(blocksectors(codomain(t)))
if !isempty(blocks(t))
for (c, (Lc, Qc)) in LQdata
copy!(block(L, c), Lc)
copy!(block(Q, c), Qc)
Expand Down

0 comments on commit b8a5145

Please sign in to comment.