Trait blas_array2::util::blas_traits::BLASFloat

source ·
pub trait BLASFloat: Num + NumAssignOps + Send + Sync + Copy + Clone + Default + Debug + Display {
    type RealFloat: BLASFloat;
    type FFIFloat;

    const EPSILON: Self::RealFloat;

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

Trait for defining real part float types

Required Associated Types§

Required Associated Constants§

Required Methods§

source

fn is_complex() -> bool

source

fn conj(x: Self) -> Self

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BLASFloat for f32

§

type RealFloat = f32

§

type FFIFloat = f32

source§

const EPSILON: Self::RealFloat = {transmute(0x34000000): <f32 as util::blas_traits::BLASFloat>::RealFloat}

source§

fn is_complex() -> bool

source§

fn conj(x: Self) -> Self

source§

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

source§

impl BLASFloat for f64

§

type RealFloat = f64

§

type FFIFloat = f64

source§

const EPSILON: Self::RealFloat = {transmute(0x3cb0000000000000): <f64 as util::blas_traits::BLASFloat>::RealFloat}

source§

fn is_complex() -> bool

source§

fn conj(x: Self) -> Self

source§

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

Implementors§

source§

impl BLASFloat for c32

§

type RealFloat = f32

§

type FFIFloat = [f32; 2]

source§

const EPSILON: Self::RealFloat = {transmute(0x34000000): <num_complex::Complex<f32> as util::blas_traits::BLASFloat>::RealFloat}

source§

impl BLASFloat for c64

§

type RealFloat = f64

§

type FFIFloat = [f64; 2]

source§

const EPSILON: Self::RealFloat = {transmute(0x3cb0000000000000): <num_complex::Complex<f64> as util::blas_traits::BLASFloat>::RealFloat}