IT++ Logo
help_functions.cpp
Go to the documentation of this file.
1 
30 
32 
33 namespace itpp
34 {
35 
36 template ITPP_EXPORT vec apply_function(double(*f)(double), const vec &v);
37 template ITPP_EXPORT cvec apply_function(std::complex<double> (*f)(const std::complex<double> &),
38  const cvec &v);
39 template ITPP_EXPORT svec apply_function(short(*f)(short), const svec &v);
40 template ITPP_EXPORT ivec apply_function(int (*f)(int), const ivec &v);
41 template ITPP_EXPORT bvec apply_function(bin(*f)(bin), const bvec &v);
42 
43 template ITPP_EXPORT mat apply_function(double(*f)(double), const mat &m);
44 template ITPP_EXPORT cmat apply_function(std::complex<double> (*f)(const std::complex<double> &),
45  const cmat &m);
46 template ITPP_EXPORT smat apply_function(short(*f)(short), const smat &m);
47 template ITPP_EXPORT imat apply_function(int (*f)(int), const imat &m);
48 template ITPP_EXPORT bmat apply_function(bin(*f)(bin), const bmat &m);
49 
50 template ITPP_EXPORT vec apply_function(double(*f)(double, double), const double& x, const vec &v);
51 template ITPP_EXPORT cvec apply_function(std::complex<double> (*f)(const std::complex<double> &,
52  const std::complex<double> &),
53  const std::complex<double>& x, const cvec &v);
54 template ITPP_EXPORT svec apply_function(short(*f)(short, short), const short& x, const svec &v);
55 template ITPP_EXPORT ivec apply_function(int (*f)(int, int), const int& x, const ivec &v);
56 template ITPP_EXPORT bvec apply_function(bin(*f)(bin, bin), const bin& x, const bvec &v);
57 
58 template ITPP_EXPORT mat apply_function(double(*f)(double, double), const double& x, const mat &m);
59 template ITPP_EXPORT cmat apply_function(std::complex<double> (*f)(const std::complex<double> &,
60  const std::complex<double> &),
61  const std::complex<double>& x, const cmat &m);
62 template ITPP_EXPORT smat apply_function(short(*f)(short, short), const short& x, const smat &m);
63 template ITPP_EXPORT imat apply_function(int (*f)(int, int), const int& x, const imat &m);
64 template ITPP_EXPORT bmat apply_function(bin(*f)(bin, bin), const bin& x, const bmat &m);
65 
66 template ITPP_EXPORT vec apply_function(double(*f)(double, double), const vec &v, const double& x);
67 template ITPP_EXPORT cvec apply_function(std::complex<double> (*f)(const std::complex<double> &,
68  const std::complex<double> &),
69  const cvec &v, const std::complex<double>& x);
70 template ITPP_EXPORT svec apply_function(short(*f)(short, short), const svec &v, const short& x);
71 template ITPP_EXPORT ivec apply_function(int (*f)(int, int), const ivec &v, const int& x);
72 template ITPP_EXPORT bvec apply_function(bin(*f)(bin, bin), const bvec &v, const bin& x);
73 
74 template ITPP_EXPORT mat apply_function(double(*f)(double, double), const mat &m, const double& x);
75 template ITPP_EXPORT cmat apply_function(std::complex<double> (*f)(const std::complex<double> &,
76  const std::complex<double> &),
77  const cmat &m, const std::complex<double>& x);
78 template ITPP_EXPORT smat apply_function(short(*f)(short, short), const smat &m, const short& x);
79 template ITPP_EXPORT imat apply_function(int (*f)(int, int), const imat &m, const int& x);
80 template ITPP_EXPORT bmat apply_function(bin(*f)(bin, bin), const bmat &m, const bin& x);
81 
82 } // namespace itpp
83 
SourceForge Logo

Generated on Sat May 25 2013 16:32:18 for IT++ by Doxygen 1.8.2