load_alist#

sionna.phy.fec.utils.load_alist(path: str) List[List[int]][source]#

Reads an alist file and returns a nested list describing a code’s parity-check matrix.

This function reads a file in alist format [MacKay] and returns a nested list representing the parity-check matrix. Numerous example codes in alist format are available in [UniKL].

Parameters:

path (str) – Path to the alist file to be loaded.

Outputs:

alist – A nested list containing the imported alist data representing the parity-check matrix.

Examples

from sionna.phy.fec.coding import load_alist

alist = load_alist("code.alist")