GfValue class
An immutable element of a BinaryExtensionField.
Bit i of value is the coefficient of x^i in the field's polynomial
basis. Equality includes the field descriptor, not only the packed bits.
- Annotations
Constructors
- GfValue(BinaryExtensionField field, BigInt value)
-
Creates an element of
fieldfrom packedvalue.
Properties
- field → BinaryExtensionField
-
The field to which this element belongs.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isZero → bool
-
Whether this is the additive identity.
no setter
- logicValue → LogicValue
-
The packed coefficients as a two-state LogicValue.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → BigInt
-
The packed polynomial-basis coefficients.
final
Methods
-
inverse(
) → GfValue - Returns the multiplicative inverse of this non-zero element.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pow(
BigInt exponent) → GfValue -
Raises this element to a non-negative
exponent. -
square(
) → GfValue - Returns this element squared.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
GfValue other) → GfValue -
Multiplies
otherusing polynomial multiplication and modular reduction. -
operator +(
GfValue other) → GfValue -
Adds
otherin this binary extension field. -
operator -(
GfValue other) → GfValue -
Subtracts
other, which is identical to addition in characteristic two. -
operator /(
GfValue other) → GfValue -
Divides by non-zero
other. -
operator ==(
Object other) → bool -
The equality operator.
override