IT++
4.3.1
Toggle main menu visibility
itpp
comm
commfunc.h
Go to the documentation of this file.
1
28
29
#ifndef COMMFUNC_H
30
#define COMMFUNC_H
31
32
#include <
itpp/base/mat.h
>
33
#include <
itpp/base/vec.h
>
34
#include <itpp/itexports.h>
35
36
namespace
itpp
37
{
38
47
ITPP_EXPORT
bmat
graycode
(
int
m);
48
53
ITPP_EXPORT
int
hamming_distance
(
const
bvec &a,
const
bvec &b);
54
59
ITPP_EXPORT
int
weight
(
const
bvec &a);
60
81
ITPP_EXPORT vec
waterfilling
(
const
vec& alpha,
double
P);
82
83
}
// namespace itpp
84
85
#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 by
1.17.0