Skip to content

Commit 94abffb

Browse files
committed
I need to start grouping somewhat...
1 parent 9bbdbbc commit 94abffb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

quadint/quad/rings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ def score_for_AB(A: int, B: int) -> tuple[int, ...]:
599599
)
600600

601601

602+
# region Cornacchia rings (for factorization)
602603
class CornacchiaRing(RealNormEuclidRing):
603604
"""Shared split-prime factorization flow for rings with norm form x**2 + k*y**2."""
604605

@@ -837,6 +838,7 @@ def accept_override(cls, D: int, den: int, default_den: int) -> bool: # noqa: A
837838
return D == -3 and den == 2
838839

839840

841+
# region Heegner rings
840842
class HeegnerDen2Ring(EisensteinRing):
841843
"""Shared split-prime factorization helper for D=-7 and D=-11 (den=2)."""
842844

@@ -924,3 +926,7 @@ class HeegnerElevenRing(HeegnerDen2Ring):
924926
def accept_override(cls, D: int, den: int, default_den: int) -> bool: # noqa: ARG003
925927
"""Should this class be used for the given values?"""
926928
return D == -11 and den == 2
929+
930+
931+
# endregion
932+
# endregion

0 commit comments

Comments
 (0)