M4RI  20140914
Data Fields
code Struct Reference

Gray codes. More...

#include <graycode.h>

Data Fields

int * ord
 
int * inc
 

Detailed Description

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  |
-------------------
 * 

Field Documentation

int* code::inc

increment

int* code::ord

array of of Gray code entries


The documentation for this struct was generated from the following file: