Version: dev

scalar

Stable type · Solvers

Tier: stable · Kind: type · Topic: Solvers

JuliaRust
not exportedearthsci_integrator_solvers::Scalar

Julia

Julia does not export this type.

Rust

pub trait Scalar: Copy + Send + Sync + Debug + Display + PartialOrd + Default + Add<Output = Self> + Sub<Output = Self> + Mul<Output = Self> + Div<Output = Self> + Neg<Output = Self> + AddAssign + SubAssign + MulAssign + 'static {
    const NAME: &'static str;
    const EPSILON: f64;
    fn zero() -> Self;
    fn from_f64(x: f64) -> Self;
    fn to_f64(self) -> f64;
    fn is_finite(self) -> bool;
    fn to_bits_u64(self) -> u64;
}

A floating-point element type for state vectors: f32 or f64.

Source · Rust docs