BinaryLinearRecurrenceDescriptor class

Describes a linear recurrence over GF(2).

Each advancement computes:

nextState = stateMatrix * state + inputMatrix * input + offset

inputMatrix may be omitted for an autonomous recurrence.

Annotations

Constructors

BinaryLinearRecurrenceDescriptor({required BinaryMatrix stateMatrix, BinaryMatrix? inputMatrix, BigInt? offset})
Creates a binary linear recurrence descriptor.

Properties

configurationSignature → String
A deterministic signature suitable for generated definition names.
no setter
hashCode → int
The hash code for this object.
no setteroverride
inputMatrix → BinaryMatrix?
The optional matrix mapping input bits into the next state.
final
inputWidth → int
The number of input bits, or zero for an autonomous recurrence.
no setter
offset → BigInt
The packed constant XORed into every next state.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stateMatrix → BinaryMatrix
The square state-transition matrix.
final
stateWidth → int
The number of state bits.
no setter

Methods

advance(BigInt state, {BigInt? input}) → BigInt
Advances packed state by one step using packed input.
advanceAll(BigInt state, Iterable<BigInt> inputs) → BigInt
Advances packed state through consecutive constant inputs.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
transitionForInput(BigInt input) → BinaryAffineTransform
Returns the state transform for one step with constant packed input.
transitionForInputs(Iterable<BigInt> inputs) → BinaryAffineTransform
Returns the state transform for consecutive constant inputs.

Operators

operator ==(Object other) → bool
The equality operator.
override