pub trait GeometricInvariant {
// Required methods
fn evaluate(
&self,
x: &ArrayView1<'_, f64>,
v: &ArrayView1<'_, f64>,
t: f64,
) -> f64;
fn name(&self) -> &'static str;
}Expand description
Trait for geometric invariants
Required Methods§
Sourcefn evaluate(
&self,
x: &ArrayView1<'_, f64>,
v: &ArrayView1<'_, f64>,
t: f64,
) -> f64
fn evaluate( &self, x: &ArrayView1<'_, f64>, v: &ArrayView1<'_, f64>, t: f64, ) -> f64
Evaluate the invariant quantity