BinaryAffineTransform class

An immutable affine transform over GF(2).

The transform computes matrix * input + offset, where addition is XOR. Matrix row i and offset bit i produce output bit i.

Annotations

Constructors

BinaryAffineTransform(BinaryMatrix matrix, {BigInt? offset})
Creates a binary affine transform.
BinaryAffineTransform.identity(int width)
Creates an identity transform with width input and output bits.
factory

Properties

configurationSignature → String
A deterministic signature suitable for generated definition names.
no setter
hashCode → int
The hash code for this object.
no setteroverride
inputWidth → int
The number of input bits.
no setter
matrix → BinaryMatrix
The linear portion of the transform.
final
offset → BigInt
The packed constant XORed with the matrix product.
final
outputWidth → int
The number of output bits.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(BigInt input) → BigInt
Applies this transform to packed input.
compose(BinaryAffineTransform before) → BinaryAffineTransform
Composes this transform after before.
concatenate(BinaryAffineTransform other) → BinaryAffineTransform
Concatenates this transform's outputs below other's outputs.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pow(int exponent) → BinaryAffineTransform
Returns this transform applied exponent consecutive times.
then(BinaryAffineTransform after) → BinaryAffineTransform
Composes after after this transform.
toString() → String
A string representation of this object.
override

Operators

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