#include <vector.h>
#include <matrix.h>
Include dependency graph for commfunc.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | SPUC |
Functions | |
bmat | SPUC::graycode (int m) |
Generate gray code of blocklength m.
The codes are contained as binary codewords {0,1} in the rows of the returned matrix. See also the | |
int | SPUC::hamming_distance (const bvec &a, const bvec &b) |
Calculate the Hamming distance between a and b. | |
int | SPUC::weight (const bvec &a) |
Calculate the Hamming weight of a. |
2002/12/19 23:56:44