Elementary mathematical functions - header file. More...
#include <itpp/base/help_functions.h>
#include <itpp/base/converters.h>
#include <cstdlib>
#include <itpp/itexports.h>
Go to the source code of this file.
Namespaces | |
namespace | itpp |
itpp namespace | |
Functions | |
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. | |
Elementary mathematical functions - header file.
Copyright (C) 1995-2010 (see AUTHORS file for a list of contributors)
This file is part of IT++ - a C++ library of mathematical, signal processing, speech processing, and communications classes and functions.
IT++ is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
IT++ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with IT++. If not, see http://www.gnu.org/licenses/.
Definition in file elem_math.h.
Generated on Sat Jul 6 2013 10:54:26 for IT++ by Doxygen 1.8.2