#include "commfunc.h"
#include <specmat.h>
#include <matfunc.h>
#include <binary.h>
Include dependency graph for commfunc.cpp:
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. |
2001/12/03 19:37:13