GeometricInvariant

Trait GeometricInvariant 

Source
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§

Source

fn evaluate( &self, x: &ArrayView1<'_, f64>, v: &ArrayView1<'_, f64>, t: f64, ) -> f64

Evaluate the invariant quantity

Source

fn name(&self) -> &'static str

Name of the invariant (for debugging)

Implementors§