Trait lair::Scalar[][src]

pub trait Scalar: Copy + Debug + Display + PartialEq + Zero + One + Neg<Output = Self> + Add<Output = Self> + Sub<Output = Self> + Mul<Output = Self> + Div<Output = Self> + AddAssign + SubAssign + MulAssign + DivAssign + Sum {
    type Real: Real + Into<Self>;
    fn re(&self) -> Self::Real;
fn im(&self) -> Self::Real;
fn conj(&self) -> Self;
fn norm_sqr(&self) -> Self::Real; }

A trait for real and complex numbers.

Associated Types

type Real: Real + Into<Self>[src]

Loading content...

Required methods

fn re(&self) -> Self::Real[src]

fn im(&self) -> Self::Real[src]

fn conj(&self) -> Self[src]

fn norm_sqr(&self) -> Self::Real[src]

Loading content...

Implementations on Foreign Types

impl Scalar for f32[src]

type Real = Self

impl Scalar for f64[src]

type Real = Self

impl Scalar for Complex<f32>[src]

type Real = f32

impl Scalar for Complex<f64>[src]

type Real = f64

Loading content...

Implementors

Loading content...