[][src]Struct hcomplex::construct::Construct

pub struct Construct<T: Float, A: Algebra<T>>(pub A, pub A, _);

Cayley–Dickson construction, a basic building block

Methods

impl<T: Float, A: Algebra<T>> Construct<T, A>[src]

pub fn new2(re: A, im: A) -> Self[src]

Create from two parts

impl<T: Float, A: Algebra<T>> Construct<T, A>[src]

pub fn abs(self) -> T[src]

impl<T: Float, A: Algebra<T>> Construct<T, A>[src]

pub fn re(self) -> A[src]

pub fn im(self) -> A[src]

impl<T: Float, A: Algebra<T>> Construct<T, Construct<T, A>>[src]

pub fn new4(w: A, x: A, y: A, z: A) -> Self[src]

Create from four parts

pub fn w(self) -> A[src]

pub fn x(self) -> A[src]

pub fn y(self) -> A[src]

pub fn z(self) -> A[src]

Trait Implementations

impl<T: Float, A: Algebra<T>> Conj for Construct<T, A>[src]

impl<T: Float, A: Algebra<T>> SqrAbs for Construct<T, A>[src]

type Output = T

impl<T: Float, A: Algebra<T>> Algebra<T> for Construct<T, A>[src]

impl<T: Clone + Float, A: Clone + Algebra<T>> Clone for Construct<T, A>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Copy + Float, A: Copy + Algebra<T>> Copy for Construct<T, A>[src]

impl<T: PartialEq + Float, A: PartialEq + Algebra<T>> PartialEq<Construct<T, A>> for Construct<T, A>[src]

impl<T: Debug + Float, A: Debug + Algebra<T>> Debug for Construct<T, A>[src]

impl<T: Float, A: Algebra<T>> Rem<Construct<T, A>> for Construct<T, A>[src]

Not implemented yet

type Output = Self

The resulting type after applying the % operator.

impl<T: Float, A: Algebra<T>> Add<Construct<T, A>> for Construct<T, A>[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: Float, A: Algebra<T>> Sub<Construct<T, A>> for Construct<T, A>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: Float, A: Algebra<T>> Mul<T> for Construct<T, A>[src]

type Output = Self

The resulting type after applying the * operator.

impl<A: Algebra<f32>> Mul<Construct<f32, A>> for f32[src]

Workaround for reverse multiplication

type Output = Construct<f32, A>

The resulting type after applying the * operator.

impl<A: Algebra<f64>> Mul<Construct<f64, A>> for f64[src]

Workaround for reverse multiplication

type Output = Construct<f64, A>

The resulting type after applying the * operator.

impl<T: Float, A: Algebra<T>> Mul<Construct<T, A>> for Construct<T, A>[src]

type Output = Self

The resulting type after applying the * operator.

impl<T: Float, A: Algebra<T>> Div<T> for Construct<T, A>[src]

type Output = Self

The resulting type after applying the / operator.

impl<A: Algebra<f32>> Div<Construct<f32, A>> for f32[src]

Workaround for reverse division

type Output = Construct<f32, A>

The resulting type after applying the / operator.

impl<A: Algebra<f64>> Div<Construct<f64, A>> for f64[src]

Workaround for reverse division

type Output = Construct<f64, A>

The resulting type after applying the / operator.

impl<T: Float, A: Algebra<T>> Div<Construct<T, A>> for Construct<T, A>[src]

type Output = Self

The resulting type after applying the / operator.

impl<T: Float, A: Algebra<T>> Neg for Construct<T, A>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: Float, A: Algebra<T>> AddAssign<Construct<T, A>> for Construct<T, A>[src]

impl<T: Float, A: Algebra<T>> SubAssign<Construct<T, A>> for Construct<T, A>[src]

impl<T: Float, A: Algebra<T>> MulAssign<Construct<T, A>> for Construct<T, A>[src]

impl<T: Float, A: Algebra<T>> MulAssign<T> for Construct<T, A>[src]

impl<T: Float, A: Algebra<T>> DivAssign<Construct<T, A>> for Construct<T, A>[src]

impl<T: Float, A: Algebra<T>> DivAssign<T> for Construct<T, A>[src]

impl<T: Float, A: Algebra<T>> RemAssign<Construct<T, A>> for Construct<T, A>[src]

impl<T: Float, A: Algebra<T>> Num for Construct<T, A>[src]

Not implemented yet

type FromStrRadixErr = ()

impl<T: Float, A: Algebra<T>> Zero for Construct<T, A>[src]

impl<T: Float, A: Algebra<T>> One for Construct<T, A>[src]

fn is_one(&self) -> bool where
    Self: PartialEq<Self>, 
[src]

Returns true if self is equal to the multiplicative identity. Read more

impl<T: Float, A: Algebra<T>> Inv for Construct<T, A>[src]

type Output = Self

The result after applying the operator.

Auto Trait Implementations

impl<T, A> Send for Construct<T, A> where
    A: Send,
    T: Send

impl<T, A> Sync for Construct<T, A> where
    A: Sync,
    T: Sync

Blanket Implementations

impl<T> Conj for T where
    T: Float
[src]

impl<T> SqrAbs for T where
    T: Float
[src]

type Output = T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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]

impl<T, Rhs> NumAssignOps<Rhs> for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]

impl<T> NumAssign for T where
    T: Num + NumAssignOps<T>, 
[src]