IT++ Logo Newcom Logo

elmatfunc.h File Reference

Definitions of elementary functions on vectors and matrices. More...

#include <itpp/base/help_functions.h>
#include <itpp/base/converters.h>

Go to the source code of this file.

Namespaces

namespace  itpp

Functions

itpp::vec itpp::gamma (const itpp::vec &x)
 The gamma function.
itpp::mat itpp::gamma (const itpp::mat &x)
 The gamma function.
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).
vec itpp::erf (const vec &x)
 Error function.
mat itpp::erf (const mat &x)
 Error function.
cvec itpp::erf (const cvec &x)
 Error function.
cmat itpp::erf (const cmat &x)
 Error function.
vec itpp::erfinv (const vec &x)
 Inverse of error function.
mat itpp::erfinv (const mat &x)
 Inverse of error function.
vec itpp::erfc (const vec &x)
 Complementary error function.
mat itpp::erfc (const mat &x)
 Complementary error function.
vec itpp::Qfunc (const vec &x)
 Q-function.
mat itpp::Qfunc (const mat &x)
 Q-function.
vec itpp::sin (const vec &x)
 Sine function.
mat itpp::sin (const mat &x)
 Sine function.
vec itpp::cos (const vec &x)
 Cosine function.
mat itpp::cos (const mat &x)
 Cosine function.
vec itpp::tan (const vec &x)
 Tan function.
mat itpp::tan (const mat &x)
 Tan function.
vec itpp::asin (const vec &x)
 Inverse sine function.
mat itpp::asin (const mat &x)
 Inverse sine function.
vec itpp::acos (const vec &x)
 Inverse cosine function.
mat itpp::acos (const mat &x)
 Inverse cosine function.
vec itpp::atan (const vec &x)
 Inverse tan function.
mat itpp::atan (const mat &x)
 Inverse tan function.
vec itpp::sinc (const vec &x)
 Sinc function, sin(pi*x)/(pi*x).
mat itpp::sinc (const mat &x)
 Sinc function, sin(pi*x)/(pi*x).
vec itpp::sinh (const vec &x)
 Sine hyperbolic function.
mat itpp::sinh (const mat &x)
 Sine hyperbolic function.
vec itpp::cosh (const vec &x)
 Cosine hyperbolic function.
mat itpp::cosh (const mat &x)
 Cosine hyperbolic function.
vec itpp::tanh (const vec &x)
 Tan hyperbolic function.
mat itpp::tanh (const mat &x)
 Tan hyperbolic function.
vec itpp::asinh (const vec &x)
 Inverse sine hyperbolic function.
mat itpp::asinh (const mat &x)
 Inverse sine hyperbolic function.
vec itpp::acosh (const vec &x)
 Inverse cosine hyperbolic function.
mat itpp::acosh (const mat &x)
 Inverse cosine hyperbolic function.
vec itpp::atanh (const vec &x)
 Inverse tan hyperbolic function.
mat itpp::atanh (const mat &x)
 Inverse tan hyperbolic function.
vec itpp::ceil (const vec &x)
 Round to nearest upper integer.
mat itpp::ceil (const mat &x)
 Round to nearest upper integer.
vec itpp::floor (const vec &x)
 Round to nearest lower integer.
mat itpp::floor (const mat &x)
 Round to nearest lower integer.
vec itpp::round (const vec &x)
 Round to nearest integer.
mat itpp::round (const mat &x)
 Round to nearest integer.
ivec itpp::round_i (const vec &x)
 Round to nearest integer and return ivec.
imat itpp::round_i (const mat &x)
 Round to nearest integer and return imat.
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::sqr (const vec &x)
 Square of elements.
mat itpp::sqr (const mat &x)
 Square of elements.
vec itpp::sqr (const cvec &x)
 Square of elements.
mat itpp::sqr (const cmat &x)
 Square of elements.
vec itpp::sign (const vec &x)
 Signum function.
mat itpp::sign (const mat &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.
vec itpp::rem (const vec &x, const double &y)
 Elementwise reminder of the division x/y for vec and double.
vec itpp::rem (const double &x, const vec &y)
 Elementwise reminder of the division x/y for double and vec.
mat itpp::rem (const mat &x, const double &y)
 Elementwise reminder of the division x/y for mat and double.
mat itpp::rem (const double &x, const mat &y)
 Elementwise reminder of the division x/y for double and mat.
vec itpp::abs (const cvec &x)
 Absolute value.
mat itpp::abs (const cmat &x)
 Absolute value.
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.
bool itpp::all (const Vec< bin > &testvec)
 Returns true if all elements are ones and false otherwise.
bool itpp::any (const Vec< bin > &testvec)
 Returns true if any element is one and false otherwise.
vec itpp::round_to_zero (const vec &x, double threshold=1e-14)
 Round each element to zero if element < threshold.
mat itpp::round_to_zero (const mat &x, double threshold=1e-14)
 Round each element to zero if element < threshold.
cvec itpp::round_to_zero (const cvec &x, double threshold=1e-14)
 Round each element to zero if element < threshold.
cmat itpp::round_to_zero (const cmat &x, double threshold=1e-14)
 Round each element to zero if element < threshold.


Detailed Description

Definitions of elementary functions on vectors and matrices.

Author:
Tony Ottosson
Date
2006-07-12 11:31:45 +0200 (śro, 12 lip 2006)
Revision
523

-------------------------------------------------------------------------

IT++ - C++ library of mathematical, signal processing, speech processing, and communications classes and functions

Copyright (C) 1995-2006 (see AUTHORS file for a list of contributors)

This program 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 2 of the License, or (at your option) any later version.

This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

-------------------------------------------------------------------------

Definition in file elmatfunc.h.

SourceForge Logo

Generated on Wed Apr 18 11:23:34 2007 for IT++ by Doxygen 1.5.2