From 0b42acce4abd2266d970dc5354af719600ca9ffb Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Mon, 20 May 2024 09:21:15 -0400 Subject: [PATCH] format --- docs/src/examples/ode/second_order_adjoints.md | 2 +- docs/src/manual/differential_equation_sensitivities.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/examples/ode/second_order_adjoints.md b/docs/src/examples/ode/second_order_adjoints.md index 673543b75..9d80e48ae 100644 --- a/docs/src/examples/ode/second_order_adjoints.md +++ b/docs/src/examples/ode/second_order_adjoints.md @@ -33,7 +33,7 @@ ode_data = Array(solve(prob_trueode, Tsit5(), saveat = tsteps)) dudt2 = Chain(x -> x .^ 3, Dense(2, 50, tanh), Dense(50, 2)) ps, st = Lux.setup(Random.default_rng(), dudt2) -function neuralodefunc(u,p,t) +function neuralodefunc(u, p, t) dudt2(u, p, st)[1] end function prob_neuralode(u0, p) diff --git a/docs/src/manual/differential_equation_sensitivities.md b/docs/src/manual/differential_equation_sensitivities.md index 612ff68ff..433f0bf4a 100644 --- a/docs/src/manual/differential_equation_sensitivities.md +++ b/docs/src/manual/differential_equation_sensitivities.md @@ -73,7 +73,7 @@ differentiation). Generally: - Continuous sensitivity analysis methods only support a subset of equations, which currently includes: - + + ODEProblem (with mass matrices for differential-algebraic equations (DAEs) + SDEProblem + SteadyStateProblem / NonlinearProblem @@ -110,7 +110,7 @@ is: `TrackerAdjoint` with an out-of-place definition may currently be the best option. !!! note - + Compatibility with direct automatic differentiation algorithms (`ForwardDiffSensitivity`, `ReverseDiffAdjoint`, etc.) can be queried using the `SciMLBase.isautodifferentiable(::SciMLAlgorithm)` trait function.