public final class BigQuaternionRing extends java.lang.Object implements RingFactory<BigQuaternion>
Modifier and Type | Field and Description |
---|---|
BigQuaternion |
I
The constant i.
|
protected boolean |
integral
Flag to signal if this ring is integral.
|
BigQuaternion |
J
The constant j.
|
BigQuaternion |
K
The constant k.
|
BigQuaternion |
ONE
The constant 1.
|
protected static java.util.Random |
random |
BigQuaternion |
ZERO
The constant 0.
|
Constructor and Description |
---|
BigQuaternionRing()
Constructor for a BigQuaternion ring.
|
BigQuaternionRing(boolean i)
Constructor for a BigQuaternion ring.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
characteristic()
Characteristic of this ring.
|
BigQuaternion |
copy(BigQuaternion c)
Copy BigQuaternion element c.
|
boolean |
equals(java.lang.Object b)
Comparison with any other object.
|
BigQuaternion |
fromInteger(java.math.BigInteger a)
Get a BigQuaternion element from a BigInteger.
|
BigQuaternion |
fromInteger(long a)
Get a BigQuaternion element from a long.
|
BigQuaternion |
fromInteger(long[] a)
Get a BigQuaternion element from a long vector.
|
java.util.List<BigQuaternion> |
generators()
Get a list of the generating elements.
|
BigQuaternion |
getONE()
Get the one element.
|
BigQuaternion |
getZERO()
Get the zero element.
|
int |
hashCode()
Hash code for this BigQuaternionRing.
|
boolean |
isAssociative()
Query if this ring is associative.
|
boolean |
isCommutative()
Query if this ring is commutative.
|
boolean |
isField()
Query if this ring is a field.
|
boolean |
isFinite()
Is this structure finite or infinite.
|
BigQuaternion |
parse(java.io.Reader r)
Parse quaternion number from Reader.
|
BigQuaternion |
parse(java.lang.String s)
Parse quaternion number from String.
|
BigQuaternion |
random(int n)
BigQuaternion random.
|
BigQuaternion |
random(int n,
java.util.Random rnd)
BigQuaternion random.
|
java.lang.String |
toScript()
Get a scripting compatible string representation.
|
java.lang.String |
toString()
Get the string representation.
|
java.util.List<BigQuaternion> |
unitsOfHurwitzian()
BigQuaternion units of the Hurwitzian integers.
|
protected boolean integral
protected static final java.util.Random random
public final BigQuaternion ZERO
public final BigQuaternion ONE
public final BigQuaternion I
public final BigQuaternion J
public final BigQuaternion K
public BigQuaternionRing()
public BigQuaternionRing(boolean i)
public java.util.List<BigQuaternion> generators()
generators
in interface ElemFactory<BigQuaternion>
ElemFactory.generators()
public boolean isFinite()
isFinite
in interface ElemFactory<BigQuaternion>
ElemFactory.isFinite()
public BigQuaternion copy(BigQuaternion c)
copy
in interface ElemFactory<BigQuaternion>
c
- BigQuaternion.public BigQuaternion getZERO()
getZERO
in interface AbelianGroupFactory<BigQuaternion>
public BigQuaternion getONE()
getONE
in interface MonoidFactory<BigQuaternion>
public boolean isCommutative()
isCommutative
in interface MonoidFactory<BigQuaternion>
public boolean isAssociative()
isAssociative
in interface MonoidFactory<BigQuaternion>
public boolean isField()
isField
in interface RingFactory<BigQuaternion>
public java.math.BigInteger characteristic()
characteristic
in interface RingFactory<BigQuaternion>
public BigQuaternion fromInteger(java.math.BigInteger a)
fromInteger
in interface ElemFactory<BigQuaternion>
a
- BigInteger.public BigQuaternion fromInteger(long a)
fromInteger
in interface ElemFactory<BigQuaternion>
a
- long.public BigQuaternion fromInteger(long[] a)
a
- long vector.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toScript()
toScript
in interface ElemFactory<BigQuaternion>
Element.toScript()
public boolean equals(java.lang.Object b)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.util.List<BigQuaternion> unitsOfHurwitzian()
public BigQuaternion random(int n)
random
in interface ElemFactory<BigQuaternion>
n
- such that 0 ≤ A, B, C, D ≤ (2n-1).public BigQuaternion random(int n, java.util.Random rnd)
random
in interface ElemFactory<BigQuaternion>
n
- such that 0 ≤ A, B, C, D ≤ (2n-1).rnd
- is a source for random bits.public BigQuaternion parse(java.lang.String s)
parse
in interface ElemFactory<BigQuaternion>
s
- String.public BigQuaternion parse(java.io.Reader r)
parse
in interface ElemFactory<BigQuaternion>
r
- Reader.