Skip to content

Commit 120fc16

Browse files
Merge pull request #248 from albertomercurio/master
Add missing inplace update_coefficients for `ScaledOperator`
2 parents 7ea582b + 5bce4de commit 120fc16

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/basic.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,14 @@ function update_coefficients(L::ScaledOperator, u, p, t)
245245

246246
L
247247
end
248+
249+
function update_coefficients!(L::ScaledOperator, u, p, t)
250+
update_coefficients!(L.L, u, p, t)
251+
update_coefficients!(L.λ, u, p, t)
252+
253+
L
254+
end
255+
248256
getops(L::ScaledOperator) = (L.λ, L.L)
249257
isconstant(L::ScaledOperator) = isconstant(L.L) & isconstant(L.λ)
250258
islinear(L::ScaledOperator) = islinear(L.L)

0 commit comments

Comments
 (0)