Skip to main content

decode

Function decode 

Source
pub fn decode(coded: &[usize], m: usize) -> Result<Vec<usize>>
Expand description

Differential decoding: the n differences $a_{k} = (c_{k} - c_{k-1}) \bmod M$ of n + 1 phase indices.

§Errors

Error::Config unless m is a power of two ≥ 2 and every index is below m; Error::Shape without a reference symbol (an empty input).