commfunc.h
Go to the documentation of this file.
#ifndef COMMFUNC_H
#define COMMFUNC_H
#include <itpp/base/mat.h>
#include <itpp/base/vec.h>
#include <itpp/itexports.h>
namespace itpp
{
ITPP_EXPORT bmat graycode(int m);
ITPP_EXPORT int hamming_distance(const bvec &a, const bvec &b);
ITPP_EXPORT int weight(const bvec &a);
ITPP_EXPORT vec waterfilling(const vec& alpha, double P);
} // namespace itpp
#endif // #ifndef COMMFUNC_H
itpp::waterfilling
vec waterfilling(const vec &alpha, double P)
Compute the water-filling solution.
Definition commfunc.cpp:82
itpp::weight
int weight(const bvec &a)
Calculate the Hamming weight of a.
Definition commfunc.cpp:71
itpp::graycode
bmat graycode(int m)
Generate Gray code of blocklength m.
Definition commfunc.cpp:39
itpp::hamming_distance
int hamming_distance(const bvec &a, const bvec &b)
Calculate the Hamming distance between a and b.
Definition commfunc.cpp:59
mat.h
Matrix Class Definitions.
bmat
Mat< bin > bmat
bin matrix
Definition mat.h:508
itpp
itpp namespace
Definition itmex.h:37
vec.h
Templated Vector Class Definitions.

Generated on for IT++ by Doxygen 1.15.0