Git hooks, format changes, etc.
This commit is contained in:
1 parent
328abfde1a
commit
cd3c40940e
15 files changed
+213
-110
No files matched your search
+10
-2
@@ -194,7 +194,11 @@ fn bench_interpolation(c: &mut Criterion) {
|
||||
let mut problem = Problem::new(ode, bs3, controller);
|
||||
let solution = problem.solve();
|
||||
// Interpolate at 100 points
|
||||
black_box((0..100).map(|i| solution.interpolate(i as f64 * 0.05)).collect::<Vec<_>>());
|
||||
black_box(
|
||||
(0..100)
|
||||
.map(|i| solution.interpolate(i as f64 * 0.05))
|
||||
.collect::<Vec<_>>(),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -206,7 +210,11 @@ fn bench_interpolation(c: &mut Criterion) {
|
||||
let mut problem = Problem::new(ode, dp45, controller);
|
||||
let solution = problem.solve();
|
||||
// Interpolate at 100 points
|
||||
black_box((0..100).map(|i| solution.interpolate(i as f64 * 0.05)).collect::<Vec<_>>());
|
||||
black_box(
|
||||
(0..100)
|
||||
.map(|i| solution.interpolate(i as f64 * 0.05))
|
||||
.collect::<Vec<_>>(),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
use criterion::{criterion_group, criterion_main, Criterion};
|
||||
|
||||
use ordinary_diffeq::prelude::*;
|
||||
use nalgebra::Vector6;
|
||||
use ordinary_diffeq::prelude::*;
|
||||
|
||||
fn bench_orbit(c: &mut Criterion) {
|
||||
let mu = 3.98600441500000e14;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use criterion::{criterion_group, criterion_main, Criterion};
|
||||
|
||||
use ordinary_diffeq::prelude::*;
|
||||
use nalgebra::Vector1;
|
||||
use ordinary_diffeq::prelude::*;
|
||||
|
||||
fn bench_simple_1d(c: &mut Criterion) {
|
||||
type Params = (f64,);
|
||||
|
||||
@@ -172,7 +172,11 @@ fn bench_vern7_interpolation(c: &mut Criterion) {
|
||||
let mut problem = Problem::new(ode, vern7, controller);
|
||||
let solution = problem.solve();
|
||||
// Interpolate at 100 points - first one computes extra stages
|
||||
black_box((0..100).map(|i| solution.interpolate(i as f64 * 0.05)).collect::<Vec<_>>());
|
||||
black_box(
|
||||
(0..100)
|
||||
.map(|i| solution.interpolate(i as f64 * 0.05))
|
||||
.collect::<Vec<_>>(),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -183,7 +187,11 @@ fn bench_vern7_interpolation(c: &mut Criterion) {
|
||||
let dp45 = DormandPrince45::new().a_tol(tol).r_tol(tol);
|
||||
let mut problem = Problem::new(ode, dp45, controller);
|
||||
let solution = problem.solve();
|
||||
black_box((0..100).map(|i| solution.interpolate(i as f64 * 0.05)).collect::<Vec<_>>());
|
||||
black_box(
|
||||
(0..100)
|
||||
.map(|i| solution.interpolate(i as f64 * 0.05))
|
||||
.collect::<Vec<_>>(),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user