Implementation
4.2. Implementation#
This section provides some notes and a walk-through of the implementation of the codec.
The codec is implemented in the file
src/skecg/cs/codec_b.py.We use
bitarrayfor working with bit arrays efficiently.We use
constrictionfor ANS (Asymmetric Numeral Systems) encoding and decoding.We use
JAXfor most of the numerical computing. This makes the codec portable for GPU hardware.We use
cr-nimblefor some basic array processing, SNR calculation etc.We use
cr-sparsefor compressive sensing and sparse recovery.