42 #ifndef STOKHOS_KL_ONE_D_EXPONENTIAL_EIGENPAIR_HPP
43 #define STOKHOS_KL_ONE_D_EXPONENTIAL_EIGENPAIR_HPP
48 #include "Kokkos_Core.hpp"
56 template <
typename eigen_function_type>
72 template <
typename Value>
85 KOKKOS_INLINE_FUNCTION
90 KOKKOS_INLINE_FUNCTION
94 const int dim_name_) :
95 type(type_),
a((b_-a_)/2.0),
b((b_+a_)/2.0),
omega(omega_),
104 KOKKOS_INLINE_FUNCTION
108 template <
typename po
int_type>
109 KOKKOS_INLINE_FUNCTION
118 void print(std::ostream& os)
const {
128 KOKKOS_INLINE_FUNCTION
132 KOKKOS_INLINE_FUNCTION
136 KOKKOS_INLINE_FUNCTION
140 KOKKOS_INLINE_FUNCTION
168 #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)