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)
GenericFieldcast in class GenericField<java.math.BigInteger>public java.math.BigInteger addG(java.math.BigInteger l,
java.math.BigInteger r)
throws EvaluationException
GenericFieldaddG 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
GenericFieldsubG in class GenericField<java.math.BigInteger>l - lhs argumentr - rhs argumentEvaluationException - on errorpublic java.math.BigInteger negG(java.math.BigInteger l)
throws EvaluationException
GenericFieldnegG 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
GenericFieldmulG 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
GenericFielddivG 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
GenericFieldmodG 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
GenericFieldpowG 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 argumentEvaluationExceptionpublic java.lang.Boolean eq(java.lang.Object lo,
java.lang.Object ro)
throws EvaluationException
FieldIeq in interface FieldIeq in class AbstractComparativeFieldlo - left hand argumentro - right hand argumentEvaluationException - on errorpublic java.lang.Boolean ne(java.lang.Object lo,
java.lang.Object ro)
throws EvaluationException
FieldIne in interface FieldIne in class AbstractComparativeFieldlo - 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 FieldIgt in class AbstractComparativeFieldl - 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 FieldIge in class AbstractComparativeFieldl - 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 FieldIlt in class AbstractComparativeFieldl - 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 FieldIle in class AbstractComparativeFieldl - left hand argumentr - right hand argumentEvaluationException - on errorpublic java.math.BigInteger getOne()
FieldIgetOne in interface FieldIgetOne in class GenericField<java.math.BigInteger>public java.math.BigInteger getZero()
FieldIgetZero in interface FieldIgetZero in class GenericField<java.math.BigInteger>public java.lang.Integer convertToIntE(java.math.BigInteger l)
throws EvaluationException
GenericFieldpowG(E,E)
method will be called.convertToIntE in class GenericField<java.math.BigInteger>l - argument to convert.EvaluationExceptionpublic java.math.BigInteger convertFromInt(java.lang.Integer l)
throws EvaluationException
IntegerConvertorconvertFromInt in interface IntegerConvertorconvertFromInt in class GenericField<java.math.BigInteger>l - value to convertEvaluationExceptionCopyright © 2018 Singular Systems http://www.singularsys.com/jep