ModuloField<T> class
Methods
-
add(T a, T b)
→ T
-
Computes the addition:
a + b
.
override
-
div(T a, T b)
→ T
-
Computes the division:
a / b
.
override
-
division(T a, T b)
→ T
-
Computes a truncating division:
a ~/ b
.
override
-
gcd(T a, T b)
→ T
-
Computes the greatest common divisor:
gcd(a, b)
.
override
-
inv(T a)
→ T
-
Computes the multiplicative inverse:
1 / a
.
override
-
mod(T a, T b)
→ T
-
Computes the remainder of the Euclidean division
a % b
.
override
-
modInverse(T base, T modulus)
→ T
-
Computes the modular multiplicative inverse of
base
modulo modulus
.
override
-
modPow(T base, T exponent, T modulus)
→ T
-
Computes
base
to the power of exponent
modulo modulus
.
override
-
mul(T a, T b)
→ T
-
Computes the multiplication:
a * b
.
override
-
neg(T a)
→ T
-
Computes the additive inverse:
-a
.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pow(T base, T exponent)
→ T
-
Computes
base
to the power of exponent
.
override
-
remainder(T a, T b)
→ T
-
Computes the remainder of the truncating division.
override
-
scale(T a, num f)
→ T
-
Computes the multiplicative scaling:
a * f
.
override
-
sub(T a, T b)
→ T
-
Computes the subtraction:
a - b
.
override
-
toString()
→ String
-
A string representation of this object.
inherited
-
unsupportedOperation(String operation)
→ T
-
Thrown when an operation is not supported.
inherited