Skip to content

Commit

Permalink
be gone ConvertOperator !
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanMaertens committed Nov 30, 2023
1 parent cd8aeda commit 908abdf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/operators/lazysum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ function eval_at(::NotTimeDependent, x::LazySum, t::Number)
end

# For users
(x::LazySum)() = eval_at(x)
ConvertOperator(x::LazySum) = eval_at(x) # using ConvertOperator should do explicit multiplication
(x::LazySum)(t::Number) = eval_at(x, t) # using (t) should return NotTimeDependent LazySum
ConvertOperator(x::LazySum, t) = x(t)()

# we define the addition for LazySum and we do the rest with this
function Base.:+(SumOfOps1::LazySum, SumOfOps2::LazySum)
Expand Down

0 comments on commit 908abdf

Please sign in to comment.