M4RI
20140914
|
Gray codes. More...
#include <graycode.h>
Data Fields | |
int * | ord |
int * | inc |
Gray codes.
A codestruct represents one entry in the code book, i.e. it represents a Gray code of a given length.
For example the Gray code table of length \(2^3\) is:
------------------- | i | ord | inc | ------------------- | 0 | 0 | 0 | | 1 | 4 | 1 | | 2 | 6 | 0 | | 3 | 2 | 2 | | 4 | 3 | 0 | | 5 | 7 | 1 | | 6 | 5 | 0 | | 7 | 1 | 2 | ------------------- *
int* code::inc |
increment
int* code::ord |
array of of Gray code entries