algebraixlib.algebras.couplets module¶
This module contains the algebra of couplets and related functionality.
-
class
algebraixlib.algebras.couplets.Algebra[source]¶ Bases:
objectProvide the operations and relations that are members of the algebra of couplets.
This class contains only static member functions. Its main purpose is to provide a namespace for and highlight the operations and relations that belong to the algebra of couplets. All member functions are also available at the enclosing module scope.
-
static
transpose()[source]¶ Return the transposition of
couplet(right and left components swapped).Returns: The transposition of coupletorUndef()ifcoupletis not an instance ofCouplet.
-
static
-
algebraixlib.algebras.couplets.transpose()¶ Convenience redirection to
Algebra.transpose.
-
algebraixlib.algebras.couplets.compose()¶ Convenience redirection to
Algebra.compose.
-
algebraixlib.algebras.couplets.get_name() → str[source]¶ Return the name and ground set of this algebra in string form.
-
algebraixlib.algebras.couplets.get_ground_set() → algebraixlib.structure.Structure[source]¶ Return the ground set of this algebra.
-
algebraixlib.algebras.couplets.get_absolute_ground_set() → algebraixlib.structure.Structure[source]¶ Return the absolute ground set of this algebra.
-
algebraixlib.algebras.couplets.is_member(obj: algebraixlib.mathobjects.mathobject.MathObject) → bool[source]¶ Return whether
objis a member of the ground set of this algebra.Returns: Trueifobjis a couplet (an instance ofCouplet),Falseif not.
-
algebraixlib.algebras.couplets.is_member_or_undef(obj: algebraixlib.mathobjects.mathobject.MathObject) → bool[source]¶ - Return whether
objis either a member of the ground set of this algebra - or
Undef.
Returns: Trueifobjis either a couplet (an instance ofCouplet) orUndef,Falseif not.- Return whether
-
algebraixlib.algebras.couplets.is_absolute_member(obj: algebraixlib.mathobjects.mathobject.MathObject) → bool[source]¶ Return whether
objis a member of the absolute ground set of this algebra.Returns: Trueifobjis an absolute couplet,Falseif not.