public class ComplexPolynomialRing extends java.lang.Object implements Ring
Ring.Member
Modifier | Constructor and Description |
---|---|
protected |
ComplexPolynomialRing()
Creates a new instance of ComplexPolynomialRing
|
Modifier and Type | Method and Description |
---|---|
static ComplexPolynomialRing |
getInstance()
Singleton.
|
boolean |
isNegative(AbelianGroup.Member a,
AbelianGroup.Member b)
Returns true if one member is the negative of the other.
|
boolean |
isOne(Ring.Member r)
Returns true if the member is the unit element.
|
boolean |
isZero(AbelianGroup.Member g)
Returns true if the member is the identity element of this group.
|
Ring.Member |
one()
Returns the unit element.
|
protected static Complex[] |
toComplex(Field.Member[] f)
Internal method for typesafe cast
|
AbelianGroup.Member |
zero()
Returns the identity element.
|
protected ComplexPolynomialRing()
public static final ComplexPolynomialRing getInstance()
public boolean isNegative(AbelianGroup.Member a, AbelianGroup.Member b)
isNegative
in interface AbelianGroup
a
- a group memberb
- a group memberpublic boolean isOne(Ring.Member r)
public boolean isZero(AbelianGroup.Member g)
isZero
in interface AbelianGroup
g
- a group memberpublic Ring.Member one()
public AbelianGroup.Member zero()
zero
in interface AbelianGroup
protected static Complex[] toComplex(Field.Member[] f)