Skip to content

Commit 6ff2009

Browse files
authored
Diagonal KroneckerOperator has zero bandwidth (#349)
1 parent 1b2c853 commit 6ff2009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PDE/KroneckerOperator.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function rowstop(A::KroneckerOperator,k::Integer)
103103
end
104104

105105

106-
bandwidths(K::KroneckerOperator) = (ℵ₀,ℵ₀)
106+
bandwidths(K::KroneckerOperator) = isdiag(K) ? (0,0) : (ℵ₀,ℵ₀)
107107

108108
for f in [:isblockbanded, :israggedbelow, :isdiag]
109109
_f = Symbol(:_, f)

0 commit comments

Comments
 (0)