Skip to content

Commit 6080984

Browse files
authored
Don't treat ConstantOperator as a zeroop (#592)
1 parent fb1c8c4 commit 6080984

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Operators/banded/ConstantOperator.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ isconstop(::Union{ZeroOperator,ConstantOperator}) = true
164164
isconstop(S::SpaceOperator) = isconstop(S.op)
165165

166166
iszeroop(::ZeroOperator) = true
167-
iszeroop(A::ConstantOperator) = A.λ==0.0
168167
iszeroop(A) = false
169168

170169
convert(::Type{T},::ZeroOperator) where {T<:Number} = zero(T)

0 commit comments

Comments
 (0)