IT++ Logo
Functions

Functions

template<typename T , typename Ftn >
Vec< T > itpp::apply_functor (Ftn f, const Vec< T > &v)
 Help function to apply function object to Vec<T> More...
 
template<typename T >
Vec< T > itpp::apply_function (T(*f)(T), const Vec< T > &v)
 Help function to call for a function: Vec<T> function(Vec<T>) More...
 
template<typename T >
Vec< T > itpp::apply_function (T(*f)(const T &), const Vec< T > &v)
 Help function to call for a function: Vec<T> function(const Vec<T>&) More...
 
template<typename T , typename Ftn >
Mat< T > itpp::apply_functor (Ftn f, const Mat< T > &m)
 Help function to apply function object to Mat<T> More...
 
template<typename T >
Mat< T > itpp::apply_function (T(*f)(T), const Mat< T > &m)
 Help function to call for a function: Mat<T> function(Mat<T>&) More...
 
template<typename T >
Mat< T > itpp::apply_function (T(*f)(const T &), const Mat< T > &m)
 Help function to call for a function: Mat<T> function(const Mat<T>&) More...
 
template<typename T >
Vec< T > itpp::apply_function (T(*f)(T, T), const T &x, const Vec< T > &v)
 Help function to call for a function: Vec<T> function(T, Vec<T>) More...
 
template<typename T >
Vec< T > itpp::apply_function (T(*f)(const T &, const T &), const T &x, const Vec< T > &v)
 Help function to call for a function: Vec<T> function(const T&, const Vec<T>&) More...
 
template<typename T >
Mat< T > itpp::apply_function (T(*f)(T, T), const T &x, const Mat< T > &m)
 Help function to call for a function: Mat<T> function(T, Mat<T>) More...
 
template<typename T >
Mat< T > itpp::apply_function (T(*f)(const T &, const T &), const T &x, const Mat< T > &m)
 Help function to call for a function: Mat<T> function(const T&, const Mat<T>&) More...
 
template<typename T >
Vec< T > itpp::apply_function (T(*f)(T, T), const Vec< T > &v, const T &x)
 Help function to call for a function: Vec<T> function(Vec<T>, T) More...
 
template<typename T >
Vec< T > itpp::apply_function (T(*f)(const T &, const T &), const Vec< T > &v, const T &x)
 Help function to call for a function: Vec<T> function(const Vec<T>&, const T&) More...
 
template<typename T >
Mat< T > itpp::apply_function (T(*f)(T, T), const Mat< T > &m, const T &x)
 Help function to call for a function: Mat<T> function(Mat<T>, T) More...
 
template<typename T >
Mat< T > itpp::apply_function (T(*f)(const T &, const T &), const Mat< T > &m, const T &x)
 Help function to call for a function: Mat<T> function(const Mat<T>&, const T&) More...
 
ivec itpp::find (const bvec &invector)
 Return a integer vector with indicies where bvec == 1. More...
 
mat itpp::rotation_matrix (int dim, int plane1, int plane2, double angle)
 Create a rotation matrix that rotates the given plane angle radians. Note that the order of the planes are important! More...
 
void itpp::house (const vec &x, vec &v, double &beta)
 Calcualte the Householder vector. More...
 
void itpp::givens (double a, double b, double &c, double &s)
 Calculate the Givens rotation values. More...
 
void itpp::givens (double a, double b, mat &m)
 Calculate the Givens rotation matrix. More...
 
mat itpp::givens (double a, double b)
 Calculate the Givens rotation matrix. More...
 
void itpp::givens_t (double a, double b, mat &m)
 Calculate the transposed Givens rotation matrix. More...
 
mat itpp::givens_t (double a, double b)
 Calculate the transposed Givens rotation matrix. More...
 
double itpp::sqr (double x)
 Square of x. More...
 
double itpp::sqr (const std::complex< double > &x)
 Absolute square of complex-valued x, ||x||^2. More...
 
vec itpp::sqr (const vec &x)
 Square of elements. More...
 
mat itpp::sqr (const mat &x)
 Square of elements. More...
 
vec itpp::sqr (const cvec &x)
 Absolute square of elements. More...
 
mat itpp::sqr (const cmat &x)
 Absolute square of elements. More...
 
vec itpp::abs (const vec &x)
 Absolute value. More...
 
mat itpp::abs (const mat &x)
 Absolute value. More...
 
ivec itpp::abs (const ivec &x)
 Absolute value. More...
 
imat itpp::abs (const imat &x)
 Absolute value. More...
 
vec itpp::abs (const cvec &x)
 Absolute value. More...
 
mat itpp::abs (const cmat &x)
 Absolute value. More...
 
double itpp::sign (double x)
 Signum function. More...
 
vec itpp::sign (const vec &x)
 Signum function. More...
 
mat itpp::sign (const mat &x)
 Signum function. More...
 
double itpp::sgn (double x)
 Signum function. More...
 
vec itpp::sgn (const vec &x)
 Signum function. More...
 
mat itpp::sgn (const mat &x)
 Signum function. More...
 
int itpp::sign_i (int x)
 Signum function. More...
 
ivec itpp::sign_i (const ivec &x)
 Signum function. More...
 
imat itpp::sign_i (const imat &x)
 Signum function. More...
 
int itpp::sgn_i (int x)
 Signum function. More...
 
ivec itpp::sgn_i (const ivec &x)
 Signum function. More...
 
imat itpp::sgn_i (const imat &x)
 Signum function. More...
 
int itpp::sign_i (double x)
 Signum function. More...
 
vec itpp::sqrt (const vec &x)
 Square root of the elements. More...
 
mat itpp::sqrt (const mat &x)
 Square root of the elements. More...
 
double itpp::gamma (double x)
 Deprecated gamma function - please use tgamma() instead. More...
 
vec itpp::gamma (const vec &x)
 Deprecated gamma function for vectors. Will be changed to tgamma(). More...
 
mat itpp::gamma (const mat &x)
 Deprecated gamma function for matrices. Will be changed to tgamma(). More...
 
double itpp::rem (double x, double y)
 The reminder of the division x/y. More...
 
vec itpp::rem (const vec &x, double y)
 Elementwise reminder of the division x/y for vec and double. More...
 
vec itpp::rem (double x, const vec &y)
 Elementwise reminder of the division x/y for double and vec. More...
 
mat itpp::rem (const mat &x, double y)
 Elementwise reminder of the division x/y for mat and double. More...
 
mat itpp::rem (double x, const mat &y)
 Elementwise reminder of the division x/y for double and mat. More...
 
int itpp::mod (int k, int n)
 Calculates the modulus, i.e. the signed reminder after division. More...
 
double itpp::fact (int index)
 Calculates factorial coefficient for index <= 170. More...
 
double itpp::binom (int n, int k)
 Compute the binomial coefficient "n over k". More...
 
int itpp::binom_i (int n, int k)
 Compute the binomial coefficient "n over k". More...
 
double itpp::log_binom (int n, int k)
 Compute the base 10 logarithm of the binomial coefficient "n over k". More...
 
int itpp::gcd (int a, int b)
 Compute the greatest common divisor (GCD) g of the elements a and b. More...
 
vec itpp::real (const cvec &x)
 Real part of complex values. More...
 
mat itpp::real (const cmat &x)
 Real part of complex values. More...
 
vec itpp::imag (const cvec &x)
 Imaginary part of complex values. More...
 
mat itpp::imag (const cmat &x)
 Imaginary part of complex values. More...
 
vec itpp::arg (const cvec &x)
 Argument (angle) More...
 
mat itpp::arg (const cmat &x)
 Argument (angle) More...
 
vec itpp::angle (const cvec &x)
 Angle. More...
 
mat itpp::angle (const cmat &x)
 Angle. More...
 
cvec itpp::conj (const cvec &x)
 Conjugate of complex value. More...
 
cmat itpp::conj (const cmat &x)
 Conjugate of complex value. More...
 
template<class T >
itpp::max (const Vec< T > &v)
 Maximum value of vector. More...
 
template<class T >
itpp::max (const Vec< T > &v, int &index)
 Maximum value of vector, also returns the index position of max value. More...
 
template<class T >
Vec< T > itpp::max (const Mat< T > &m, int dim=1)
 
template<class T >
Vec< T > itpp::max (const Mat< T > &m, ivec &index, int dim=1)
 
template<class T >
itpp::min (const Vec< T > &in)
 Minimum value of vector. More...
 
template<class T >
itpp::min (const Vec< T > &in, int &index)
 Minimum value of vector, also returns the index position of min value. More...
 
template<class T >
Vec< T > itpp::min (const Mat< T > &m, int dim=1)
 
template<class T >
Vec< T > itpp::min (const Mat< T > &m, ivec &index, int dim=1)
 
template<class T >
int itpp::max_index (const Vec< T > &in)
 Return the postion of the maximum element in the vector. More...
 
template<class T >
void itpp::max_index (const Mat< T > &m, int &row, int &col)
 Return the postion of the maximum element in the matrix. More...
 
template<class T >
int itpp::min_index (const Vec< T > &in)
 Return the postion of the minimum element in the vector. More...
 
template<class T >
void itpp::min_index (const Mat< T > &m, int &row, int &col)
 Return the postion of the minimum element in the matrix. More...
 
bool itpp::is_int (double x)
 Return true if x is an integer. More...
 
bool itpp::is_even (int x)
 Return true if x is an even integer. More...
 
std::string itpp::itpp_version ()
 Returns IT++ library version number, e.g. "3.7.1". More...
 
bool itpp::is_bigendian ()
 Returns true if machine endianness is BIG_ENDIAN. More...
 
bool itpp::check_big_endianness ()
 This function is deprecated. Please use is_bigendian() instead. More...
 

Detailed Description

Function Documentation

◆ apply_functor() [1/2]

template<typename T , typename Ftn >
Vec< T > itpp::apply_functor ( Ftn  f,
const Vec< T > &  v 
)
inline

Help function to apply function object to Vec<T>

Definition at line 113 of file help_functions.h.

References itpp::Vec< Num_T >::length().

Referenced by itpp::apply_function().

◆ apply_function() [1/12]

template<typename T >
Vec< T > itpp::apply_function ( T(*)(T)  f,
const Vec< T > &  v 
)
inline

Help function to call for a function: Vec<T> function(Vec<T>)

Definition at line 124 of file help_functions.h.

References itpp::apply_functor().

◆ apply_function() [2/12]

template<typename T >
Vec< T > itpp::apply_function ( T(*)(const T &)  f,
const Vec< T > &  v 
)
inline

Help function to call for a function: Vec<T> function(const Vec<T>&)

Definition at line 131 of file help_functions.h.

References itpp::apply_functor().

◆ apply_functor() [2/2]

template<typename T , typename Ftn >
Mat< T > itpp::apply_functor ( Ftn  f,
const Mat< T > &  m 
)
inline

Help function to apply function object to Mat<T>

Definition at line 138 of file help_functions.h.

References itpp::Mat< Num_T >::cols(), and itpp::Mat< Num_T >::rows().

◆ apply_function() [3/12]

template<typename T >
Mat< T > itpp::apply_function ( T(*)(T)  f,
const Mat< T > &  m 
)
inline

Help function to call for a function: Mat<T> function(Mat<T>&)

Definition at line 150 of file help_functions.h.

References itpp::apply_functor().

◆ apply_function() [4/12]

template<typename T >
Mat< T > itpp::apply_function ( T(*)(const T &)  f,
const Mat< T > &  m 
)
inline

Help function to call for a function: Mat<T> function(const Mat<T>&)

Definition at line 157 of file help_functions.h.

References itpp::apply_functor().

◆ apply_function() [5/12]

template<typename T >
Vec< T > itpp::apply_function ( T(*)(T, T)  f,
const T &  x,
const Vec< T > &  v 
)
inline

Help function to call for a function: Vec<T> function(T, Vec<T>)

Definition at line 164 of file help_functions.h.

References itpp::apply_functor().

◆ apply_function() [6/12]

template<typename T >
Vec< T > itpp::apply_function ( T(*)(const T &, const T &)  f,
const T &  x,
const Vec< T > &  v 
)
inline

Help function to call for a function: Vec<T> function(const T&, const Vec<T>&)

Definition at line 172 of file help_functions.h.

References itpp::apply_functor().

◆ apply_function() [7/12]

template<typename T >
Mat< T > itpp::apply_function ( T(*)(T, T)  f,
const T &  x,
const Mat< T > &  m 
)
inline

Help function to call for a function: Mat<T> function(T, Mat<T>)

Definition at line 180 of file help_functions.h.

References itpp::apply_functor().

◆ apply_function() [8/12]

template<typename T >
Mat< T > itpp::apply_function ( T(*)(const T &, const T &)  f,
const T &  x,
const Mat< T > &  m 
)
inline

Help function to call for a function: Mat<T> function(const T&, const Mat<T>&)

Definition at line 188 of file help_functions.h.

References itpp::apply_functor().

◆ apply_function() [9/12]

template<typename T >
Vec< T > itpp::apply_function ( T(*)(T, T)  f,
const Vec< T > &  v,
const T &  x 
)
inline

Help function to call for a function: Vec<T> function(Vec<T>, T)

Definition at line 196 of file help_functions.h.

References itpp::apply_functor().

◆ apply_function() [10/12]

template<typename T >
Vec< T > itpp::apply_function ( T(*)(const T &, const T &)  f,
const Vec< T > &  v,
const T &  x 
)
inline

Help function to call for a function: Vec<T> function(const Vec<T>&, const T&)

Definition at line 204 of file help_functions.h.

References itpp::apply_functor().

◆ apply_function() [11/12]

template<typename T >
Mat< T > itpp::apply_function ( T(*)(T, T)  f,
const Mat< T > &  m,
const T &  x 
)
inline

Help function to call for a function: Mat<T> function(Mat<T>, T)

Definition at line 212 of file help_functions.h.

References itpp::apply_functor().

◆ apply_function() [12/12]

template<typename T >
Mat< T > itpp::apply_function ( T(*)(const T &, const T &)  f,
const Mat< T > &  m,
const T &  x 
)
inline

Help function to call for a function: Mat<T> function(const Mat<T>&, const T&)

Definition at line 220 of file help_functions.h.

References itpp::apply_functor().

◆ find()

ITPP_EXPORT ivec itpp::find ( const bvec &  invector)

Return a integer vector with indicies where bvec == 1.

Definition at line 40 of file specmat.cpp.

References it_assert.

Referenced by itpp::LDPC_Parity_Unstructured::compute_CR(), itpp::EXIT::extrinsic_mutual_info(), and itpp::roots().

◆ rotation_matrix()

ITPP_EXPORT mat itpp::rotation_matrix ( int  dim,
int  plane1,
int  plane2,
double  angle 
)

Create a rotation matrix that rotates the given plane angle radians. Note that the order of the planes are important!

Definition at line 229 of file specmat.cpp.

References itpp::angle(), itpp::cos(), it_assert, and itpp::sin().

◆ house()

ITPP_EXPORT void itpp::house ( const vec &  x,
vec &  v,
double &  beta 
)

Calcualte the Householder vector.

Definition at line 251 of file specmat.cpp.

References itpp::sqr(), itpp::sqrt(), and itpp::sum().

◆ givens() [1/3]

ITPP_EXPORT void itpp::givens ( double  a,
double  b,
double &  c,
double &  s 
)

Calculate the Givens rotation values.

Definition at line 277 of file specmat.cpp.

References itpp::sqrt().

Referenced by itpp::givens().

◆ givens() [2/3]

ITPP_EXPORT void itpp::givens ( double  a,
double  b,
mat &  m 
)

Calculate the Givens rotation matrix.

Definition at line 299 of file specmat.cpp.

References itpp::sqrt().

◆ givens() [3/3]

ITPP_EXPORT mat itpp::givens ( double  a,
double  b 
)

Calculate the Givens rotation matrix.

Definition at line 329 of file specmat.cpp.

References itpp::givens().

◆ givens_t() [1/2]

ITPP_EXPORT void itpp::givens_t ( double  a,
double  b,
mat &  m 
)

Calculate the transposed Givens rotation matrix.

Definition at line 336 of file specmat.cpp.

References itpp::sqrt().

Referenced by itpp::givens_t().

◆ givens_t() [2/2]

ITPP_EXPORT mat itpp::givens_t ( double  a,
double  b 
)

Calculate the transposed Givens rotation matrix.

Definition at line 366 of file specmat.cpp.

References itpp::givens_t().

◆ sqr() [1/6]

double itpp::sqr ( double  x)
inline

Square of x.

Definition at line 46 of file elem_math.h.

◆ sqr() [2/6]

double itpp::sqr ( const std::complex< double > &  x)
inline

Absolute square of complex-valued x, ||x||^2.

Definition at line 48 of file elem_math.h.

◆ sqr() [3/6]

vec itpp::sqr ( const vec &  x)
inline

Square of elements.

Definition at line 53 of file elem_math.h.

References itpp::sqr().

◆ sqr() [4/6]

mat itpp::sqr ( const mat &  x)
inline

Square of elements.

Definition at line 55 of file elem_math.h.

References itpp::sqr().

◆ sqr() [5/6]

ITPP_EXPORT vec itpp::sqr ( const cvec &  data)

◆ sqr() [6/6]

ITPP_EXPORT mat itpp::sqr ( const cmat &  data)

Absolute square of elements.

Definition at line 44 of file elem_math.cpp.

References itpp::sqr().

◆ abs() [1/6]

vec itpp::abs ( const vec &  x)
inline

Absolute value.

Definition at line 65 of file elem_math.h.

◆ abs() [2/6]

mat itpp::abs ( const mat &  x)
inline

Absolute value.

Definition at line 67 of file elem_math.h.

◆ abs() [3/6]

ivec itpp::abs ( const ivec &  x)
inline

Absolute value.

Definition at line 69 of file elem_math.h.

References std::abs().

◆ abs() [4/6]

imat itpp::abs ( const imat &  x)
inline

Absolute value.

Definition at line 71 of file elem_math.h.

References std::abs().

◆ abs() [5/6]

ITPP_EXPORT vec itpp::abs ( const cvec &  data)

Absolute value.

Definition at line 55 of file elem_math.cpp.

References std::abs().

◆ abs() [6/6]

ITPP_EXPORT mat itpp::abs ( const cmat &  data)

Absolute value.

Definition at line 65 of file elem_math.cpp.

References std::abs().

◆ sign() [1/3]

double itpp::sign ( double  x)
inline

◆ sign() [2/3]

vec itpp::sign ( const vec &  x)
inline

Signum function.

Definition at line 86 of file elem_math.h.

References itpp::sign().

◆ sign() [3/3]

mat itpp::sign ( const mat &  x)
inline

Signum function.

Definition at line 88 of file elem_math.h.

References itpp::sign().

◆ sgn() [1/3]

double itpp::sgn ( double  x)
inline

Signum function.

Definition at line 91 of file elem_math.h.

References itpp::sign().

◆ sgn() [2/3]

vec itpp::sgn ( const vec &  x)
inline

Signum function.

Definition at line 93 of file elem_math.h.

References itpp::sign().

◆ sgn() [3/3]

mat itpp::sgn ( const mat &  x)
inline

Signum function.

Definition at line 95 of file elem_math.h.

References itpp::sign().

◆ sign_i() [1/4]

int itpp::sign_i ( int  x)
inline

Signum function.

Definition at line 98 of file elem_math.h.

Referenced by itpp::sgn_i(), and itpp::sign_i().

◆ sign_i() [2/4]

ivec itpp::sign_i ( const ivec &  x)
inline

Signum function.

Definition at line 103 of file elem_math.h.

References itpp::sign_i().

◆ sign_i() [3/4]

imat itpp::sign_i ( const imat &  x)
inline

Signum function.

Definition at line 105 of file elem_math.h.

References itpp::sign_i().

◆ sgn_i() [1/3]

int itpp::sgn_i ( int  x)
inline

Signum function.

Definition at line 108 of file elem_math.h.

References itpp::sign_i().

◆ sgn_i() [2/3]

ivec itpp::sgn_i ( const ivec &  x)
inline

Signum function.

Definition at line 110 of file elem_math.h.

References itpp::sign_i().

◆ sgn_i() [3/3]

imat itpp::sgn_i ( const imat &  x)
inline

Signum function.

Definition at line 112 of file elem_math.h.

References itpp::sign_i().

◆ sign_i() [4/4]

int itpp::sign_i ( double  x)
inline

Signum function.

Definition at line 115 of file elem_math.h.

◆ sqrt() [1/2]

vec itpp::sqrt ( const vec &  x)
inline

◆ sqrt() [2/2]

mat itpp::sqrt ( const mat &  x)
inline

Square root of the elements.

Definition at line 125 of file elem_math.h.

References itpp::sqrt().

Referenced by itpp::sqrt().

◆ gamma() [1/3]

ITPP_EXPORT double itpp::gamma ( double  x)

Deprecated gamma function - please use tgamma() instead.

Definition at line 79 of file elem_math.cpp.

Referenced by itpp::Rec_Syst_Conv_Code::log_decode(), itpp::Rec_Syst_Conv_Code::log_decode_n2(), and itpp::Rec_Syst_Conv_Code::map_decode().

◆ gamma() [2/3]

ITPP_EXPORT vec itpp::gamma ( const vec &  x)

Deprecated gamma function for vectors. Will be changed to tgamma().

Definition at line 80 of file elem_math.cpp.

◆ gamma() [3/3]

ITPP_EXPORT mat itpp::gamma ( const mat &  x)

Deprecated gamma function for matrices. Will be changed to tgamma().

Definition at line 81 of file elem_math.cpp.

◆ rem() [1/5]

double itpp::rem ( double  x,
double  y 
)
inline

The reminder of the division x/y.

Definition at line 141 of file elem_math.h.

Referenced by itpp::rem().

◆ rem() [2/5]

vec itpp::rem ( const vec &  x,
double  y 
)
inline

Elementwise reminder of the division x/y for vec and double.

Definition at line 143 of file elem_math.h.

References itpp::rem().

◆ rem() [3/5]

vec itpp::rem ( double  x,
const vec &  y 
)
inline

Elementwise reminder of the division x/y for double and vec.

Definition at line 148 of file elem_math.h.

References itpp::rem().

◆ rem() [4/5]

mat itpp::rem ( const mat &  x,
double  y 
)
inline

Elementwise reminder of the division x/y for mat and double.

Definition at line 153 of file elem_math.h.

References itpp::rem().

◆ rem() [5/5]

mat itpp::rem ( double  x,
const mat &  y 
)
inline

Elementwise reminder of the division x/y for double and mat.

Definition at line 158 of file elem_math.h.

References itpp::rem().

◆ mod()

int itpp::mod ( int  k,
int  n 
)
inline

Calculates the modulus, i.e. the signed reminder after division.

Definition at line 166 of file elem_math.h.

References itpp::floor_i().

Referenced by fpica(), and itpp::Turbo_Codec::wcdma_turbo_interleaver_sequence().

◆ fact()

ITPP_EXPORT double itpp::fact ( int  index)

Calculates factorial coefficient for index <= 170.

Definition at line 84 of file elem_math.cpp.

References it_error_if, and itpp::prod().

◆ binom()

ITPP_EXPORT double itpp::binom ( int  n,
int  k 
)

Compute the binomial coefficient "n over k".

Definition at line 95 of file elem_math.cpp.

References it_assert.

◆ binom_i()

ITPP_EXPORT int itpp::binom_i ( int  n,
int  k 
)

Compute the binomial coefficient "n over k".

Definition at line 110 of file elem_math.cpp.

References it_assert.

◆ log_binom()

ITPP_EXPORT double itpp::log_binom ( int  n,
int  k 
)

Compute the base 10 logarithm of the binomial coefficient "n over k".

Definition at line 125 of file elem_math.cpp.

References it_assert, and itpp::log10().

◆ gcd()

ITPP_EXPORT int itpp::gcd ( int  a,
int  b 
)

Compute the greatest common divisor (GCD) g of the elements a and b.

a and b must be non-negative integers. gdc(0, 0) is 0 by convention; all other GCDs are positive integers.

Definition at line 140 of file elem_math.cpp.

References it_assert.

Referenced by itpp::Turbo_Codec::wcdma_turbo_interleaver_sequence().

◆ real() [1/2]

ITPP_EXPORT vec itpp::real ( const cvec &  data)

◆ real() [2/2]

ITPP_EXPORT mat itpp::real ( const cmat &  data)

Real part of complex values.

Definition at line 167 of file elem_math.cpp.

◆ imag() [1/2]

ITPP_EXPORT vec itpp::imag ( const cvec &  data)

◆ imag() [2/2]

ITPP_EXPORT mat itpp::imag ( const cmat &  data)

Imaginary part of complex values.

Definition at line 189 of file elem_math.cpp.

◆ arg() [1/2]

ITPP_EXPORT vec itpp::arg ( const cvec &  data)

Argument (angle)

Definition at line 202 of file elem_math.cpp.

References itpp::arg().

Referenced by itpp::angle(), and itpp::PSK::demodulate_bits().

◆ arg() [2/2]

ITPP_EXPORT mat itpp::arg ( const cmat &  data)

Argument (angle)

Definition at line 212 of file elem_math.cpp.

References itpp::arg().

Referenced by itpp::arg().

◆ angle() [1/2]

vec itpp::angle ( const cvec &  x)
inline

Angle.

Definition at line 218 of file elem_math.h.

References itpp::arg().

Referenced by itpp::rotation_matrix().

◆ angle() [2/2]

mat itpp::angle ( const cmat &  x)
inline

Angle.

Definition at line 220 of file elem_math.h.

References itpp::arg().

◆ conj() [1/2]

cvec itpp::conj ( const cvec &  x)
inline

Conjugate of complex value.

Definition at line 226 of file elem_math.h.

References itpp::conj().

Referenced by itpp::QPSK::demodulate_soft_bits(), itpp::BPSK_c::demodulate_soft_bits(), itpp::polystab(), itpp::toeplitz(), and itpp::xcorr().

◆ conj() [2/2]

cmat itpp::conj ( const cmat &  x)
inline

Conjugate of complex value.

Definition at line 231 of file elem_math.h.

References itpp::conj().

Referenced by itpp::conj().

◆ max() [1/4]

template<class T >
T itpp::max ( const Vec< T > &  v)

Maximum value of vector.

Definition at line 45 of file min_max.h.

References itpp::Vec< Num_T >::length().

Referenced by itpp::Sparse_Vec< T >::add(), itpp::backward_substitution(), itpp::LDPC_Parity_Unstructured::compute_CR(), itpp::Reed_Solomon::decode(), itpp::Convolutional_Code::decode_tail(), itpp::Convolutional_Code::decode_tailbite(), itpp::Convolutional_Code::decode_trunc(), itpp::LDPC_Code::decoder_parameterization(), itpp::PAM_c::demodulate_soft_bits(), itpp::Modulator< T >::demodulate_soft_bits(), itpp::LDPC_Parity::display_stats(), itpp::EXIT::extrinsic_mutual_info(), itpp::TDL_Channel::filter_known_channel(), itpp::freqz(), itpp::GF2mat_sparse_alist::from_sparse(), itpp::Fix_Base::get_max(), itpp::Uniform_RNG::get_setup(), itpp::I_Uniform_RNG::get_setup(), getSamples(), itpp::GF2mat::GF2mat(), itpp::random_details::hash_time_to_seed(), itpp::I_Uniform_RNG::I_Uniform_RNG(), itpp::Rec_Syst_Conv_Code::log_decode(), itpp::Rec_Syst_Conv_Code::log_decode_n2(), itpp::max(), itpp::MOG_diag_EM_sup::ml_iterate(), itpp::norm(), orth(), itpp::Newton_Search::search(), itpp::Line_Search::search(), itpp::Sparse_Vec< T >::set(), itpp::Modulator< T >::set(), itpp::ARMA_Filter< T1, T2, T3 >::set_coeffs(), itpp::Sparse_Vec< T >::set_new(), itpp::Uniform_RNG::setup(), itpp::I_Uniform_RNG::setup(), itpp::LDPC_Code::setup_decoder(), itpp::MOG_generic::setup_misc(), itpp::snd_read(), itpp::snd_read_channel(), itpp::trunc_exp(), itpp::Uniform_RNG::Uniform_RNG(), itpp::within_tolerance(), itpp::SND_Out_File::write(), itpp::SND_IO_File::write(), itpp::SND_Out_File::write_channel(), itpp::SND_IO_File::write_channel(), itpp::SND_Out_File::write_sample(), itpp::SND_IO_File::write_sample(), itpp::xcorr(), and itpp::xcorr_old().

◆ max() [2/4]

template<class T >
T itpp::max ( const Vec< T > &  v,
int &  index 
)

Maximum value of vector, also returns the index position of max value.

Definition at line 56 of file min_max.h.

References itpp::Vec< Num_T >::length().

◆ max() [3/4]

template<class T >
Vec< T > itpp::max ( const Mat< T > &  m,
int  dim = 1 
)

Maximum values over each row/column in the matrix m

max(m) = max(m, 1) returns a vector where the elements are maximum over each column, whereas max(m, 2) returns a vector where the elements are maximum over each row.

Definition at line 76 of file min_max.h.

References itpp::Mat< Num_T >::cols(), itpp::Mat< Num_T >::get_col(), itpp::Mat< Num_T >::get_row(), it_assert, itpp::max(), itpp::Mat< Num_T >::rows(), and itpp::Vec< Num_T >::set_size().

◆ max() [4/4]

template<class T >
Vec< T > itpp::max ( const Mat< T > &  m,
ivec &  index,
int  dim = 1 
)

Maximum values over each row/column in the matrix m

max(m) = max(m, 1) returns a vector where the elements are maximum over each column, whereas max(m, 2) returns a vector where the elements are maximum over each row.

Also returns a vector of indices with positions of maximum value within a column/row.

Definition at line 104 of file min_max.h.

References itpp::Mat< Num_T >::cols(), itpp::Mat< Num_T >::get_col(), itpp::Mat< Num_T >::get_row(), it_assert, itpp::max(), itpp::Mat< Num_T >::rows(), and itpp::Vec< Num_T >::set_size().

◆ min() [1/4]

template<class T >
T itpp::min ( const Vec< T > &  in)

◆ min() [2/4]

template<class T >
T itpp::min ( const Vec< T > &  in,
int &  index 
)

Minimum value of vector, also returns the index position of min value.

Definition at line 136 of file min_max.h.

References itpp::Vec< Num_T >::length().

◆ min() [3/4]

template<class T >
Vec< T > itpp::min ( const Mat< T > &  m,
int  dim = 1 
)

Minimum values over each row/column in the matrix m

min(m) = min(m, 1) returns a vector where the elements are minimum over each column, whereas min(m, 2) returns a vector where the elements are minimum over each row.

Definition at line 157 of file min_max.h.

References itpp::Mat< Num_T >::cols(), itpp::Mat< Num_T >::get_col(), itpp::Mat< Num_T >::get_row(), it_assert, itpp::min(), itpp::Mat< Num_T >::rows(), and itpp::Vec< Num_T >::set_size().

◆ min() [4/4]

template<class T >
Vec< T > itpp::min ( const Mat< T > &  m,
ivec &  index,
int  dim = 1 
)

Minimum values over each row/column in the matrix m

min(m) = min(m, 1) returns a vector where the elements are minimum over each column, whereas min(m, 2) returns a vector where the elements are minimum over each row.

Also returns a vector of indices with positions of minimum value within a column/row.

Definition at line 186 of file min_max.h.

References itpp::Mat< Num_T >::cols(), itpp::Mat< Num_T >::get_col(), itpp::Mat< Num_T >::get_row(), it_assert, itpp::min(), itpp::Mat< Num_T >::rows(), and itpp::Vec< Num_T >::set_size().

◆ max_index() [1/2]

template<class T >
int itpp::max_index ( const Vec< T > &  in)

Return the postion of the maximum element in the vector.

Definition at line 208 of file min_max.h.

References itpp::Vec< Num_T >::length().

Referenced by itpp::Fast_ICA::separate().

◆ max_index() [2/2]

template<class T >
void itpp::max_index ( const Mat< T > &  m,
int &  row,
int &  col 
)

Return the postion of the maximum element in the matrix.

Definition at line 219 of file min_max.h.

References itpp::Mat< Num_T >::cols(), and itpp::Mat< Num_T >::rows().

◆ min_index() [1/2]

template<class T >
int itpp::min_index ( const Vec< T > &  in)

Return the postion of the minimum element in the vector.

Definition at line 234 of file min_max.h.

References itpp::Vec< Num_T >::length().

Referenced by itpp::Convolutional_Code::decode_trunc().

◆ min_index() [2/2]

template<class T >
void itpp::min_index ( const Mat< T > &  m,
int &  row,
int &  col 
)

Return the postion of the minimum element in the matrix.

Definition at line 245 of file min_max.h.

References itpp::Mat< Num_T >::cols(), and itpp::Mat< Num_T >::rows().

◆ is_int()

bool itpp::is_int ( double  x)
inline

Return true if x is an integer.

Definition at line 115 of file misc.h.

◆ is_even()

bool itpp::is_even ( int  x)
inline

◆ itpp_version()

ITPP_EXPORT std::string itpp::itpp_version ( void  )

Returns IT++ library version number, e.g. "3.7.1".

Definition at line 41 of file misc.cpp.

◆ is_bigendian()

ITPP_EXPORT bool itpp::is_bigendian ( )

Returns true if machine endianness is BIG_ENDIAN.

Definition at line 50 of file misc.cpp.

Referenced by itpp::check_big_endianness().

◆ check_big_endianness()

bool itpp::check_big_endianness ( )
inline

This function is deprecated. Please use is_bigendian() instead.

Definition at line 131 of file misc.h.

References itpp::is_bigendian().

SourceForge Logo

Generated on Sun Jun 5 2022 21:26:42 for IT++ by Doxygen 1.9.3