A conjunction of Lie-ideal rules defining one exact quotient.
Passing several rules imposes all constraints, i.e. takes the join (sum)
of their discarded ideals.
Source code in src/tensorsig/offset_coded_signatures/_lie_quotients/rules.py
| def __init__(self, *rules: QuotientRule) -> None:
if not all(
isinstance(
rule,
(
TemporalDegree,
ChannelMultiplicity,
ChannelSupport,
OffsetMultiplicity,
OffsetSupport,
OffsetSpan,
DependenceGraph,
),
)
for rule in rules
):
raise TypeError("LieQuotient accepts only structured quotient rules.")
object.__setattr__(self, "rules", tuple(rules))
|
__and__
__and__(other: 'LieQuotient') -> 'LieQuotient'
Return the quotient imposing both sets of constraints.
Source code in src/tensorsig/offset_coded_signatures/_lie_quotients/rules.py
| def __and__(self, other: "LieQuotient") -> "LieQuotient":
"""Return the quotient imposing both sets of constraints."""
if not isinstance(other, LieQuotient):
return NotImplemented
return LieQuotient(*self.rules, *other.rules)
|