Struct vecmat::Complex [−][src]
#[repr(transparent)]pub struct Complex<T> { /* fields omitted */ }
Complex number.
Implementations
impl<T> Complex<T>
[src]
impl<T> Complex<T>
[src]pub fn new(w: T, x: T) -> Self
[src]
pub fn from_vector(vec: Vector2<T>) -> Self
[src]
pub fn from_array(arr: [T; 2]) -> Self
[src]
pub fn from_tuple(tup: (T, T)) -> Self
[src]
pub fn from_num(nc: NumComplex<T>) -> Self
[src]
pub fn into_vector(self) -> Vector2<T>
[src]
pub fn into_array(self) -> [T; 2]
[src]
pub fn into_tuple(self) -> (T, T)
[src]
pub fn into_num(self) -> NumComplex<T>
[src]
impl<T> Complex<T> where
T: Neg<Output = T> + Copy,
[src]
impl<T> Complex<T> where
T: Neg<Output = T> + Copy,
[src]pub fn into_matrix(self) -> Matrix2x2<T>
[src]
impl<T: Float> Complex<T>
[src]
impl<T: Float> Complex<T>
[src]pub fn exp(self) -> Self
[src]
pub fn ln(self) -> Self
[src]
pub fn sqrt(self) -> Self
[src]
pub fn cbrt(self) -> Self
[src]
pub fn powf(self, exp: T) -> Self
[src]
pub fn log(self, base: T) -> Self
[src]
pub fn powc(self, exp: Self) -> Self
[src]
pub fn expf(self, base: T) -> Self
[src]
pub fn sin(self) -> Self
[src]
pub fn cos(self) -> Self
[src]
pub fn tan(self) -> Self
[src]
pub fn asin(self) -> Self
[src]
pub fn acos(self) -> Self
[src]
pub fn atan(self) -> Self
[src]
pub fn sinh(self) -> Self
[src]
pub fn cosh(self) -> Self
[src]
pub fn tanh(self) -> Self
[src]
pub fn asinh(self) -> Self
[src]
pub fn acosh(self) -> Self
[src]
pub fn atanh(self) -> Self
[src]
pub fn finv(self) -> Self
[src]
pub fn fdiv(self, other: Self) -> Self
[src]
Trait Implementations
impl<T> AbsDiffEq<Complex<T>> for Complex<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
[src]
impl<T> AbsDiffEq<Complex<T>> for Complex<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
[src]type Epsilon = T
type Epsilon = T
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
[src]
fn default_epsilon() -> Self::Epsilon
[src]The default tolerance to use when testing values that are close together. Read more
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
[src]
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
[src]The inverse of AbsDiffEq::abs_diff_eq
.
impl<T> Add<Complex<T>> for Quaternion<T> where
T: Add<Output = T>,
[src]
impl<T> Add<Complex<T>> for Quaternion<T> where
T: Add<Output = T>,
[src]impl Add<Quaternion<f32>> for Complex<f32>
[src]
impl Add<Quaternion<f32>> for Complex<f32>
[src]Workaround for reverse addition.
type Output = Quaternion<f32>
type Output = Quaternion<f32>
The resulting type after applying the +
operator.
impl Add<Quaternion<f64>> for Complex<f64>
[src]
impl Add<Quaternion<f64>> for Complex<f64>
[src]Workaround for reverse addition.
type Output = Quaternion<f64>
type Output = Quaternion<f64>
The resulting type after applying the +
operator.
impl<T> AddAssign<Complex<T>> for Complex<T> where
T: AddAssign,
[src]
impl<T> AddAssign<Complex<T>> for Complex<T> where
T: AddAssign,
[src]fn add_assign(&mut self, other: Self)
[src]
fn add_assign(&mut self, other: Self)
[src]Performs the +=
operation. Read more
impl<T> AddAssign<Complex<T>> for Quaternion<T> where
T: AddAssign,
[src]
impl<T> AddAssign<Complex<T>> for Quaternion<T> where
T: AddAssign,
[src]fn add_assign(&mut self, other: Complex<T>)
[src]
fn add_assign(&mut self, other: Complex<T>)
[src]Performs the +=
operation. Read more
impl<T> AddAssign<T> for Complex<T> where
T: AddAssign,
[src]
impl<T> AddAssign<T> for Complex<T> where
T: AddAssign,
[src]fn add_assign(&mut self, other: T)
[src]
fn add_assign(&mut self, other: T)
[src]Performs the +=
operation. Read more
impl<T> Directional<Complex<T>> for Moebius<Complex<T>> where
Self: Transform<Complex<T>>,
Complex<T>: Normalize,
[src]
impl<T> Directional<Complex<T>> for Moebius<Complex<T>> where
Self: Transform<Complex<T>>,
Complex<T>: Normalize,
[src]impl<T> Distribution<Complex<T>> for Normal where
Normal: Distribution<Vector<T, 2>>,
[src]
impl<T> Distribution<Complex<T>> for Normal where
Normal: Distribution<Vector<T, 2>>,
[src]fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Complex<T>
[src]
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Complex<T>
[src]Generate a random value of T
, using rng
as the source of randomness.
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
impl<T: Float> Distribution<Complex<T>> for NonZero where
NonZero: Distribution<Vector<T, 2>>,
[src]
impl<T: Float> Distribution<Complex<T>> for NonZero where
NonZero: Distribution<Vector<T, 2>>,
[src]fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Complex<T>
[src]
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Complex<T>
[src]Generate a random value of T
, using rng
as the source of randomness.
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
impl<T: Float> Distribution<Complex<T>> for Unit where
Unit: Distribution<Vector<T, 2>>,
[src]
impl<T: Float> Distribution<Complex<T>> for Unit where
Unit: Distribution<Vector<T, 2>>,
[src]fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Complex<T>
[src]
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Complex<T>
[src]Generate a random value of T
, using rng
as the source of randomness.
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
impl<T> Div<Quaternion<T>> for Complex<T> where
T: Neg<Output = T> + Num + Copy,
[src]
impl<T> Div<Quaternion<T>> for Complex<T> where
T: Neg<Output = T> + Num + Copy,
[src]type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the /
operator.
fn div(self, other: Quaternion<T>) -> Self::Output
[src]
fn div(self, other: Quaternion<T>) -> Self::Output
[src]Performs the /
operation. Read more
impl<T> DivAssign<Complex<T>> for Complex<T> where
Self: Div<Output = Self> + Copy,
[src]
impl<T> DivAssign<Complex<T>> for Complex<T> where
Self: Div<Output = Self> + Copy,
[src]fn div_assign(&mut self, other: Self)
[src]
fn div_assign(&mut self, other: Self)
[src]Performs the /=
operation. Read more
impl<T> DivAssign<Complex<T>> for Quaternion<T> where
Self: Div<Complex<T>, Output = Self> + Copy,
[src]
impl<T> DivAssign<Complex<T>> for Quaternion<T> where
Self: Div<Complex<T>, Output = Self> + Copy,
[src]fn div_assign(&mut self, other: Complex<T>)
[src]
fn div_assign(&mut self, other: Complex<T>)
[src]Performs the /=
operation. Read more
impl<T> DivAssign<T> for Complex<T> where
Self: Div<T, Output = Self> + Copy,
[src]
impl<T> DivAssign<T> for Complex<T> where
Self: Div<T, Output = Self> + Copy,
[src]fn div_assign(&mut self, other: T)
[src]
fn div_assign(&mut self, other: T)
[src]Performs the /=
operation. Read more
impl<T> From<Complex<T>> for Complex<T>
[src]
impl<T> From<Complex<T>> for Complex<T>
[src]fn from(nc: NumComplex<T>) -> Self
[src]
fn from(nc: NumComplex<T>) -> Self
[src]Performs the conversion.
impl<T> Mul<Complex<T>> for Complex<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
[src]
impl<T> Mul<Complex<T>> for Complex<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
[src]impl<T> Mul<Complex<T>> for Quaternion<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
[src]
impl<T> Mul<Complex<T>> for Quaternion<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
[src]impl<T> Mul<Quaternion<T>> for Complex<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
[src]
impl<T> Mul<Quaternion<T>> for Complex<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
[src]type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the *
operator.
fn mul(self, other: Quaternion<T>) -> Self::Output
[src]
fn mul(self, other: Quaternion<T>) -> Self::Output
[src]Performs the *
operation. Read more
impl<T> MulAssign<Complex<T>> for Complex<T> where
Self: Mul<Output = Self> + Copy,
[src]
impl<T> MulAssign<Complex<T>> for Complex<T> where
Self: Mul<Output = Self> + Copy,
[src]fn mul_assign(&mut self, other: Self)
[src]
fn mul_assign(&mut self, other: Self)
[src]Performs the *=
operation. Read more
impl<T> MulAssign<Complex<T>> for Quaternion<T> where
Self: Mul<Complex<T>, Output = Self> + Copy,
[src]
impl<T> MulAssign<Complex<T>> for Quaternion<T> where
Self: Mul<Complex<T>, Output = Self> + Copy,
[src]fn mul_assign(&mut self, other: Complex<T>)
[src]
fn mul_assign(&mut self, other: Complex<T>)
[src]Performs the *=
operation. Read more
impl<T> MulAssign<T> for Complex<T> where
Self: Mul<T, Output = Self> + Copy,
[src]
impl<T> MulAssign<T> for Complex<T> where
Self: Mul<T, Output = Self> + Copy,
[src]fn mul_assign(&mut self, other: T)
[src]
fn mul_assign(&mut self, other: T)
[src]Performs the *=
operation. Read more
impl<T: Float> NormL2 for Complex<T>
[src]
impl<T: Float> NormL2 for Complex<T>
[src]impl<T: Neg<Output = T> + Num + Copy> Num for Complex<T>
[src]
impl<T: Neg<Output = T> + Num + Copy> Num for Complex<T>
[src]type FromStrRadixErr = ParseComplexError<T::FromStrRadixErr>
fn from_str_radix(s: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
[src]
fn from_str_radix(s: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
[src]Convert from a string and radix (typically 2..=36
). Read more
impl<T> Sub<Complex<T>> for Quaternion<T> where
T: Sub<Output = T>,
[src]
impl<T> Sub<Complex<T>> for Quaternion<T> where
T: Sub<Output = T>,
[src]impl Sub<Quaternion<f32>> for Complex<f32>
[src]
impl Sub<Quaternion<f32>> for Complex<f32>
[src]Workaround for reverse subtraction.
type Output = Quaternion<f32>
type Output = Quaternion<f32>
The resulting type after applying the -
operator.
impl Sub<Quaternion<f64>> for Complex<f64>
[src]
impl Sub<Quaternion<f64>> for Complex<f64>
[src]Workaround for reverse subtraction.
type Output = Quaternion<f64>
type Output = Quaternion<f64>
The resulting type after applying the -
operator.
impl<T> SubAssign<Complex<T>> for Complex<T> where
T: SubAssign,
[src]
impl<T> SubAssign<Complex<T>> for Complex<T> where
T: SubAssign,
[src]fn sub_assign(&mut self, other: Self)
[src]
fn sub_assign(&mut self, other: Self)
[src]Performs the -=
operation. Read more
impl<T> SubAssign<Complex<T>> for Quaternion<T> where
T: SubAssign,
[src]
impl<T> SubAssign<Complex<T>> for Quaternion<T> where
T: SubAssign,
[src]fn sub_assign(&mut self, other: Complex<T>)
[src]
fn sub_assign(&mut self, other: Complex<T>)
[src]Performs the -=
operation. Read more
impl<T> SubAssign<T> for Complex<T> where
T: SubAssign,
[src]
impl<T> SubAssign<T> for Complex<T> where
T: SubAssign,
[src]fn sub_assign(&mut self, other: T)
[src]
fn sub_assign(&mut self, other: T)
[src]Performs the -=
operation. Read more
impl<T> Transform<Complex<T>> for Moebius<Complex<T>> where
T: Neg<Output = T> + Num + Copy,
[src]
impl<T> Transform<Complex<T>> for Moebius<Complex<T>> where
T: Neg<Output = T> + Num + Copy,
[src]impl<T: Copy> Copy for Complex<T>
[src]
impl<T> StructuralPartialEq for Complex<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Complex<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Complex<T> where
T: Send,
T: Send,
impl<T> Sync for Complex<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Complex<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Complex<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,