IT++ Logo Newcom Logo

Logarithmic and Exponential Functions


Functions

vec itpp::exp (const vec &x)
 Exp of the elements.
cvec itpp::exp (const cvec &x)
 Exp of cvec.
mat itpp::exp (const mat &x)
 Exp of the elements.
cmat itpp::exp (const cmat &x)
 Exp of cmat.
vec itpp::pow (const double x, const vec &y)
 Calculates x to the power of y (x^y).
mat itpp::pow (const double x, const mat &y)
 Calculates x to the power of y (x^y).
vec itpp::pow (const vec &x, const double y)
 Calculates x to the power of y (x^y).
mat itpp::pow (const mat &x, const double y)
 Calculates x to the power of y (x^y).
vec itpp::pow2 (const vec &x)
 Calculates two to the power of x (2^x).
mat itpp::pow2 (const mat &x)
 Calculates two to the power of x (2^x).
vec itpp::pow10 (const vec &x)
 Calculates ten to the power of x (10^x).
mat itpp::pow10 (const mat &x)
 Calculates ten to the power of x (10^x).
vec itpp::log (const vec &x)
 The natural logarithm of the elements.
mat itpp::log (const mat &x)
 The natural logarithm of the elements.
cvec itpp::log (const cvec &x)
 The natural logarithm of the elements.
cmat itpp::log (const cmat &x)
 The natural logarithm of the elements.
vec itpp::log2 (const vec &x)
 log-2 of the elements
mat itpp::log2 (const mat &x)
 log-2 of the elements
vec itpp::log10 (const vec &x)
 log-10 of the elements
mat itpp::log10 (const mat &x)
 log-10 of the elements
vec itpp::logb (const short b, const vec &x)
 log-b of x
mat itpp::logb (const short b, const mat &x)
 log-b of x
vec itpp::dB (const vec &x)
 Calculates 10*log10(x).
mat itpp::dB (const mat &x)
 Calculates 10*log10(x).
vec itpp::inv_dB (const vec &x)
 Calulates the inverse of dB, 10^(x/10).
mat itpp::inv_dB (const mat &x)
 Calculates the inverse of dB, 10^(x/10).
double itpp::log2 (double x)
 Base-2 logarithm.
double itpp::logb (double b, double x)
 Base-b logarithm.
int itpp::int2bits (int n)
 Calculate the number of bits needed to represent an inteager n.
int itpp::levels2bits (int n)
 Calculate the number of bits needed to represent n different values (levels).
int itpp::needed_bits (int n)
 Deprecated function. Might be removed in future releases. Please use int2bits() or levels2bits() instead.
int itpp::needed_bits (double n)
 Deprecated function. Might be removed in future releases. Please use int2bits() or levels2bits() instead.
int itpp::pow2i (int x)
 Integer 2^x.
int itpp::pow2 (int x)
 Calculate two to the power of x (2^x).
double itpp::pow2 (double x)
 Calculate two to the power of x (2^x).
double itpp::pow10 (double x)
 Calculate ten to the power of x (10^x).
double itpp::dB (double x)
 Decibel of x (10*log10(x)).
double itpp::inv_dB (double x)
 Inverse of decibel.

Function Documentation

vec exp const vec &  x  )  [inline]
 

Exp of the elements.

Definition at line 60 of file elmatfunc.h.

References itpp::vec_function().

Referenced by itpp::TCP_Receiver_Buffer::info().

cvec exp const cvec &  x  )  [inline]
 

Exp of cvec.

Definition at line 62 of file elmatfunc.h.

References itpp::cvec_function().

mat exp const mat &  x  )  [inline]
 

Exp of the elements.

Definition at line 65 of file elmatfunc.h.

References itpp::mat_function().

cmat exp const cmat &  x  )  [inline]
 

Exp of cmat.

Definition at line 67 of file elmatfunc.h.

References itpp::cmat_function().

Referenced by itpp::arma_estimator(), itpp::QAM::demodulate_soft_bits(), itpp::PSK::demodulate_soft_bits(), itpp::PAM::demodulate_soft_bits(), itpp::Modulator_2d::demodulate_soft_bits(), itpp::geometric_mean(), itpp::lar2rc(), and tgamma().

vec pow const double  x,
const vec &  y
[inline]
 

Calculates x to the power of y (x^y).

Definition at line 69 of file elmatfunc.h.

References itpp::double_vec_function().

mat pow const double  x,
const mat &  y
[inline]
 

Calculates x to the power of y (x^y).

Definition at line 72 of file elmatfunc.h.

References itpp::double_mat_function().

vec pow const vec &  x,
const double  y
[inline]
 

Calculates x to the power of y (x^y).

Definition at line 75 of file elmatfunc.h.

References itpp::vec_double_function().

mat pow const mat &  x,
const double  y
[inline]
 

Calculates x to the power of y (x^y).

Definition at line 78 of file elmatfunc.h.

References itpp::mat_double_function().

Referenced by itpp::inv_dB(), itpp::moment(), itpp::norm(), itpp::pow10(), itpp::pow2(), and itpp::skewness().

vec pow2 const vec &  x  )  [inline]
 

Calculates two to the power of x (2^x).

Definition at line 81 of file elmatfunc.h.

References itpp::vec_function().

mat pow2 const mat &  x  )  [inline]
 

Calculates two to the power of x (2^x).

Definition at line 84 of file elmatfunc.h.

References itpp::mat_function().

vec pow10 const vec &  x  )  [inline]
 

Calculates ten to the power of x (10^x).

Definition at line 87 of file elmatfunc.h.

References itpp::vec_function().

mat pow10 const mat &  x  )  [inline]
 

Calculates ten to the power of x (10^x).

Definition at line 90 of file elmatfunc.h.

References itpp::mat_function().

vec log const vec &  x  )  [inline]
 

The natural logarithm of the elements.

Definition at line 94 of file elmatfunc.h.

References itpp::vec_function().

mat log const mat &  x  )  [inline]
 

The natural logarithm of the elements.

Definition at line 96 of file elmatfunc.h.

References itpp::mat_function().

cvec log const cvec &  x  )  [inline]
 

The natural logarithm of the elements.

Definition at line 98 of file elmatfunc.h.

References itpp::cvec_function().

cmat log const cmat &  x  )  [inline]
 

The natural logarithm of the elements.

Definition at line 100 of file elmatfunc.h.

References itpp::cmat_function().

Referenced by acosh(), itpp::arma_estimator(), asinh(), atanh(), itpp::erfinv(), lgamma(), itpp::log2(), itpp::logb(), itpp::rc2lar(), itpp::Laplace_RNG::sample(), itpp::Rec_Syst_Conv_Code::set_generator_polynomials(), and tgamma().

vec log2 const vec &  x  )  [inline]
 

log-2 of the elements

Definition at line 104 of file elmatfunc.h.

References itpp::vec_function().

mat log2 const mat &  x  )  [inline]
 

log-2 of the elements

Definition at line 106 of file elmatfunc.h.

References itpp::mat_function().

vec log10 const vec &  x  )  [inline]
 

log-10 of the elements

Definition at line 109 of file elmatfunc.h.

References itpp::vec_function().

mat log10 const mat &  x  )  [inline]
 

log-10 of the elements

Definition at line 111 of file elmatfunc.h.

References itpp::mat_function().

Referenced by itpp::dB(), itpp::log_binom(), itpp::sd(), and itpp::vqtrain().

vec logb const short  b,
const vec &  x
[inline]
 

log-b of x

Definition at line 113 of file elmatfunc.h.

References itpp::double_vec_function().

mat logb const short  b,
const mat &  x
[inline]
 

log-b of x

Definition at line 115 of file elmatfunc.h.

References itpp::double_mat_function().

vec dB const vec &  x  )  [inline]
 

Calculates 10*log10(x).

Definition at line 118 of file elmatfunc.h.

References itpp::vec_function().

mat dB const mat &  x  )  [inline]
 

Calculates 10*log10(x).

Definition at line 120 of file elmatfunc.h.

References itpp::mat_function().

vec inv_dB const vec &  x  )  [inline]
 

Calulates the inverse of dB, 10^(x/10).

Definition at line 122 of file elmatfunc.h.

References itpp::vec_function().

mat inv_dB const mat &  x  )  [inline]
 

Calculates the inverse of dB, 10^(x/10).

Definition at line 124 of file elmatfunc.h.

References itpp::mat_function().

double log2 double  x  )  [inline]
 

Base-2 logarithm.

Definition at line 214 of file scalfunc.h.

References itpp::log().

Referenced by itpp::hadamard(), itpp::needed_bits(), itpp::Modulator_1d::set(), itpp::ND_UPAM::set_Gray_PAM(), itpp::ND_UPSK::set_Gray_PSK(), itpp::ND_UQAM::set_Gray_QAM(), itpp::QAM::set_M(), itpp::PSK::set_M(), itpp::PAM::set_M(), itpp::GF::set_size(), and itpp::xcorr().

double logb double  b,
double  x
[inline]
 

Base-b logarithm.

Definition at line 220 of file scalfunc.h.

References itpp::log().

int int2bits int  n  )  [inline]
 

Calculate the number of bits needed to represent an inteager n.

Definition at line 257 of file scalfunc.h.

References it_assert.

Referenced by itpp::dec2bin(), itpp::levels2bits(), and itpp::needed_bits().

int levels2bits int  n  )  [inline]
 

Calculate the number of bits needed to represent n different values (levels).

Definition at line 273 of file scalfunc.h.

References itpp::int2bits(), and it_assert.

Referenced by itpp::dht(), itpp::Vector_Quantizer::nobits(), itpp::self_dht(), itpp::Modulator_2d::set(), itpp::ND_UQAM::set_Gray_QAM(), itpp::spectrum(), and itpp::zero_pad().

int needed_bits int  n  )  [inline]
 

Deprecated function. Might be removed in future releases. Please use int2bits() or levels2bits() instead.

Definition at line 280 of file scalfunc.h.

References itpp::int2bits(), and it_warning.

int needed_bits double  n  )  [inline]
 

Deprecated function. Might be removed in future releases. Please use int2bits() or levels2bits() instead.

Definition at line 287 of file scalfunc.h.

References itpp::ceil_i(), it_assert, it_warning, and itpp::log2().

int pow2i int  x  )  [inline]
 

Integer 2^x.

Definition at line 295 of file scalfunc.h.

Referenced by itpp::bin2dec(), itpp::Convolutional_Code::calc_metric(), itpp::Gold::Gold(), itpp::hadamard(), itpp::Hamming_Code::Hamming_Code(), itpp::pow2(), itpp::Reed_Solomon::Reed_Solomon(), itpp::Convolutional_Code::set_generator_polynomials(), itpp::QAM::set_M(), itpp::PSK::set_M(), itpp::PAM::set_M(), itpp::spectrum(), itpp::xcorr(), and itpp::zero_pad().

int pow2 int  x  )  [inline]
 

Calculate two to the power of x (2^x).

Definition at line 297 of file scalfunc.h.

References itpp::pow2i().

double pow2 double  x  )  [inline]
 

Calculate two to the power of x (2^x).

Definition at line 300 of file scalfunc.h.

References itpp::pow().

double pow10 double  x  )  [inline]
 

Calculate ten to the power of x (10^x).

Definition at line 302 of file scalfunc.h.

References itpp::pow().

double dB double  x  )  [inline]
 

Decibel of x (10*log10(x)).

Definition at line 305 of file scalfunc.h.

References itpp::log10().

double inv_dB double  x  )  [inline]
 

Inverse of decibel.

Definition at line 307 of file scalfunc.h.

References itpp::pow().

SourceForge Logo

Generated on Fri Jan 11 08:51:41 2008 for IT++ by Doxygen 1.3.9.1