Class ClassGroup
java.lang.Object
dk.jonaslindstrom.ruffini.quadraticform.ClassGroup
- All Implemented Interfaces:
Group<QuadraticForm<BigInteger,
,BigIntegers>> Monoid<QuadraticForm<BigInteger,
,BigIntegers>> Semigroup<QuadraticForm<BigInteger,
,BigIntegers>> Set<QuadraticForm<BigInteger,
BigIntegers>>
This implements the ideal class group for a negative discriminant.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if and only if a = b as elements of this set.identity()
Return the identity element of this monoid.Return the inverse a-1.Return the result of the product ab in this group.Returns a human-readable string representation of an element in this set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.Monoid
isIdentity, power
-
Constructor Details
-
ClassGroup
-
-
Method Details
-
invert
Description copied from interface:Group
Return the inverse a-1.- Specified by:
invert
in interfaceGroup<QuadraticForm<BigInteger,
BigIntegers>>
-
identity
Description copied from interface:Monoid
Return the identity element of this monoid.- Specified by:
identity
in interfaceMonoid<QuadraticForm<BigInteger,
BigIntegers>>
-
multiply
public QuadraticForm<BigInteger,BigIntegers> multiply(QuadraticForm<BigInteger, BigIntegers> a, QuadraticForm<BigInteger, BigIntegers> b) Description copied from interface:Semigroup
Return the result of the product ab in this group.- Specified by:
multiply
in interfaceSemigroup<QuadraticForm<BigInteger,
BigIntegers>>
-
toString
Description copied from interface:Set
Returns a human-readable string representation of an element in this set.- Specified by:
toString
in interfaceSet<QuadraticForm<BigInteger,
BigIntegers>>
-
equals
public boolean equals(QuadraticForm<BigInteger, BigIntegers> a, QuadraticForm<BigInteger, BigIntegers> b) Description copied from interface:Set
Returnstrue
if and only if a = b as elements of this set.- Specified by:
equals
in interfaceSet<QuadraticForm<BigInteger,
BigIntegers>>
-
sample
-