Skip to content

Commit

Permalink
update doctest in diffsl
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Nov 7, 2024
1 parent 95b0436 commit 72400d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ode_solver/diffsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,17 @@ pub type T = f64;
/// # Example
///
/// ```rust
/// use diffsol::{OdeBuilder, Bdf, OdeSolverState, OdeSolverMethod, DiffSlContext, DiffSl, diffsl::LlvmModule};
/// use diffsol::{OdeBuilder, Bdf, OdeSolverState, OdeSolverMethod, DiffSl, diffsl::LlvmModule};
///
/// // dy/dt = -ay
/// // y(0) = 1
/// let context = DiffSlContext::<nalgebra::DMatrix<f64>, LlvmModule>::new("
/// let eqn = DiffSl::<nalgebra::DMatrix<f64>, LlvmModule>::compile("
/// in = [a]
/// a { 1 }
/// u { 1.0 }
/// F { -a*u }
/// out { u }
/// ").unwrap();
/// let eqn = DiffSl::from_context(context);
/// let problem = OdeBuilder::new()
/// .rtol(1e-6)
/// .p([0.1])
Expand Down

0 comments on commit 72400d9

Please sign in to comment.