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> &),
39template ITPP_EXPORT svec
apply_function(
short(*f)(
short),
const svec &v);
40template ITPP_EXPORT ivec
apply_function(
int (*f)(
int),
const ivec &v);
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> &),
46template ITPP_EXPORT smat
apply_function(
short(*f)(
short),
const smat &m);
47template ITPP_EXPORT imat
apply_function(
int (*f)(
int),
const imat &m);
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);
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);
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);
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);
Binary arithmetic (boolean) class.
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