34 #include <itpp/itexports.h>
59 ITPP_EXPORT
int weight(
const bvec &a);
81 ITPP_EXPORT vec
waterfilling(
const vec& alpha,
double P);
vec waterfilling(const vec &alpha, double P)
Compute the water-filling solution.
int weight(const bvec &a)
Calculate the Hamming weight of a.
bmat graycode(int m)
Generate Gray code of blocklength m.
int hamming_distance(const bvec &a, const bvec &b)
Calculate the Hamming distance between a and b.
Matrix Class Definitions.
Mat< bin > bmat
bin matrix
Templated Vector Class Definitions.