IntegrateFloat

Trait IntegrateFloat 

Source
pub trait IntegrateFloat:
    Float
    + FromPrimitive
    + Debug
    + 'static
    + ScalarOperand
    + AddAssign
    + SubAssign
    + MulAssign
    + DivAssign
    + Display
    + LowerExp
    + Sum {
    // Required method
    fn to_f64(self) -> Option<f64>;
}
Expand description

A trait that bundles all the requirements for floating-point types used in the integration routines.

This trait simplifies type signatures by combining all the trait bounds that are commonly needed for the numeric operations performed in integration routines.

Required Methods§

Source

fn to_f64(self) -> Option<f64>

Convert to f64 for interfacing with GPU kernels

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntegrateFloat for f32

Source§

impl IntegrateFloat for f64

Implementors§