IT++ Logo Newcom Logo

matfunc.cpp File Reference

Implementation of functions on vectors and matrices. More...

#include <itpp/base/matfunc.h>
#include <itpp/base/schur.h>
#include <itpp/base/converters.h>
#include <limits>

Go to the source code of this file.

Namespaces

namespace  itpp

Functions

cmat itpp::sqrtm (const mat &A)
 Square root of the real square matrix A.
cmat itpp::sqrtm (const cmat &A)
 Square root of the complex square matrix A.
template int itpp::length (const vec &v)
 Extern Template instantiation of length.
template int itpp::length (const cvec &v)
 Extern Template instantiation of length.
template int itpp::length (const svec &v)
 Extern Template instantiation of length.
template int itpp::length (const ivec &v)
 Extern Template instantiation of length.
template int itpp::length (const bvec &v)
 Extern Template instantiation of length.
template double itpp::sum (const vec &v)
 Extern Template instantiation of sum.
template
std::complex< double > 
itpp::sum (const cvec &v)
 Extern Template instantiation of sum.
template short itpp::sum (const svec &v)
 Extern Template instantiation of sum.
template int itpp::sum (const ivec &v)
 Extern Template instantiation of sum.
template bin itpp::sum (const bvec &v)
 Extern Template instantiation of sum.
template double itpp::sum_sqr (const vec &v)
 Extern Template instantiation of sum_sqr.
template
std::complex< double > 
itpp::sum_sqr (const cvec &v)
 Extern Template instantiation of sum_sqr.
template short itpp::sum_sqr (const svec &v)
 Extern Template instantiation of sum_sqr.
template int itpp::sum_sqr (const ivec &v)
 Extern Template instantiation of sum_sqr.
template bin itpp::sum_sqr (const bvec &v)
 Extern Template instantiation of sum_sqr.
template vec itpp::cumsum (const vec &v)
 Extern Template instantiation of cumsum.
template cvec itpp::cumsum (const cvec &v)
 Extern Template instantiation of cumsum.
template svec itpp::cumsum (const svec &v)
 Extern Template instantiation of cumsum.
template ivec itpp::cumsum (const ivec &v)
 Extern Template instantiation of cumsum.
template bvec itpp::cumsum (const bvec &v)
 Extern Template instantiation of cumsum.
template double itpp::prod (const vec &v)
 Extern Template instantiation of product.
template
std::complex< double > 
itpp::prod (const cvec &v)
 Extern Template instantiation of product.
template short itpp::prod (const svec &v)
 Extern Template instantiation of product.
template int itpp::prod (const ivec &v)
 Extern Template instantiation of product.
template bin itpp::prod (const bvec &v)
 Extern Template instantiation of product.
template vec itpp::cross (const vec &v1, const vec &v2)
 Extern Template instantiation of cross.
template ivec itpp::cross (const ivec &v1, const ivec &v2)
 Extern Template instantiation of cross.
template svec itpp::cross (const svec &v1, const svec &v2)
 Extern Template instantiation of cross.
template vec itpp::reverse (const vec &in)
 Extern Template instantiation of reverse.
template cvec itpp::reverse (const cvec &in)
 Extern Template instantiation of reverse.
template svec itpp::reverse (const svec &in)
 Extern Template instantiation of reverse.
template ivec itpp::reverse (const ivec &in)
 Extern Template instantiation of reverse.
template bvec itpp::reverse (const bvec &in)
 Extern Template instantiation of reverse.
template vec itpp::repeat (const vec &v, int norepeats)
 Extern Template instantiation of repeat.
template cvec itpp::repeat (const cvec &v, int norepeats)
 Extern Template instantiation of repeat.
template svec itpp::repeat (const svec &v, int norepeats)
 Extern Template instantiation of repeat.
template ivec itpp::repeat (const ivec &v, int norepeats)
 Extern Template instantiation of repeat.
template bvec itpp::repeat (const bvec &v, int norepeats)
 Extern Template instantiation of repeat.
template vec itpp::apply_function (float(*f)(float), const vec &data)
 Extern Template instantiation of apply_function.
template vec itpp::apply_function (double(*f)(double), const vec &data)
 Extern Template instantiation of apply_function.
template cvec itpp::apply_function (std::complex< double >(*f)(std::complex< double >), const cvec &data)
 Extern Template instantiation of apply_function.
template svec itpp::apply_function (short(*f)(short), const svec &data)
 Extern Template instantiation of apply_function.
template ivec itpp::apply_function (int(*f)(int), const ivec &data)
 Extern Template instantiation of apply_function.
template bvec itpp::apply_function (bin(*f)(bin), const bvec &data)
 Extern Template instantiation of apply_function.
template ivec itpp::zero_pad (const ivec &v, int n)
 Extern Template instantiation of zero_pad.
template vec itpp::zero_pad (const vec &v, int n)
 Extern Template instantiation of zero_pad.
template cvec itpp::zero_pad (const cvec &v, int n)
 Extern Template instantiation of zero_pad.
template bvec itpp::zero_pad (const bvec &v, int n)
 Extern Template instantiation of zero_pad.
template ivec itpp::zero_pad (const ivec &v)
 Extern Template instantiation of zero_pad.
template vec itpp::zero_pad (const vec &v)
 Extern Template instantiation of zero_pad.
template cvec itpp::zero_pad (const cvec &v)
 Extern Template instantiation of zero_pad.
template bvec itpp::zero_pad (const bvec &v)
 Extern Template instantiation of zero_pad.
template mat itpp::zero_pad (const mat &, int, int)
 Extern Template instantiation of zero_pad.
template cmat itpp::zero_pad (const cmat &, int, int)
 Extern Template instantiation of zero_pad.
template imat itpp::zero_pad (const imat &, int, int)
 Extern Template instantiation of zero_pad.
template bmat itpp::zero_pad (const bmat &, int, int)
 Extern Template instantiation of zero_pad.
template vec itpp::sum (const mat &m, int dim)
 Extern Template instantiation of sum.
template cvec itpp::sum (const cmat &m, int dim)
 Extern Template instantiation of sum.
template svec itpp::sum (const smat &m, int dim)
 Extern Template instantiation of sum.
template ivec itpp::sum (const imat &m, int dim)
 Extern Template instantiation of sum.
template bvec itpp::sum (const bmat &m, int dim)
 Extern Template instantiation of sum.
template vec itpp::sum_sqr (const mat &m, int dim)
 Extern Template instantiation of sum_sqr.
template cvec itpp::sum_sqr (const cmat &m, int dim)
 Extern Template instantiation of sum_sqr.
template svec itpp::sum_sqr (const smat &m, int dim)
 Extern Template instantiation of sum_sqr.
template ivec itpp::sum_sqr (const imat &m, int dim)
 Extern Template instantiation of sum_sqr.
template bvec itpp::sum_sqr (const bmat &m, int dim)
 Extern Template instantiation of sum_sqr.
template mat itpp::cumsum (const mat &m, int dim)
 Extern Template instantiation of cumsum.
template cmat itpp::cumsum (const cmat &m, int dim)
 Extern Template instantiation of cumsum.
template smat itpp::cumsum (const smat &m, int dim)
 Extern Template instantiation of cumsum.
template imat itpp::cumsum (const imat &m, int dim)
 Extern Template instantiation of cumsum.
template bmat itpp::cumsum (const bmat &m, int dim)
 Extern Template instantiation of cumsum.
template vec itpp::prod (const mat &m, int dim)
 Extern Template instantiation of product.
template cvec itpp::prod (const cmat &v, int dim)
template svec itpp::prod (const smat &m, int dim)
 Extern Template instantiation of product.
template ivec itpp::prod (const imat &m, int dim)
 Extern Template instantiation of product.
template vec itpp::diag (const mat &in)
 Extern Template instantiation of diag.
template cvec itpp::diag (const cmat &in)
 Extern Template instantiation of diag.
template void itpp::diag (const vec &in, mat &m)
 Extern Template instantiation of diag.
template void itpp::diag (const cvec &in, cmat &m)
 Extern Template instantiation of diag.
template mat itpp::diag (const vec &v, const int K)
 Extern Template instantiation of diag.
template cmat itpp::diag (const cvec &v, const int K)
 Extern Template instantiation of diag.
template mat itpp::bidiag (const vec &, const vec &)
 Extern Template instantiation of bidiag.
template cmat itpp::bidiag (const cvec &, const cvec &)
 Extern Template instantiation of bidiag.
template void itpp::bidiag (const vec &, const vec &, mat &)
 Extern Template instantiation of bidiag.
template void itpp::bidiag (const cvec &, const cvec &, cmat &)
 Extern Template instantiation of bidiag.
template void itpp::bidiag (const mat &, vec &, vec &)
 Extern Template instantiation of bidiag.
template void itpp::bidiag (const cmat &, cvec &, cvec &)
 Extern Template instantiation of bidiag.
template mat itpp::tridiag (const vec &main, const vec &, const vec &)
 Extern Template instantiation of tridiag.
template cmat itpp::tridiag (const cvec &main, const cvec &, const cvec &)
 Extern Template instantiation of tridiag.
template void itpp::tridiag (const vec &main, const vec &, const vec &, mat &)
 Extern Template instantiation of tridiag.
template void itpp::tridiag (const cvec &main, const cvec &, const cvec &, cmat &)
 Extern Template instantiation of tridiag.
template void itpp::tridiag (const mat &m, vec &, vec &, vec &)
 Extern Template instantiation of tridiag.
template void itpp::tridiag (const cmat &m, cvec &, cvec &, cvec &)
 Extern Template instantiation of tridiag.
template double itpp::trace (const mat &in)
 Extern Template instantiation of trace.
template
std::complex< double > 
itpp::trace (const cmat &in)
 Extern Template instantiation of trace.
template short itpp::trace (const smat &in)
 Extern Template instantiation of trace.
template int itpp::trace (const imat &in)
 Extern Template instantiation of trace.
template bin itpp::trace (const bmat &in)
 Extern Template instantiation of trace.
template void itpp::transpose (const mat &m, mat &out)
 Extern Template instantiation of transpose.
template void itpp::transpose (const cmat &m, cmat &out)
 Extern Template instantiation of transpose.
template void itpp::transpose (const smat &m, smat &out)
 Extern Template instantiation of transpose.
template void itpp::transpose (const imat &m, imat &out)
 Extern Template instantiation of transpose.
template void itpp::transpose (const bmat &m, bmat &out)
 Extern Template instantiation of transpose.
template mat itpp::transpose (const mat &m)
 Extern Template instantiation of transpose.
template cmat itpp::transpose (const cmat &m)
 Extern Template instantiation of transpose.
template smat itpp::transpose (const smat &m)
 Extern Template instantiation of transpose.
template imat itpp::transpose (const imat &m)
 Extern Template instantiation of transpose.
template bmat itpp::transpose (const bmat &m)
 Extern Template instantiation of transpose.
template void itpp::hermitian_transpose (const mat &m, mat &out)
 Extern Template instantiation of hermitian transpose.
template void itpp::hermitian_transpose (const cmat &m, cmat &out)
 Extern Template instantiation of hermitian transpose.
template void itpp::hermitian_transpose (const smat &m, smat &out)
 Extern Template instantiation of hermitian transpose.
template void itpp::hermitian_transpose (const imat &m, imat &out)
 Extern Template instantiation of hermitian transpose.
template void itpp::hermitian_transpose (const bmat &m, bmat &out)
 Extern Template instantiation of hermitian transpose.
template mat itpp::hermitian_transpose (const mat &m)
 Extern Template instantiation of hermitian transpose.
template cmat itpp::hermitian_transpose (const cmat &m)
 Extern Template instantiation of hermitian transpose.
template smat itpp::hermitian_transpose (const smat &m)
 Extern Template instantiation of hermitian transpose.
template imat itpp::hermitian_transpose (const imat &m)
 Extern Template instantiation of hermitian transpose.
template bmat itpp::hermitian_transpose (const bmat &m)
 Extern Template instantiation of hermitian transpose.
template mat itpp::repeat (const mat &m, int norepeats)
 Extern Template instantiation of repeat.
template cmat itpp::repeat (const cmat &m, int norepeats)
 Extern Template instantiation of repeat.
template smat itpp::repeat (const smat &m, int norepeats)
 Extern Template instantiation of repeat.
template imat itpp::repeat (const imat &m, int norepeats)
 Extern Template instantiation of repeat.
template bmat itpp::repeat (const bmat &m, int norepeats)
 Extern Template instantiation of repeat.
template mat itpp::apply_function (float(*f)(float), const mat &data)
 Extern Template instantiation of apply_function.
template mat itpp::apply_function (double(*f)(double), const mat &data)
 Extern Template instantiation of apply_function.
template cmat itpp::apply_function (std::complex< double >(*f)(std::complex< double >), const cmat &data)
 Extern Template instantiation of apply_function.
template smat itpp::apply_function (short(*f)(short), const smat &data)
 Extern Template instantiation of apply_function.
template imat itpp::apply_function (int(*f)(int), const imat &data)
 Extern Template instantiation of apply_function.
template bmat itpp::apply_function (bin(*f)(bin), const bmat &data)
 Extern Template instantiation of apply_function.
template vec itpp::rvectorize (const mat &m)
 Extern Template instantiation of rvectorize.
template cvec itpp::rvectorize (const cmat &m)
 Extern Template instantiation of rvectorize.
template ivec itpp::rvectorize (const imat &m)
 Extern Template instantiation of rvectorize.
template bvec itpp::rvectorize (const bmat &m)
 Extern Template instantiation of rvectorize.
template vec itpp::cvectorize (const mat &m)
 Extern Template instantiation of cvectorize.
template cvec itpp::cvectorize (const cmat &m)
 Extern Template instantiation of cvectorize.
template ivec itpp::cvectorize (const imat &m)
 Extern Template instantiation of cvectorize.
template bvec itpp::cvectorize (const bmat &m)
 Extern Template instantiation of cvectorize.
template mat itpp::reshape (const mat &m, int rows, int cols)
 Extern Template instantiation of reshape.
template cmat itpp::reshape (const cmat &m, int rows, int cols)
 Extern Template instantiation of reshape.
template imat itpp::reshape (const imat &m, int rows, int cols)
 Extern Template instantiation of reshape.
template bmat itpp::reshape (const bmat &m, int rows, int cols)
 Extern Template instantiation of reshape.
template mat itpp::reshape (const vec &m, int rows, int cols)
 Extern Template instantiation of reshape.
template cmat itpp::reshape (const cvec &m, int rows, int cols)
 Extern Template instantiation of reshape.
template imat itpp::reshape (const ivec &m, int rows, int cols)
 Extern Template instantiation of reshape.
template bmat itpp::reshape (const bvec &m, int rows, int cols)
 Extern Template instantiation of reshape.
template vec itpp::upsample (const vec &v, int usf)
 Extern Template instantiation of upsample.
template cvec itpp::upsample (const cvec &v, int usf)
 Extern Template instantiation of upsample.
template svec itpp::upsample (const svec &v, int usf)
 Extern Template instantiation of upsample.
template ivec itpp::upsample (const ivec &v, int usf)
 Extern Template instantiation of upsample.
template bvec itpp::upsample (const bvec &v, int usf)
 Extern Template instantiation of upsample.
template mat itpp::upsample (const mat &v, int usf)
 Extern Template instantiation of upsample.
template cmat itpp::upsample (const cmat &v, int usf)
 Extern Template instantiation of upsample.
template smat itpp::upsample (const smat &v, int usf)
 Extern Template instantiation of upsample.
template imat itpp::upsample (const imat &v, int usf)
 Extern Template instantiation of upsample.
template bmat itpp::upsample (const bmat &v, int usf)
 Extern Template instantiation of upsample.
template void itpp::upsample (const vec &v, int usf, vec &u)
 Extern Template instantiation of upsample.
template void itpp::upsample (const cvec &v, int usf, cvec &u)
 Extern Template instantiation of upsample.
template void itpp::upsample (const svec &v, int usf, svec &u)
 Extern Template instantiation of upsample.
template void itpp::upsample (const ivec &v, int usf, ivec &u)
 Extern Template instantiation of upsample.
template void itpp::upsample (const bvec &v, int usf, bvec &u)
 Extern Template instantiation of upsample.
template void itpp::upsample (const mat &v, int usf, mat &u)
 Extern Template instantiation of upsample.
template void itpp::upsample (const cmat &v, int usf, cmat &u)
 Extern Template instantiation of upsample.
template void itpp::upsample (const smat &v, int usf, smat &u)
 Extern Template instantiation of upsample.
template void itpp::upsample (const imat &v, int usf, imat &u)
 Extern Template instantiation of upsample.
template void itpp::upsample (const bmat &v, int usf, bmat &u)
 Extern Template instantiation of upsample.
template vec itpp::lininterp (const vec &v, int usf)
 Extern Template instantiation of liniterp.
template cvec itpp::lininterp (const cvec &v, int usf)
 Extern Template instantiation of liniterp.
template mat itpp::lininterp (const mat &v, int usf)
 Extern Template instantiation of liniterp.
template cmat itpp::lininterp (const cmat &v, int usf)
 Extern Template instantiation of liniterp.
template void itpp::lininterp (const vec &v, int usf, vec &u)
 Extern Template instantiation of liniterp.
template void itpp::lininterp (const cvec &v, int usf, cvec &u)
 Extern Template instantiation of liniterp.
template void itpp::lininterp (const mat &v, int usf, mat &u)
 Extern Template instantiation of liniterp.
template void itpp::lininterp (const cmat &v, int usf, cmat &u)
 Extern Template instantiation of liniterp.
template mat itpp::lininterp (const mat &m, const double f_base, const double f_ups, const int nrof_samples, const double t_start)
 Extern Template instantiation of liniterp.
template cmat itpp::lininterp (const cmat &m, const double f_base, const double f_ups, const int nrof_samples, const double t_start)
 Extern Template instantiation of liniterp.
template vec itpp::lininterp (const vec &v, const double f_base, const double f_ups, const int nrof_samples, const double t_start)
 Extern Template instantiation of liniterp.
template cvec itpp::lininterp (const cvec &v, const double f_base, const double f_ups, const int nrof_samples, const double t_start)
 Extern Template instantiation of liniterp.


Detailed Description

Implementation of functions on vectors and matrices.

Author:
Tony Ottosson and Adam Piatyszek
$Date$ $Revision$

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

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

Copyright (C) 1995-2007 (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 matfunc.cpp.

SourceForge Logo

Generated on Thu Aug 30 02:47:20 2007 for IT++ by Doxygen 1.5.3