public class BigModulusField extends GenericField<java.math.BigInteger>
Constructor and Description |
---|
BigModulusField(java.math.BigInteger modulus) |
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
addG(java.math.BigInteger l,
java.math.BigInteger r)
Adds two elements of type E.
|
java.math.BigInteger |
cast(java.lang.Object l)
Convert the input to type E.
|
java.lang.Integer |
cmpG(java.math.BigInteger l,
java.math.BigInteger r)
Not implemented for this field.
|
java.math.BigInteger |
convertFromInt(java.lang.Integer l)
Attempt to convert argument from an integer
|
java.lang.Integer |
convertToIntE(java.math.BigInteger l)
If possible convert the argument to an Integer to enable integral powers.
|
java.math.BigInteger |
divG(java.math.BigInteger l,
java.math.BigInteger r)
Divides two elements of type E.
|
java.lang.Boolean |
eq(java.lang.Object lo,
java.lang.Object ro)
Equals
|
java.lang.Boolean |
ge(java.lang.Object l,
java.lang.Object r)
Not implemented for this field.
|
java.math.BigInteger |
getOne()
Get the multiplicative identity for this field.
|
java.math.BigInteger |
getZero()
Get the additive identity for this field
|
java.lang.Boolean |
gt(java.lang.Object l,
java.lang.Object r)
Not implemented for this field.
|
java.lang.Boolean |
le(java.lang.Object l,
java.lang.Object r)
Not implemented for this field.
|
java.lang.Boolean |
lt(java.lang.Object l,
java.lang.Object r)
Not implemented for this field.
|
java.math.BigInteger |
modG(java.math.BigInteger l,
java.math.BigInteger r)
Modulus of two elements of type E.
|
java.math.BigInteger |
mulG(java.math.BigInteger l,
java.math.BigInteger r)
Multiplies two elements of type E.
|
java.lang.Boolean |
ne(java.lang.Object lo,
java.lang.Object ro)
Not Equals
|
java.math.BigInteger |
negG(java.math.BigInteger l)
Negates an elements of type E.
|
java.math.BigInteger |
powG(java.math.BigInteger l,
java.math.BigInteger r)
Raises l to the power of r
|
java.math.BigInteger |
subG(java.math.BigInteger l,
java.math.BigInteger r)
Subtracts two elements of type E.
|
public java.math.BigInteger cast(java.lang.Object l)
GenericField
cast
in class GenericField<java.math.BigInteger>
public java.math.BigInteger addG(java.math.BigInteger l, java.math.BigInteger r) throws EvaluationException
GenericField
addG
in class GenericField<java.math.BigInteger>
l
- lhs argumentr
- rhs argumentEvaluationException
- on errorpublic java.math.BigInteger subG(java.math.BigInteger l, java.math.BigInteger r) throws EvaluationException
GenericField
subG
in class GenericField<java.math.BigInteger>
l
- lhs argumentr
- rhs argumentEvaluationException
- on errorpublic java.math.BigInteger negG(java.math.BigInteger l) throws EvaluationException
GenericField
negG
in class GenericField<java.math.BigInteger>
l
- the argumentEvaluationException
- on errorpublic java.math.BigInteger mulG(java.math.BigInteger l, java.math.BigInteger r) throws EvaluationException
GenericField
mulG
in class GenericField<java.math.BigInteger>
l
- lhs argumentr
- rhs argumentEvaluationException
- on errorpublic java.math.BigInteger divG(java.math.BigInteger l, java.math.BigInteger r) throws EvaluationException
GenericField
divG
in class GenericField<java.math.BigInteger>
l
- numeratorr
- denominatorEvaluationException
- on errorpublic java.math.BigInteger modG(java.math.BigInteger l, java.math.BigInteger r) throws EvaluationException
GenericField
modG
in class GenericField<java.math.BigInteger>
l
- lhs argumentr
- rhs argumentEvaluationException
- on errorpublic java.math.BigInteger powG(java.math.BigInteger l, java.math.BigInteger r) throws EvaluationException
GenericField
powG
in class GenericField<java.math.BigInteger>
l
- lhs argumentr
- rhs argumentEvaluationException
- on errorpublic java.lang.Integer cmpG(java.math.BigInteger l, java.math.BigInteger r) throws EvaluationException
cmpG
in class GenericField<java.math.BigInteger>
l
- left argumentr
- right argumentEvaluationException
public java.lang.Boolean eq(java.lang.Object lo, java.lang.Object ro) throws EvaluationException
FieldI
eq
in interface FieldI
eq
in class AbstractComparativeField
lo
- left hand argumentro
- right hand argumentEvaluationException
- on errorpublic java.lang.Boolean ne(java.lang.Object lo, java.lang.Object ro) throws EvaluationException
FieldI
ne
in interface FieldI
ne
in class AbstractComparativeField
lo
- left hand argumentro
- right hand argumentEvaluationException
- on errorpublic java.lang.Boolean gt(java.lang.Object l, java.lang.Object r) throws EvaluationException
gt
in interface FieldI
gt
in class AbstractComparativeField
l
- left hand argumentr
- right hand argumentEvaluationException
- on errorpublic java.lang.Boolean ge(java.lang.Object l, java.lang.Object r) throws EvaluationException
ge
in interface FieldI
ge
in class AbstractComparativeField
l
- left hand argumentr
- right hand argumentEvaluationException
- on errorpublic java.lang.Boolean lt(java.lang.Object l, java.lang.Object r) throws EvaluationException
lt
in interface FieldI
lt
in class AbstractComparativeField
l
- left hand argumentr
- right hand argumentEvaluationException
- on errorpublic java.lang.Boolean le(java.lang.Object l, java.lang.Object r) throws EvaluationException
le
in interface FieldI
le
in class AbstractComparativeField
l
- left hand argumentr
- right hand argumentEvaluationException
- on errorpublic java.math.BigInteger getOne()
FieldI
getOne
in interface FieldI
getOne
in class GenericField<java.math.BigInteger>
public java.math.BigInteger getZero()
FieldI
getZero
in interface FieldI
getZero
in class GenericField<java.math.BigInteger>
public java.lang.Integer convertToIntE(java.math.BigInteger l) throws EvaluationException
GenericField
powG(E,E)
method will be called.convertToIntE
in class GenericField<java.math.BigInteger>
l
- argument to convert.EvaluationException
public java.math.BigInteger convertFromInt(java.lang.Integer l) throws EvaluationException
IntegerConvertor
convertFromInt
in interface IntegerConvertor
convertFromInt
in class GenericField<java.math.BigInteger>
l
- value to convertEvaluationException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep