pub fn gray_code(n_bits: u32) -> Result<Vec<usize>>Expand description
The Gray code of every n-bit integer: code[i] = i ⊕ (i >> 1) (comnum_math::gray).
§Errors
Error::Config for more than MAX_GRAY_BITS bits.
pub fn gray_code(n_bits: u32) -> Result<Vec<usize>>The Gray code of every n-bit integer: code[i] = i ⊕ (i >> 1) (comnum_math::gray).
Error::Config for more than MAX_GRAY_BITS bits.