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> | |
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>) | |
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>&) | |
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> | |
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>&) | |
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>&) | |
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>) | |
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>&) | |
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>) | |
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>&) | |
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) | |
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&) | |
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) | |
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&) | |
ivec | itpp::find (const bvec &invector) |
Return a integer vector with indicies where bvec == 1. | |
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! | |
void | itpp::house (const vec &x, vec &v, double &beta) |
Calcualte the Householder vector. | |
void | itpp::givens (double a, double b, double &c, double &s) |
Calculate the Givens rotation values. | |
void | itpp::givens (double a, double b, mat &m) |
Calculate the Givens rotation matrix. | |
mat | itpp::givens (double a, double b) |
Calculate the Givens rotation matrix. | |
void | itpp::givens_t (double a, double b, mat &m) |
Calculate the transposed Givens rotation matrix. | |
mat | itpp::givens_t (double a, double b) |
Calculate the transposed Givens rotation matrix. | |
double | itpp::sqr (double x) |
Square of x. | |
double | itpp::sqr (const std::complex< double > &x) |
Absolute square of complex-valued x, ||x||^2. | |
vec | itpp::sqr (const vec &x) |
Square of elements. | |
mat | itpp::sqr (const mat &x) |
Square of elements. | |
vec | itpp::sqr (const cvec &x) |
Absolute square of elements. | |
mat | itpp::sqr (const cmat &x) |
Absolute square of elements. | |
vec | itpp::abs (const vec &x) |
Absolute value. | |
mat | itpp::abs (const mat &x) |
Absolute value. | |
ivec | itpp::abs (const ivec &x) |
Absolute value. | |
imat | itpp::abs (const imat &x) |
Absolute value. | |
vec | itpp::abs (const cvec &x) |
Absolute value. | |
mat | itpp::abs (const cmat &x) |
Absolute value. | |
double | itpp::sign (double x) |
Signum function. | |
vec | itpp::sign (const vec &x) |
Signum function. | |
mat | itpp::sign (const mat &x) |
Signum function. | |
double | itpp::sgn (double x) |
Signum function. | |
vec | itpp::sgn (const vec &x) |
Signum function. | |
mat | itpp::sgn (const mat &x) |
Signum function. | |
int | itpp::sign_i (int x) |
Signum function. | |
ivec | itpp::sign_i (const ivec &x) |
Signum function. | |
imat | itpp::sign_i (const imat &x) |
Signum function. | |
int | itpp::sgn_i (int x) |
Signum function. | |
ivec | itpp::sgn_i (const ivec &x) |
Signum function. | |
imat | itpp::sgn_i (const imat &x) |
Signum function. | |
int | itpp::sign_i (double x) |
Signum function. | |
vec | itpp::sqrt (const vec &x) |
Square root of the elements. | |
mat | itpp::sqrt (const mat &x) |
Square root of the elements. | |
double | itpp::gamma (double x) |
Deprecated gamma function - please use tgamma() instead. | |
vec | itpp::gamma (const vec &x) |
Deprecated gamma function for vectors. Will be changed to tgamma(). | |
mat | itpp::gamma (const mat &x) |
Deprecated gamma function for matrices. Will be changed to tgamma(). | |
double | itpp::rem (double x, double y) |
The reminder of the division x/y. | |
vec | itpp::rem (const vec &x, double y) |
Elementwise reminder of the division x/y for vec and double. | |
vec | itpp::rem (double x, const vec &y) |
Elementwise reminder of the division x/y for double and vec. | |
mat | itpp::rem (const mat &x, double y) |
Elementwise reminder of the division x/y for mat and double. | |
mat | itpp::rem (double x, const mat &y) |
Elementwise reminder of the division x/y for double and mat. | |
int | itpp::mod (int k, int n) |
Calculates the modulus, i.e. the signed reminder after division. | |
double | itpp::fact (int index) |
Calculates factorial coefficient for index <= 170. | |
double | itpp::binom (int n, int k) |
Compute the binomial coefficient "n over k". | |
int | itpp::binom_i (int n, int k) |
Compute the binomial coefficient "n over k". | |
double | itpp::log_binom (int n, int k) |
Compute the base 10 logarithm of the binomial coefficient "n over k". | |
int | itpp::gcd (int a, int b) |
Compute the greatest common divisor (GCD) g of the elements a and b. | |
vec | itpp::real (const cvec &x) |
Real part of complex values. | |
mat | itpp::real (const cmat &x) |
Real part of complex values. | |
vec | itpp::imag (const cvec &x) |
Imaginary part of complex values. | |
mat | itpp::imag (const cmat &x) |
Imaginary part of complex values. | |
vec | itpp::arg (const cvec &x) |
Argument (angle) | |
mat | itpp::arg (const cmat &x) |
Argument (angle) | |
vec | itpp::angle (const cvec &x) |
Angle. | |
mat | itpp::angle (const cmat &x) |
Angle. | |
cvec | itpp::conj (const cvec &x) |
Conjugate of complex value. | |
cmat | itpp::conj (const cmat &x) |
Conjugate of complex value. | |
template<class T > | |
T | itpp::max (const Vec< T > &v) |
Maximum value of vector. | |
template<class T > | |
T | itpp::max (const Vec< T > &v, int &index) |
Maximum value of vector, also returns the index position of max value. | |
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 > | |
T | itpp::min (const Vec< T > &in) |
Minimum value of vector. | |
template<class T > | |
T | itpp::min (const Vec< T > &in, int &index) |
Minimum value of vector, also returns the index position of min value. | |
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. | |
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. | |
template<class T > | |
int | itpp::min_index (const Vec< T > &in) |
Return the postion of the minimum element in the vector. | |
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. | |
bool | itpp::is_int (double x) |
Return true if x is an integer. | |
bool | itpp::is_even (int x) |
Return true if x is an even integer. | |
std::string | itpp::itpp_version () |
Returns IT++ library version number, e.g. "3.7.1". | |
bool | itpp::is_bigendian () |
Returns true if machine endianness is BIG_ENDIAN. | |
bool | itpp::check_big_endianness () |
This function is deprecated. Please use is_bigendian() instead. | |
|
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(), itpp::apply_function(), itpp::apply_function(), itpp::apply_function(), itpp::apply_function(), itpp::apply_function(), itpp::apply_function(), itpp::apply_function(), itpp::apply_function(), itpp::apply_function(), itpp::apply_function(), itpp::apply_function(), itpp::quad(), and itpp::quadl().
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().
Referenced by itpp::abs(), itpp::abs(), itpp::abs(), itpp::abs(), itpp::acos(), itpp::acos(), itpp::acosh(), itpp::acosh(), itpp::asin(), itpp::asin(), itpp::asinh(), itpp::asinh(), itpp::atan(), itpp::atan(), itpp::atanh(), itpp::atanh(), itpp::ceil(), itpp::ceil(), itpp::conj(), itpp::conj(), itpp::cos(), itpp::cos(), itpp::cosh(), itpp::cosh(), itpp::dB(), itpp::dB(), itpp::erf(), itpp::erf(), itpp::erf(), itpp::erf(), itpp::erfc(), itpp::erfc(), itpp::erfinv(), itpp::erfinv(), itpp::exp(), itpp::exp(), itpp::exp(), itpp::exp(), itpp::floor(), itpp::floor(), itpp::gamma(), itpp::gamma(), itpp::int2bits(), itpp::inv_dB(), itpp::inv_dB(), itpp::levels2bits(), itpp::log(), itpp::log(), itpp::log(), itpp::log(), itpp::log10(), itpp::log10(), itpp::log2(), itpp::log2(), itpp::logb(), itpp::logb(), itpp::pow(), itpp::pow(), itpp::pow(), itpp::pow(), itpp::pow10(), itpp::pow10(), itpp::pow2(), itpp::pow2(), itpp::Qfunc(), itpp::Qfunc(), itpp::rem(), itpp::rem(), itpp::rem(), itpp::rem(), itpp::round_to_infty(), itpp::round_to_infty(), itpp::round_to_zero(), itpp::round_to_zero(), itpp::sgn(), itpp::sgn(), itpp::sgn_i(), itpp::sgn_i(), itpp::sign(), itpp::sign(), itpp::sign_i(), itpp::sign_i(), itpp::sin(), itpp::sin(), itpp::sinc(), itpp::sinc(), itpp::sinh(), itpp::sinh(), itpp::sqr(), itpp::sqr(), itpp::sqrt(), itpp::sqrt(), itpp::tan(), itpp::tan(), itpp::tanh(), and itpp::tanh().
|
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().
|
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().
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
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().
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(), and it_assert.
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(), and itpp::sum().
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.
Referenced by itpp::givens().
ITPP_EXPORT void itpp::givens | ( | double | a, |
double | b, | ||
mat & | m ) |
Calculate the Givens rotation matrix.
Definition at line 299 of file specmat.cpp.
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().
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.
Referenced by itpp::givens_t().
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().
|
inline |
Square of x.
Definition at line 46 of file elem_math.h.
|
inline |
Absolute square of complex-valued x, ||x||^2.
Definition at line 48 of file elem_math.h.
|
inline |
Square of elements.
Definition at line 53 of file elem_math.h.
References itpp::apply_function(), and itpp::sqr().
|
inline |
Square of elements.
Definition at line 55 of file elem_math.h.
References itpp::apply_function(), and itpp::sqr().
ITPP_EXPORT vec itpp::sqr | ( | const cvec & | data | ) |
Absolute square of elements.
Definition at line 36 of file elem_math.cpp.
References itpp::sqr().
Referenced by itpp::TDL_Channel::calc_mean_excess_delay(), itpp::Channel_Specification::calc_rms_delay_spread(), itpp::TDL_Channel::calc_rms_delay_spread(), itpp::Modulator< T >::demodulate_soft_bits(), itpp::Modulator< T >::demodulate_soft_bits(), itpp::Modulator_NCD::demodulate_soft_bits(), itpp::Modulator_NRD::demodulate_soft_bits(), itpp::PAM_c::demodulate_soft_bits(), itpp::PAM_c::demodulate_soft_bits(), itpp::TDL_Channel::discretize(), itpp::energy(), itpp::filter_design_autocorrelation(), itpp::filter_spectrum(), itpp::filter_spectrum(), itpp::AWGN_Channel::get_noise(), itpp::house(), itpp::norm(), itpp::norm(), itpp::Line_Search::search(), itpp::Channel_Specification::set_channel_profile(), itpp::PAM::set_M(), itpp::PAM_c::set_M(), itpp::Raised_Cosine< T1 >::set_pulse_shape(), itpp::Root_Raised_Cosine< T1 >::set_pulse_shape(), itpp::spectrum(), itpp::spectrum(), itpp::sqr(), itpp::sqr(), itpp::sqr(), and itpp::sqr().
ITPP_EXPORT mat itpp::sqr | ( | const cmat & | data | ) |
|
inline |
|
inline |
|
inline |
Absolute value.
Definition at line 69 of file elem_math.h.
References std::abs(), and itpp::apply_function().
|
inline |
Absolute value.
Definition at line 71 of file elem_math.h.
References std::abs(), and itpp::apply_function().
ITPP_EXPORT vec itpp::abs | ( | const cvec & | data | ) |
ITPP_EXPORT mat itpp::abs | ( | const cmat & | data | ) |
|
inline |
Signum function.
Definition at line 81 of file elem_math.h.
Referenced by itpp::alaw_compress(), itpp::erfinv(), itpp::quadl(), itpp::Normal_RNG::sample(), itpp::sgn(), itpp::sgn(), itpp::sgn(), itpp::sign(), itpp::sign(), and itpp::ulaw_compress().
|
inline |
Signum function.
Definition at line 86 of file elem_math.h.
References itpp::apply_function(), and itpp::sign().
|
inline |
Signum function.
Definition at line 88 of file elem_math.h.
References itpp::apply_function(), and itpp::sign().
|
inline |
|
inline |
Signum function.
Definition at line 93 of file elem_math.h.
References itpp::apply_function(), and itpp::sign().
|
inline |
Signum function.
Definition at line 95 of file elem_math.h.
References itpp::apply_function(), and itpp::sign().
|
inline |
Signum function.
Definition at line 98 of file elem_math.h.
Referenced by itpp::sgn_i(), itpp::sgn_i(), itpp::sgn_i(), itpp::sign_i(), and itpp::sign_i().
|
inline |
Signum function.
Definition at line 103 of file elem_math.h.
References itpp::apply_function(), and itpp::sign_i().
|
inline |
Signum function.
Definition at line 105 of file elem_math.h.
References itpp::apply_function(), and itpp::sign_i().
|
inline |
|
inline |
Signum function.
Definition at line 110 of file elem_math.h.
References itpp::apply_function(), and itpp::sign_i().
|
inline |
Signum function.
Definition at line 112 of file elem_math.h.
References itpp::apply_function(), and itpp::sign_i().
|
inline |
Signum function.
Definition at line 115 of file elem_math.h.
|
inline |
Square root of the elements.
Definition at line 123 of file elem_math.h.
References itpp::apply_function().
Referenced by itpp::AWGN_Channel::AWGN_Channel(), itpp::Complex_Normal_RNG::Complex_Normal_RNG(), itpp::Complex_Normal_RNG::Complex_Normal_RNG(), itpp::TDL_Channel::discretize(), and itpp::Normal_RNG::Normal_RNG().
|
inline |
Square root of the elements.
Definition at line 125 of file elem_math.h.
References itpp::apply_function().
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().
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.
References itpp::apply_function().
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.
References itpp::apply_function().
|
inline |
The reminder of the division x/y.
Definition at line 141 of file elem_math.h.
Referenced by itpp::rem(), itpp::rem(), itpp::rem(), and itpp::rem().
|
inline |
Elementwise reminder of the division x/y for vec and double.
Definition at line 143 of file elem_math.h.
References itpp::apply_function(), and itpp::rem().
|
inline |
Elementwise reminder of the division x/y for double and vec.
Definition at line 148 of file elem_math.h.
References itpp::apply_function(), and itpp::rem().
|
inline |
Elementwise reminder of the division x/y for mat and double.
Definition at line 153 of file elem_math.h.
References itpp::apply_function(), and itpp::rem().
|
inline |
Elementwise reminder of the division x/y for double and mat.
Definition at line 158 of file elem_math.h.
References itpp::apply_function(), and itpp::rem().
|
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().
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().
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.
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.
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().
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().
ITPP_EXPORT vec itpp::real | ( | const cvec & | data | ) |
Real part of complex values.
Definition at line 157 of file elem_math.cpp.
References itpp::real().
Referenced by itpp::arma_estimator(), itpp::CFix::CFix(), itpp::Modulator_NCD::demodulate_soft_bits(), itpp::Multicode_Spread_2d::despread(), itpp::Spread_2d::despread(), itpp::it_file::low_level_write(), itpp::it_file::low_level_write(), itpp::it_file::low_level_write(), itpp::it_file_old::low_level_write(), itpp::it_file_old::low_level_write(), itpp::it_file_old::low_level_write(), itpp::Vec< Num_T >::operator-(), itpp::CFixed< w, e, o, q >::operator=(), itpp::polystab(), itpp::real(), itpp::CFix::set(), itpp::CFix::set(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::Multicode_Spread_2d::spread(), itpp::Spread_2d::spread(), itpp::to(), itpp::to(), itpp::to(), itpp::to(), itpp::to(), itpp::Mat< Num_T >::to_cmat(), itpp::Vec< Num_T >::to_cvec(), itpp::xcorr(), itpp::xcorr(), and itpp::xcorr().
ITPP_EXPORT mat itpp::real | ( | const cmat & | data | ) |
Real part of complex values.
Definition at line 167 of file elem_math.cpp.
ITPP_EXPORT vec itpp::imag | ( | const cvec & | data | ) |
Imaginary part of complex values.
Definition at line 180 of file elem_math.cpp.
References itpp::imag().
Referenced by itpp::CFix::CFix(), itpp::Multicode_Spread_2d::despread(), itpp::Spread_2d::despread(), itpp::imag(), itpp::it_file::low_level_write(), itpp::it_file::low_level_write(), itpp::it_file::low_level_write(), itpp::it_file_old::low_level_write(), itpp::it_file_old::low_level_write(), itpp::it_file_old::low_level_write(), itpp::Vec< Num_T >::operator-(), itpp::CFixed< w, e, o, q >::operator=(), itpp::CFix::set(), itpp::CFix::set(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::Multicode_Spread_2d::spread(), itpp::Spread_2d::spread(), itpp::to(), itpp::to(), itpp::to(), itpp::to(), itpp::to(), itpp::Mat< Num_T >::to_cmat(), and itpp::Vec< Num_T >::to_cvec().
ITPP_EXPORT mat itpp::imag | ( | const cmat & | data | ) |
Imaginary part of complex values.
Definition at line 189 of file elem_math.cpp.
ITPP_EXPORT vec itpp::arg | ( | const cvec & | data | ) |
Argument (angle)
Definition at line 202 of file elem_math.cpp.
Referenced by itpp::angle(), and itpp::angle().
ITPP_EXPORT mat itpp::arg | ( | const cmat & | data | ) |
Argument (angle)
Definition at line 212 of file elem_math.cpp.
|
inline |
Angle.
Definition at line 218 of file elem_math.h.
References itpp::arg().
Referenced by itpp::rotation_matrix().
|
inline |
|
inline |
Conjugate of complex value.
Definition at line 226 of file elem_math.h.
References itpp::apply_function().
Referenced by itpp::polystab(), itpp::polystab(), itpp::toeplitz(), and itpp::xcorr().
|
inline |
Conjugate of complex value.
Definition at line 231 of file elem_math.h.
References itpp::apply_function().
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::LDPC_Parity_Unstructured::compute_CR(), itpp::Reed_Solomon::decode(), itpp::LDPC_Code::decoder_parameterization(), itpp::LDPC_Parity::display_stats(), itpp::EXIT::extrinsic_mutual_info(), itpp::TDL_Channel::filter_known_channel(), itpp::TDL_Channel::filter_known_channel(), itpp::GF2mat_sparse_alist::from_sparse(), itpp::Fix_Base::get_max(), itpp::I_Uniform_RNG::get_setup(), itpp::Uniform_RNG::get_setup(), getSamples(), itpp::GF2mat::GF2mat(), 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::max(), itpp::norm(), itpp::norm(), orth(), itpp::Newton_Search::search(), itpp::Modulator< T >::set(), itpp::Sparse_Vec< T >::set(), itpp::Sparse_Vec< T >::set_new(), itpp::I_Uniform_RNG::setup(), itpp::Uniform_RNG::setup(), itpp::LDPC_Code::setup_decoder(), itpp::Uniform_RNG::Uniform_RNG(), itpp::within_tolerance(), itpp::within_tolerance(), itpp::within_tolerance(), and itpp::within_tolerance().
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().
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().
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().
T itpp::min | ( | const Vec< T > & | in | ) |
Minimum value of vector.
Definition at line 125 of file min_max.h.
References itpp::Vec< Num_T >::length().
Referenced by itpp::EXIT::extrinsic_mutual_info(), fpica(), itpp::Fix_Base::get_min(), itpp::I_Uniform_RNG::get_setup(), itpp::Uniform_RNG::get_setup(), itpp::GF2mat::GF2mat(), itpp::I_Uniform_RNG::I_Uniform_RNG(), itpp::min(), itpp::min(), itpp::Modulator< T >::set(), itpp::Channel_Specification::set_channel_profile(), itpp::TDL_Channel::set_channel_profile(), itpp::ACK_Channel::set_errors(), itpp::Packet_Channel::set_errors(), itpp::Array< T >::set_size(), itpp::Stack< T >::set_size(), itpp::Vec< Num_T >::set_size(), itpp::I_Uniform_RNG::setup(), itpp::Uniform_RNG::setup(), and itpp::Uniform_RNG::Uniform_RNG().
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().
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().
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().
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().
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().
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().
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().
|
inline |
|
inline |
Return true if x is an even integer.
Definition at line 122 of file misc.h.
Referenced by itpp::cheb(), itpp::chebwin(), itpp::Modulator< T >::set(), itpp::ND_UQAM::set_constellation_points(), itpp::QAM::set_M(), itpp::Raised_Cosine< T1 >::set_pulse_shape(), and itpp::Root_Raised_Cosine< T1 >::set_pulse_shape().
ITPP_EXPORT std::string itpp::itpp_version | ( | void | ) |
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().
|
inline |
This function is deprecated. Please use is_bigendian() instead.
Definition at line 131 of file misc.h.
References itpp::is_bigendian().
Generated on Tue Dec 10 2024 04:49:37 for IT++ by Doxygen 1.12.0