differential_equations/alias.rs
1//! Type Alias for readablity
2
3/// Number of evaluations per step
4///
5/// # Fields
6/// * `fcn` - Number of function evaluations
7/// * `jac` - Number of Jacobian evaluations
8///
9pub struct Evals {
10 pub fcn: usize,
11 pub jac: usize,
12}
13
14impl Evals {
15 /// Create a new Evals struct
16 ///
17 /// # Arguments
18 /// * `diff` - Number of differntial equation function evaluations
19 /// * `jac` - Number of Jacobian evaluations
20 ///
21 pub fn new() -> Self {
22 Self {
23 fcn: 0,
24 jac: 0,
25 }
26 }
27}