10 #ifndef STOKHOS_KL_ONE_D_EXPONENTIAL_EIGENPAIR_HPP
11 #define STOKHOS_KL_ONE_D_EXPONENTIAL_EIGENPAIR_HPP
16 #include "Kokkos_Core.hpp"
24 template <
typename eigen_function_type>
40 template <
typename Value>
53 KOKKOS_INLINE_FUNCTION
58 KOKKOS_INLINE_FUNCTION
62 const int dim_name_) :
63 type(type_),
a((b_-a_)/2.0),
b((b_+a_)/2.0),
omega(omega_),
72 KOKKOS_INLINE_FUNCTION
76 template <
typename po
int_type>
77 KOKKOS_INLINE_FUNCTION
86 void print(std::ostream& os)
const {
96 KOKKOS_INLINE_FUNCTION
100 KOKKOS_INLINE_FUNCTION
104 KOKKOS_INLINE_FUNCTION
108 KOKKOS_INLINE_FUNCTION
136 #endif // STOKHOS_KL_ONE_D_EXPONENTIALEIGENPAIR_HPP
KOKKOS_INLINE_FUNCTION PCE< Storage > sqrt(const PCE< Storage > &a)
value_type a
Domain length.
KOKKOS_INLINE_FUNCTION value_type getFrequency() const
Return frequency.
KOKKOS_INLINE_FUNCTION ExponentialOneDEigenFunction(TYPE type_, const value_type &a_, const value_type &b_, const value_type &omega_, const int dim_name_)
Constructor.
Container for one-dimensional eigenfunction and eigenvalue.
KOKKOS_INLINE_FUNCTION ~ExponentialOneDEigenFunction()
Destructor.
void print(std::ostream &os) const
Print eigenfunction.
TYPE type
Type of eigenfunction (sin or cos)
KOKKOS_INLINE_FUNCTION value_type getMultiplier() const
Return multiplier.
value_type A
Multiplier for eigenfunction.
eigen_function_type eig_func
eigen_function_type::value_type value_type
KOKKOS_INLINE_FUNCTION point_type evaluate(const point_type &x) const
Evaluate eigenfunction.
TYPE
Enum identifying the type of eigenfunction.
KOKKOS_INLINE_FUNCTION value_type getShift() const
Get shift.
KOKKOS_INLINE_FUNCTION ExponentialOneDEigenFunction()
Default Constructor.
value_type b
Domain center.
KOKKOS_INLINE_FUNCTION PCE< Storage > sin(const PCE< Storage > &a)
One-dimensional eigenfunction for exponential covariance function.
value_type omega
Frequency of eigenfunction.
int dim_name
Dimesion name (e.g., x_1) for printing eigenfunction.
KOKKOS_INLINE_FUNCTION TYPE getType() const
Return type.
KOKKOS_INLINE_FUNCTION PCE< Storage > cos(const PCE< Storage > &a)