Skip to main content

PcgElem

Trait PcgElem 

Source
trait PcgElem:
    Copy
    + Send
    + Sync
    + Default
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self> {
    // Required methods
    fn one() -> Self;
    fn cmul(self, o: Self) -> Self;
    fn abs2(self) -> f64;
    fn abs(self) -> f64;
    fn re(self) -> f64;
    fn is_inf(self) -> bool;
    fn is_zero(self) -> bool;
}
Expand description

An element of a pcg vector: real (step 1) or complex (step 2).

Required Methods§

Source

fn one() -> Self

Source

fn cmul(self, o: Self) -> Self

conj(self)·o

Source

fn abs2(self) -> f64

Source

fn abs(self) -> f64

Source

fn re(self) -> f64

Source

fn is_inf(self) -> bool

Source

fn is_zero(self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PcgElem for Complex64

Source§

fn one() -> Self

Source§

fn cmul(self, o: Self) -> Self

Source§

fn abs2(self) -> f64

Source§

fn abs(self) -> f64

Source§

fn re(self) -> f64

Source§

fn is_inf(self) -> bool

Source§

fn is_zero(self) -> bool

Source§

impl PcgElem for f64

Source§

fn one() -> Self

Source§

fn cmul(self, o: Self) -> Self

Source§

fn abs2(self) -> f64

Source§

fn abs(self) -> f64

Source§

fn re(self) -> f64

Source§

fn is_inf(self) -> bool

Source§

fn is_zero(self) -> bool

Implementors§