Trait ha_ndarray::Float

source ·
pub trait Float: CDatatype + Log + Trig {
    // Required methods
    fn is_inf(self) -> u8;
    fn is_nan(self) -> u8;
}
Expand description

Float-specific operations on a scalar floating point value

Required Methods§

source

fn is_inf(self) -> u8

Return 1 if this value is infinite, otherwise 0.

source

fn is_nan(self) -> u8

Return 1 if this value is not a number, otherwise 0.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Float for f32

source§

fn is_inf(self) -> u8

source§

fn is_nan(self) -> u8

source§

impl Float for f64

source§

fn is_inf(self) -> u8

source§

fn is_nan(self) -> u8

Implementors§