Struct complex::c64 [] [src]

pub struct c64(pub f64, pub f64);

A complex number with 64-bit parts.

Trait Implementations

impl Number for c64

impl Complex for c64

type Real = f64

fn new(re: Self::Real, im: Self::Real) -> c64

fn from_polar(abs: Self::Real, arg: Self::Real) -> Self

fn re(&self) -> Self::Real

fn re_mut(&mut self) -> &mut Self::Real

fn im(&self) -> Self::Real

fn im_mut(&mut self) -> &mut Self::Real

fn abs(&self) -> Self::Real

fn arg(&self) -> Self::Real

fn to_polar(&self) -> (Self::Real, Self::Real)

fn conj(&self) -> Self

impl Add for c64

type Output = Self

fn add(self, rhs: Self) -> Self::Output

impl Add<f64> for c64

type Output = Self

fn add(self, rhs: f64) -> Self::Output

impl Div for c64

type Output = Self

fn div(self, rhs: Self) -> Self::Output

impl Div<f64> for c64

type Output = Self

fn div(self, rhs: f64) -> Self::Output

impl Mul for c64

type Output = Self

fn mul(self, rhs: Self) -> Self::Output

impl Mul<f64> for c64

type Output = Self

fn mul(self, rhs: f64) -> Self::Output

impl Neg for c64

type Output = Self

fn neg(self) -> Self::Output

impl Sub for c64

type Output = Self

fn sub(self, rhs: Self) -> Self::Output

impl Sub<f64> for c64

type Output = Self

fn sub(self, rhs: f64) -> Self::Output

Derived Implementations

impl PartialEq for c64

fn eq(&self, __arg_0: &c64) -> bool

fn ne(&self, __arg_0: &c64) -> bool

impl Debug for c64

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for c64

impl Clone for c64

fn clone(&self) -> c64

fn clone_from(&mut self, source: &Self)