Trait un_algebra::group::mul_group::NumMulGroup[][src]

pub trait NumMulGroup: NumMulMonoid {
    fn invert(&self) -> Self;
fn is_invertible(&self) -> bool; fn div(&self, other: &Self) -> Self { ... }
fn axiom_left_invert(&self, eps: &Self::Error) -> bool { ... }
fn axiom_right_invert(&self, eps: &Self::Error) -> bool { ... } }

A "numeric" algebraic multiplicative group.

NumAddGroup trait is for types that only form multiplicative groups when "numeric" comparisons are used, e.g. floating point types.

Required Methods

The unique multiplicative inverse of a group element. Inversion is only defined for invertible group elements.

Test for an invertible group element.

Provided Methods

The multiplicative "division" of two group elements.

Numerically test the left axiom of inversion.

Numerically test the right axiom of inversion.

Implementations on Foreign Types

impl NumMulGroup for f32
[src]

Inversion is just floating point inversion.

Non-zero elements are invertible.

impl NumMulGroup for f64
[src]

Inversion is just floating point inversion.

Non-zero elements are invertible.

impl<A: NumMulGroup> NumMulGroup for (A,)
[src]

1-tuples form a numeric multiplicative group if their corresponding items form numeric multiplicative groups.

Inversion is by matching element.

Invertibility is across the tuple.

impl<A: NumMulGroup> NumMulGroup for (A, A)
[src]

Homogeneous 2-tuples form a numeric multiplicative group if their corresponding items form numeric multiplicative groups. We can only implement homogeneous tuples since numeric comparisons require a single numeric error type.

Inversion is by matching element.

Invertibility is across the tuple.

impl<A: NumMulGroup> NumMulGroup for (A, A, A)
[src]

Homogeneous 3-tuples form a numeric multiplicative group if their corresponding items form numeric multiplicative groups. We can only implement homogeneous tuples since numeric comparisons require a single numeric error type.

Inversion is by matching element.

Invertibility is across the tuple.

impl<T: Real> NumMulGroup for Complex<T>
[src]

Non-zero complex numbers (with real components) form a numeric multiplicative group.

Inversion is just complex inversion.

Non-zero complex numbers are invertible.

Implementors