Trait lair::Scalar [−][src]
pub trait Scalar: Copy + Debug + Display + LowerExp + UpperExp + PartialEq + Neg<Output = Self> + NumAssign + FromPrimitive + Sum + Product + ScalarOperand { type Real: Real + Into<Self> + FromPrimitive;}Show methods
fn re(&self) -> Self::Real; fn im(&self) -> Self::Real; fn conj(&self) -> Self; fn abs(&self) -> Self::Real; fn square(&self) -> Self::Real; fn sqrt(self) -> Self; fn exp(self) -> Self; fn ln(self) -> Self; fn sin(self) -> Self; fn cos(self) -> Self; fn tan(self) -> Self; fn sinh(self) -> Self; fn cosh(self) -> Self; fn tanh(self) -> Self; fn asin(self) -> Self; fn acos(self) -> Self; fn atan(self) -> Self; fn asinh(self) -> Self; fn acosh(self) -> Self; fn atanh(self) -> Self;
A trait for real and complex numbers.
Associated Types
type Real: Real + Into<Self> + FromPrimitive
[src]
Required methods
fn re(&self) -> Self::Real
[src]
fn im(&self) -> Self::Real
[src]
fn conj(&self) -> Self
[src]
fn abs(&self) -> Self::Real
[src]
fn square(&self) -> Self::Real
[src]
fn sqrt(self) -> Self
[src]
fn exp(self) -> Self
[src]
fn ln(self) -> Self
[src]
fn sin(self) -> Self
[src]
fn cos(self) -> Self
[src]
fn tan(self) -> Self
[src]
fn sinh(self) -> Self
[src]
fn cosh(self) -> Self
[src]
fn tanh(self) -> Self
[src]
fn asin(self) -> Self
[src]
fn acos(self) -> Self
[src]
fn atan(self) -> Self
[src]
fn asinh(self) -> Self
[src]
fn acosh(self) -> Self
[src]
fn atanh(self) -> Self
[src]
Implementations on Foreign Types
impl<T> Scalar for Complex<T> where
T: Copy + Debug + Display + LowerExp + UpperExp + Neg<Output = T> + NumAssign + FromPrimitive + Real,
Complex<T>: ScalarOperand,
[src]
impl<T> Scalar for Complex<T> where
T: Copy + Debug + Display + LowerExp + UpperExp + Neg<Output = T> + NumAssign + FromPrimitive + Real,
Complex<T>: ScalarOperand,
[src]type Real = T
fn re(&self) -> Self::Real
[src]
fn im(&self) -> Self::Real
[src]
fn conj(&self) -> Self
[src]
fn abs(&self) -> Self::Real
[src]
fn square(&self) -> Self::Real
[src]
fn sqrt(self) -> Self
[src]
fn exp(self) -> Self
[src]
fn ln(self) -> Self
[src]
fn sin(self) -> Self
[src]
fn cos(self) -> Self
[src]
fn tan(self) -> Self
[src]
fn sinh(self) -> Self
[src]
fn cosh(self) -> Self
[src]
fn tanh(self) -> Self
[src]
fn asin(self) -> Self
[src]
fn acos(self) -> Self
[src]
fn atan(self) -> Self
[src]
fn asinh(self) -> Self
[src]
fn acosh(self) -> Self
[src]
fn atanh(self) -> Self
[src]
Implementors
impl<T> Scalar for T where
T: Debug + Display + LowerExp + UpperExp + NumAssign + FromPrimitive + Sum + Product + Real + ScalarOperand,
[src]
impl<T> Scalar for T where
T: Debug + Display + LowerExp + UpperExp + NumAssign + FromPrimitive + Sum + Product + Real + ScalarOperand,
[src]