We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6488db7 commit 730eef6Copy full SHA for 730eef6
src/func.jl
@@ -171,7 +171,23 @@ function FunctionOperator(op,
171
)
172
end
173
174
-# TODO - update_coefficients(L, u, p, t)
+function update_coefficients(L, u, p, t)
175
+ op = update_coefficients(L.op, u, p, t)
176
+ op_adjoint = update_coefficients(L.op_adjoint, u, p, t)
177
+ op_inverse = update_coefficients(L.op_inverse, u, p, t)
178
+ op_adjoint_inverse = update_coefficients(L.op_adjoint_inverse, u, p, t)
179
+
180
+ FunctionOperator(op,
181
+ op_adjoint,
182
+ op_inverse,
183
+ op_adjoint_inverse,
184
+ L.traits,
185
+ p,
186
+ t,
187
+ L.cache
188
+ )
189
+end
190
191
function update_coefficients!(L::FunctionOperator, u, p, t)
192
ops = getops(L)
193
for op in ops
0 commit comments