IT++ Logo

help_functions.cpp

Go to the documentation of this file.
00001 
00030 #include <itpp/base/help_functions.h>
00031 
00033 
00034 namespace itpp
00035 {
00036 
00037 template vec apply_function(double(*f)(double), const vec &v);
00038 template cvec apply_function(std::complex<double> (*f)(const std::complex<double> &),
00039                              const cvec &v);
00040 template svec apply_function(short(*f)(short), const svec &v);
00041 template ivec apply_function(int (*f)(int), const ivec &v);
00042 template bvec apply_function(bin(*f)(bin), const bvec &v);
00043 
00044 template mat apply_function(double(*f)(double), const mat &m);
00045 template cmat apply_function(std::complex<double> (*f)(const std::complex<double> &),
00046                              const cmat &m);
00047 template smat apply_function(short(*f)(short), const smat &m);
00048 template imat apply_function(int (*f)(int), const imat &m);
00049 template bmat apply_function(bin(*f)(bin), const bmat &m);
00050 
00051 template vec apply_function(double(*f)(double, double), const double& x, const vec &v);
00052 template cvec apply_function(std::complex<double> (*f)(const std::complex<double> &,
00053                              const std::complex<double> &),
00054                              const std::complex<double>& x, const cvec &v);
00055 template svec apply_function(short(*f)(short, short), const short& x, const svec &v);
00056 template ivec apply_function(int (*f)(int, int), const int& x, const ivec &v);
00057 template bvec apply_function(bin(*f)(bin, bin), const bin& x, const bvec &v);
00058 
00059 template mat apply_function(double(*f)(double, double), const double& x, const mat &m);
00060 template cmat apply_function(std::complex<double> (*f)(const std::complex<double> &,
00061                              const std::complex<double> &),
00062                              const std::complex<double>& x, const cmat &m);
00063 template smat apply_function(short(*f)(short, short), const short& x, const smat &m);
00064 template imat apply_function(int (*f)(int, int), const int& x, const imat &m);
00065 template bmat apply_function(bin(*f)(bin, bin), const bin& x, const bmat &m);
00066 
00067 template vec apply_function(double(*f)(double, double), const vec &v, const double& x);
00068 template cvec apply_function(std::complex<double> (*f)(const std::complex<double> &,
00069                              const std::complex<double> &),
00070                              const cvec &v, const std::complex<double>& x);
00071 template svec apply_function(short(*f)(short, short), const svec &v, const short& x);
00072 template ivec apply_function(int (*f)(int, int), const ivec &v, const int& x);
00073 template bvec apply_function(bin(*f)(bin, bin), const bvec &v, const bin& x);
00074 
00075 template mat apply_function(double(*f)(double, double), const mat &m, const double& x);
00076 template cmat apply_function(std::complex<double> (*f)(const std::complex<double> &,
00077                              const std::complex<double> &),
00078                              const cmat &m, const std::complex<double>& x);
00079 template smat apply_function(short(*f)(short, short), const smat &m, const short& x);
00080 template imat apply_function(int (*f)(int, int), const imat &m, const int& x);
00081 template bmat apply_function(bin(*f)(bin, bin), const bmat &m, const bin& x);
00082 
00083 } // namespace itpp
00084 
SourceForge Logo

Generated on Sun Jul 26 08:54:25 2009 for IT++ by Doxygen 1.5.9