[−][src]Struct hcomplex::construct::Construct
Cayley–Dickson construction, a basic building block
Methods
impl<T: Float, A: Algebra<T>> Construct<T, A>
[src]
impl<T: Float, A: Algebra<T>> Construct<T, A>
[src]
impl<T: Float, A: Algebra<T>> Construct<T, 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]
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(&self) -> 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]
fn eq(&self, other: &Construct<T, A>) -> bool
[src]
fn ne(&self, other: &Construct<T, A>) -> bool
[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.
fn rem(self, _other: Self) -> Self::Output
[src]
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.
fn add(self, other: Self) -> Self::Output
[src]
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.
fn sub(self, other: Self) -> Self::Output
[src]
impl<T: Float, A: Algebra<T>> Mul<T> for Construct<T, A>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: T) -> Self::Output
[src]
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.
fn mul(self, other: Construct<f32, A>) -> Self::Output
[src]
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.
fn mul(self, other: Construct<f64, A>) -> Self::Output
[src]
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.
fn mul(self, other: Self) -> Self::Output
[src]
impl<T: Float, A: Algebra<T>> Div<T> for Construct<T, A>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: T) -> Self::Output
[src]
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.
fn div(self, other: Construct<f32, A>) -> Self::Output
[src]
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.
fn div(self, other: Construct<f64, A>) -> Self::Output
[src]
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.
fn div(self, other: Self) -> Self::Output
[src]
impl<T: Float, A: Algebra<T>> Neg for Construct<T, A>
[src]
impl<T: Float, A: Algebra<T>> AddAssign<Construct<T, A>> for Construct<T, A>
[src]
fn add_assign(&mut self, other: Self)
[src]
impl<T: Float, A: Algebra<T>> SubAssign<Construct<T, A>> for Construct<T, A>
[src]
fn sub_assign(&mut self, other: Self)
[src]
impl<T: Float, A: Algebra<T>> MulAssign<Construct<T, A>> for Construct<T, A>
[src]
fn mul_assign(&mut self, other: Self)
[src]
impl<T: Float, A: Algebra<T>> MulAssign<T> for Construct<T, A>
[src]
fn mul_assign(&mut self, other: T)
[src]
impl<T: Float, A: Algebra<T>> DivAssign<Construct<T, A>> for Construct<T, A>
[src]
fn div_assign(&mut self, other: Self)
[src]
impl<T: Float, A: Algebra<T>> DivAssign<T> for Construct<T, A>
[src]
fn div_assign(&mut self, other: T)
[src]
impl<T: Float, A: Algebra<T>> RemAssign<Construct<T, A>> for Construct<T, A>
[src]
fn rem_assign(&mut self, other: Self)
[src]
impl<T: Float, A: Algebra<T>> Num for Construct<T, A>
[src]
Not implemented yet
type FromStrRadixErr = ()
fn from_str_radix(
_str: &str,
_radix: u32
) -> Result<Self, Self::FromStrRadixErr>
[src]
_str: &str,
_radix: u32
) -> Result<Self, Self::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 one() -> Self
[src]
fn is_one(&self) -> bool where
Self: PartialEq<Self>,
[src]
Self: PartialEq<Self>,
Returns true
if self
is equal to the multiplicative identity. Read more
impl<T: Float, A: Algebra<T>> Inv for Construct<T, A>
[src]
Auto Trait Implementations
impl<T, A> Send for Construct<T, A> where
A: Send,
T: Send,
A: Send,
T: Send,
impl<T, A> Sync for Construct<T, A> where
A: Sync,
T: Sync,
A: Sync,
T: Sync,
Blanket Implementations
impl<T> Conj for T where
T: Float,
[src]
T: Float,
impl<T> SqrAbs for T where
T: Float,
[src]
T: Float,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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>,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T> NumAssign for T where
T: Num + NumAssignOps<T>,
[src]
T: Num + NumAssignOps<T>,