4 #include <unsupported/Eigen/MatrixFunctions> 6 #include "../../utilities/evaluations.hpp" 8 #include "../bases.hpp" 31 template <
class Subtype,
class Basis>
38 const
real_t &factor = 1 )
const {
39 static_cast<const Subtype*
>(
this)->evaluate_exponential_at_implementation( arg, factor );
42 template <
template <
typename...>
class grid_in = std::vector,
43 template <
typename...>
class grid_out = grid_in >
45 grid_in<argument_type > args,
46 real_t factor = 1 )
const {
48 potential_evaluation_type,
54 std::placeholders::_1,
71 template <
class EvalImpl,
class Basis>
79 const argument_type &arg,
82 auto values = evaluate_at( arg );
83 potential_evaluation_type result;
86 return (factor * values).exp();
90 template <
class EvalImpl,
template <
int,
int>
class B,
int D>
91 struct Standard<EvalImpl, B<1, D>> :
public Abstract<Standard<EvalImpl, B<1,D>>, B<1,D>>,
99 const argument_type &arg,
102 auto values = evaluate_at( arg );
103 return std::exp(factor * values);
108 template <
class Basis>
Definition: coefficients_file_parser.cpp:10
grid_out< potential_evaluation_type > evaluate_exponential(grid_in< argument_type > args, real_t factor=1) const
Definition: exponential.hpp:44
potential_evaluation_type evaluate_exponential_at(const argument_type &arg, const real_t &factor=1) const
Definition: exponential.hpp:37
G_out< R > evaluate_function_in_grid(const F< R(A)> &f, const G_in< A > &g)
Evaluate a function in multiple points at once.
Definition: evaluations.hpp:130
double real_t
Definition: types.hpp:14
Implementation of exponential of potential evaluation.
Definition: exponential.hpp:72
Abstract class for exponential of potential evaluation.
Definition: exponential.hpp:32
std::function< P > function_t
Definition: types.hpp:57
#define IMPORT_TYPES_FROM(B)
Definition: bases.hpp:3
B< 1, D > Basis
Definition: exponential.hpp:93
potential_evaluation_type evaluate_exponential_at_implementation(const argument_type &arg, real_t factor) const
Definition: exponential.hpp:98
potential_evaluation_type evaluate_exponential_at_implementation(const argument_type &arg, real_t factor) const
Definition: exponential.hpp:78