Theoretica
A C++ numerical and automatic mathematical library
|
Parallelized methods to evaluate a function over a vector element-wise. More...
#include "./vec.h"
#include "../core/dataset.h"
#include "../core/real_analysis.h"
#include "../complex/complex_analysis.h"
#include "../autodiff/dual_functions.h"
#include "../autodiff/dual2_functions.h"
#include "../autodiff/multidual_functions.h"
Go to the source code of this file.
Namespaces | |
theoretica | |
Main namespace of the library which contains all functions and objects. | |
theoretica::parallel | |
Parallelized element-wise evaluation of functions. | |
Functions | |
template<typename Function , typename Vector > | |
Vector | theoretica::parallel::apply_function (Function f, const Vector &v) |
Parallel element-wise evaluation of a function, using OpenMP to speed up execution over a vector. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::square (const Vector &v) |
Parallel element-wise evaluation of the square function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::cube (const Vector &v) |
Parallel element-wise evaluation of the cube function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::abs (const Vector &v) |
Parallel element-wise evaluation of the abs function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::pow (const Vector &v, int n) |
Parallel element-wise evaluation of the pow function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::powf (const Vector &v, real x) |
Parallel element-wise evaluation of the powf function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::sqrt (const Vector &v) |
Parallel element-wise evaluation of the sqrt function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::cbrt (const Vector &v) |
Parallel element-wise evaluation of the cbrt function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::exp (const Vector &v) |
Parallel element-wise evaluation of the exp function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::ln (const Vector &v) |
Parallel element-wise evaluation of the ln function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::log2 (const Vector &v) |
Parallel element-wise evaluation of the log2 function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::log10 (const Vector &v) |
Parallel element-wise evaluation of the log10 function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::sin (const Vector &v) |
Parallel element-wise evaluation of the sin function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::cos (const Vector &v) |
Parallel element-wise evaluation of the cos function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::tan (const Vector &v) |
Vectorized (element-wise evaluation) of the tan function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::cot (const Vector &v) |
Vectorized (element-wise evaluation) of the cot function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::asin (const Vector &v) |
Vectorized (element-wise evaluation) of the asin function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::acos (const Vector &v) |
Vectorized (element-wise evaluation) of the acos function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::atan (const Vector &v) |
Vectorized (element-wise evaluation) of the atan function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::sinh (const Vector &v) |
Vectorized (element-wise evaluation) of the sinh function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::cosh (const Vector &v) |
Vectorized (element-wise evaluation) of the cosh function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::tanh (const Vector &v) |
Vectorized (element-wise evaluation) of the tanh function. More... | |
template<typename Vector > | |
Vector | theoretica::parallel::coth (const Vector &v) |
Vectorized (element-wise evaluation) of the coth function. More... | |
Parallelized methods to evaluate a function over a vector element-wise.