Skip to content

Commit 5ddcf86

Browse files
committed
update bheaviour for affine operator
1 parent 8e4f38b commit 5ddcf86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/matrix.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ end
225225
getops(L::AffineOperator) = (L.A, L.B, L.b)
226226
Base.size(L::AffineOperator) = size(L.A)
227227

228+
update_coefficients!(L::AffineOperator,u,p,t) = (L.update_func(L.b,u,p,t); L)
229+
228230
islinear(::AffineOperator) = false
229231
Base.iszero(L::AffineOperator) = all(iszero, getops(L))
230232
has_adjoint(L::AffineOperator) = all(has_adjoint, L.ops)

0 commit comments

Comments
 (0)