IT++ Logo
help_functions.cpp
Go to the documentation of this file.
1
30
32
33namespace itpp
34{
35
36template ITPP_EXPORT vec apply_function(double(*f)(double), const vec &v);
37template ITPP_EXPORT cvec apply_function(std::complex<double> (*f)(const std::complex<double> &),
38 const cvec &v);
39template ITPP_EXPORT svec apply_function(short(*f)(short), const svec &v);
40template ITPP_EXPORT ivec apply_function(int (*f)(int), const ivec &v);
41template ITPP_EXPORT bvec apply_function(bin(*f)(bin), const bvec &v);
42
43template ITPP_EXPORT mat apply_function(double(*f)(double), const mat &m);
44template ITPP_EXPORT cmat apply_function(std::complex<double> (*f)(const std::complex<double> &),
45 const cmat &m);
46template ITPP_EXPORT smat apply_function(short(*f)(short), const smat &m);
47template ITPP_EXPORT imat apply_function(int (*f)(int), const imat &m);
48template ITPP_EXPORT bmat apply_function(bin(*f)(bin), const bmat &m);
49
50template ITPP_EXPORT vec apply_function(double(*f)(double, double), const double& x, const vec &v);
51template 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);
54template ITPP_EXPORT svec apply_function(short(*f)(short, short), const short& x, const svec &v);
55template ITPP_EXPORT ivec apply_function(int (*f)(int, int), const int& x, const ivec &v);
56template ITPP_EXPORT bvec apply_function(bin(*f)(bin, bin), const bin& x, const bvec &v);
57
58template ITPP_EXPORT mat apply_function(double(*f)(double, double), const double& x, const mat &m);
59template 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);
62template ITPP_EXPORT smat apply_function(short(*f)(short, short), const short& x, const smat &m);
63template ITPP_EXPORT imat apply_function(int (*f)(int, int), const int& x, const imat &m);
64template ITPP_EXPORT bmat apply_function(bin(*f)(bin, bin), const bin& x, const bmat &m);
65
66template ITPP_EXPORT vec apply_function(double(*f)(double, double), const vec &v, const double& x);
67template 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);
70template ITPP_EXPORT svec apply_function(short(*f)(short, short), const svec &v, const short& x);
71template ITPP_EXPORT ivec apply_function(int (*f)(int, int), const ivec &v, const int& x);
72template ITPP_EXPORT bvec apply_function(bin(*f)(bin, bin), const bvec &v, const bin& x);
73
74template ITPP_EXPORT mat apply_function(double(*f)(double, double), const mat &m, const double& x);
75template 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);
78template ITPP_EXPORT smat apply_function(short(*f)(short, short), const smat &m, const short& x);
79template ITPP_EXPORT imat apply_function(int (*f)(int, int), const imat &m, const int& x);
80template ITPP_EXPORT bmat apply_function(bin(*f)(bin, bin), const bmat &m, const bin& x);
81
82} // namespace itpp
83
Vec< T > apply_function(T(*f)(T), const Vec< T > &v)
Help function to call for a function: Vec<T> function(Vec<T>)
Help functions to make functions with vec and mat as arguments.
Mat< bin > bmat
bin matrix
Definition mat.h:508
itpp namespace
Definition itmex.h:37

Generated on Tue Mar 26 2024 19:08:31 for IT++ by Doxygen 1.9.8