LdpcCode class

A binary LDPC code described by a full-rank parity-check matrix.

Matrix bit column in row check connects one codeword variable to one parity check. parityColumns selects a square invertible submatrix used to solve systematic parity during encoding. When omitted, the first independent columns found by Gaussian elimination are selected. Message bits occupy the remaining columns in ascending column order.

The descriptor provides pure-Dart reference operations and precomputes the constant generator transform used by the hardware encoder. It does not prescribe a decoder schedule or message quantization.

Implementers

Constructors

LdpcCode({required BinaryMatrix parityCheckMatrix, List<int>? parityColumns})
Creates a validated binary LDPC code descriptor.

Properties

checkDegrees → List<int>
Number of variable neighbors for each parity check.
latefinal
checkEdges ↔ List<List<int>>
Edge indices incident on each parity check.
latefinal
configurationSignature → String
Stable matrix and layout signature for generated definition names.
no setter
density → double
Fraction of parity-check matrix entries that are set.
no setter
edgeCount → int
Number of Tanner-graph edges.
no setter
edges ↔ List<LdpcEdge>
Tanner-graph edges in check-major, variable-minor order.
latefinal
generatorMatrix ↔ BinaryMatrix
Constant systematic transform from message bits to codeword bits.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
length → int
Number of codeword bits.
no setter
messageBits → int
Number of systematic message bits.
no setter
messageColumns ↔ List<int>
Codeword columns carrying message bits, in message-bit order.
latefinal
parityBits → int
Number of independent parity checks and parity bits.
no setter
parityCheckMatrix → BinaryMatrix
Binary parity-check matrix.
final
parityColumns → List<int>
Codeword columns solved as parity during systematic encoding.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
variableDegrees → List<int>
Number of check neighbors for each codeword variable.
latefinal
variableEdges ↔ List<List<int>>
Edge indices incident on each codeword variable.
latefinal

Methods

decodeLayeredMinSum(List<int> logLikelihoodRatios, {required int llrWidth, required int maxIterations, int normalizationNumerator = 1, int normalizationShift = 0, int offset = 0}) → LdpcDecodeResult
Decodes quantized two's-complement LLRs with layered min-sum.
decodeMinSum(List<int> logLikelihoodRatios, {required int llrWidth, required int maxIterations, int normalizationNumerator = 1, int normalizationShift = 0, int offset = 0}) → LdpcDecodeResult
Decodes quantized two's-complement LLRs with flooding min-sum.
encode(BigInt message) → BigInt
Encodes one systematic message.
extractMessage(BigInt codeword) → BigInt
Extracts systematic message bits from codeword.
isCodeword(BigInt codeword) → bool
Whether codeword satisfies every parity check.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
syndrome(BigInt codeword) → BigInt
Computes the parity-check syndrome of codeword.
toString() → String
A string representation of this object.
inherited

Operators

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