Skip to content

Commit a83d75a

Browse files
committed
comments
1 parent f1f2fa5 commit a83d75a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/basic.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ function Base.zero(A::AbstractSciMLOperator)
102102
NullOperator{N}()
103103
end
104104

105-
# TODO sparse diagonal
106105
Base.convert(::Type{AbstractMatrix}, ::NullOperator{N}) where{N} = Diagonal(zeros(Bool, N))
107106

108107
# traits
@@ -230,7 +229,7 @@ end
230229
for op in (:-, :+)
231230
@eval Base.$op::ScalarOperator, x::Number) = $op.val, x)
232231
@eval Base.$op(x::Number, α::ScalarOperator) = $op(x, α.val)
233-
@eval Base.$op(x::ScalarOperator, y::ScalarOperator) = $op(x.val, y.val) # TODO - lazy compose instead?
232+
@eval Base.$op(x::ScalarOperator, y::ScalarOperator) = $op(x.val, y.val) # TODO - lazy sum instead?
234233
end
235234

236235
LinearAlgebra.lmul!::ScalarOperator, u::AbstractVecOrMat) = lmul!.val, u)

0 commit comments

Comments
 (0)