QcLdpcCode class
A quasi-cyclic LDPC descriptor expanded from circulant shift values.
A base-matrix entry of -1 creates an all-zero submatrix. A non-negative
entry shift creates a liftingSize identity matrix whose set bit in local
row r is at column (r + shift) mod liftingSize.
parityBlockColumns, when supplied, must contain one base-matrix column per base row. Every bit column in those blocks becomes a parity column. Omitting it lets LdpcCode choose independent parity columns automatically.
Constructors
Properties
- baseColumnCount → int
-
Number of columns in baseMatrix.
no setter
- baseConnectionCount → int
-
Number of non-zero circulant blocks in baseMatrix.
no setter
-
baseMatrix
→ List<
List< int> > -
Immutable quasi-cyclic base matrix.
final
- baseRowCount → int
-
Number of rows in baseMatrix.
no setter
-
checkDegrees
→ List<
int> -
Number of variable neighbors for each parity check.
latefinalinherited
-
checkEdges
↔ List<
List< int> > -
Edge indices incident on each parity check.
latefinalinherited
- configurationSignature → String
-
Stable matrix and layout signature for generated definition names.
no setterinherited
- density → double
-
Fraction of parity-check matrix entries that are set.
no setterinherited
- edgeCount → int
-
Number of Tanner-graph edges.
no setterinherited
-
edges
↔ List<
LdpcEdge> -
Tanner-graph edges in check-major, variable-minor order.
latefinalinherited
- generatorMatrix ↔ BinaryMatrix
-
Constant systematic transform from message bits to codeword bits.
latefinalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
Number of codeword bits.
no setterinherited
- liftingSize → int
-
Circulant dimension.
final
- messageBits → int
-
Number of systematic message bits.
no setterinherited
-
messageColumns
↔ List<
int> -
Codeword columns carrying message bits, in message-bit order.
latefinalinherited
- parityBits → int
-
Number of independent parity checks and parity bits.
no setterinherited
-
parityBlockColumns
→ List<
int> -
Configured parity-block columns, or empty when selected automatically.
final
- parityCheckMatrix → BinaryMatrix
-
Binary parity-check matrix.
finalinherited
-
parityColumns
→ List<
int> -
Codeword columns solved as parity during systematic encoding.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
variableDegrees
→ List<
int> -
Number of check neighbors for each codeword variable.
latefinalinherited
-
variableEdges
↔ List<
List< int> > -
Edge indices incident on each codeword variable.
latefinalinherited
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.
inherited
-
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.
inherited
-
encode(
BigInt message) → BigInt -
Encodes one systematic message.
inherited
-
extractMessage(
BigInt codeword) → BigInt -
Extracts systematic message bits from
codeword.inherited -
isCodeword(
BigInt codeword) → bool -
Whether
codewordsatisfies every parity check.inherited -
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.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited