Trait alga::general::AbstractGroupAbelian
[−]
[src]
pub trait AbstractGroupAbelian<O: Operator>: AbstractGroup<O> { fn prop_is_commutative_approx(args: (Self, Self)) -> bool where Self: ApproxEq { ... } fn prop_is_commutative(args: (Self, Self)) -> bool where Self: Eq { ... } }
An commutative group.
∀ a, b ∈ Self, a ∘ b = b ∘ a
Provided Methods
fn prop_is_commutative_approx(args: (Self, Self)) -> bool where Self: ApproxEq
Returns true
if the operator is commutative for the given argument tuple. Approximate
equality is used for verifications.
fn prop_is_commutative(args: (Self, Self)) -> bool where Self: Eq
Returns true
if the operator is commutative for the given argument tuple.
Implementors
impl AbstractGroupAbelian<Additive> for i8
impl AbstractGroupAbelian<Additive> for i16
impl AbstractGroupAbelian<Additive> for i32
impl AbstractGroupAbelian<Additive> for i64
impl AbstractGroupAbelian<Additive> for f32
impl AbstractGroupAbelian<Additive> for f64
impl AbstractGroupAbelian<Multiplicative> for f32
impl AbstractGroupAbelian<Multiplicative> for f64
impl<O: Operator> AbstractGroupAbelian<O> for Id<O>