nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
arithcoding.hpp File Reference
#include <cstddef>
#include <memory_resource>
#include <nk/value/value.hpp>

Go to the source code of this file.

Functions

Value nk::comm::arithenco (const Value &seq, const Value &counts, std::pmr::memory_resource *mr=nullptr)
 Arithmetic-encode a symbol sequence (code = arithenco(seq, counts)).
Value nk::comm::arithdeco (const Value &code, const Value &counts, std::size_t len, std::pmr::memory_resource *mr=nullptr)
 Invert arithenco (seq = arithdeco(code, counts, len)).