Skip to content

Commit c31337a

Browse files
authored
Fix bandwidth for InterlaceOperator (#557)
1 parent c6f4c50 commit c31337a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Operators/general/InterlaceOperator.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Base.@constprop :aggressive function interlace_bandwidths(ops::AbstractMatrix{<:
131131
# special case for example
132132
l,u = max(bandwidth(ops[1],1),bandwidth(ops[2],1)-1),bandwidth(ops[2],2)+1
133133
else
134-
l,u = (1-dimension(rs),dimension(ds)-1) # not banded
134+
l,u = (dimension(rs)-1,dimension(ds)-1) # not banded
135135
end
136136

137137
l,u
@@ -168,7 +168,7 @@ Base.@constprop :aggressive function interlace_bandwidths(ops::VectorOrTupleOfOp
168168
u = max(u, p*opbw[2]+1-k)
169169
end
170170
else
171-
l,u = (1-dimension(rs),dimension(ds)-1) # not banded
171+
l,u = (dimension(rs)-1,dimension(ds)-1) # not banded
172172
end
173173
l,u
174174
end

0 commit comments

Comments
 (0)