Trait BLASFloat

Source
pub trait BLASFloat: Num + Copy {
    type RealFloat: BLASFloat;

    // Required methods
    fn is_complex() -> bool;
    fn conj(x: Self) -> Self;
    fn from_real(x: Self::RealFloat) -> Self;
}
Expand description

Trait for defining real part float types

Required Associated Types§

Required Methods§

Source

fn is_complex() -> bool

Source

fn conj(x: Self) -> Self

Source

fn from_real(x: Self::RealFloat) -> Self

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 BLASFloat for f32

Source§

type RealFloat = f32

Source§

fn is_complex() -> bool

Source§

fn conj(x: Self) -> Self

Source§

fn from_real(x: Self::RealFloat) -> Self

Source§

impl BLASFloat for f64

Source§

type RealFloat = f64

Source§

fn is_complex() -> bool

Source§

fn conj(x: Self) -> Self

Source§

fn from_real(x: Self::RealFloat) -> Self

Implementors§