ModuloField<T> class

Inheritance

Constructors

ModuloField(DataType<T> type, T modulus)
const

Properties

additiveIdentity → T
The additive neutral element.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
infinity → T
Positive infinity.
no setterinherited
modulus → T
final
multiplicativeIdentity → T
The multiplicative neutral element.
no setteroverride
nan → T
Not a number.
no setterinherited
negativeInfinity → T
Negative infinity.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type DataType<T>
final

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

Operators

operator ==(Object other) bool
The equality operator.
inherited