Skip to content

Commit 5c7eb3f

Browse files
authored
Fix leftorth! and rightorth! with empty blocks (#205)
Issue #204
1 parent 8f8a280 commit 5c7eb3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tensors/factorizations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ function leftorth!(t::TensorMap{<:RealOrComplexFloat};
352352
T = float(scalartype(t))
353353
Q = similar(t, T, codomain(t) W)
354354
R = similar(t, T, W domain(t))
355-
if !isempty(blocksectors(domain(t)))
355+
if !isempty(blocks(t))
356356
for (c, (Qc, Rc)) in QRdata
357357
copy!(block(Q, c), Qc)
358358
copy!(block(R, c), Rc)
@@ -441,7 +441,7 @@ function rightorth!(t::TensorMap{<:RealOrComplexFloat};
441441
T = float(scalartype(t))
442442
L = similar(t, T, codomain(t) W)
443443
Q = similar(t, T, W domain(t))
444-
if !isempty(blocksectors(codomain(t)))
444+
if !isempty(blocks(t))
445445
for (c, (Lc, Qc)) in LQdata
446446
copy!(block(L, c), Lc)
447447
copy!(block(Q, c), Qc)

0 commit comments

Comments
 (0)