Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
Stokhos::KL::ExponentialOneDEigenFunction< Value > Class Template Reference

One-dimensional eigenfunction for exponential covariance function. More...

#include <Stokhos_KL_OneDExponentialEigenPair.hpp>

Public Types

enum  TYPE { SIN, COS }
 Enum identifying the type of eigenfunction. More...
 
typedef Value value_type
 

Public Member Functions

KOKKOS_INLINE_FUNCTION ExponentialOneDEigenFunction ()
 Default Constructor. More...
 
KOKKOS_INLINE_FUNCTION ExponentialOneDEigenFunction (TYPE type_, const value_type &a_, const value_type &b_, const value_type &omega_, const int dim_name_)
 Constructor. More...
 
KOKKOS_INLINE_FUNCTION ~ExponentialOneDEigenFunction ()
 Destructor. More...
 
template<typename point_type >
KOKKOS_INLINE_FUNCTION point_type evaluate (const point_type &x) const
 Evaluate eigenfunction. More...
 
void print (std::ostream &os) const
 Print eigenfunction. More...
 
KOKKOS_INLINE_FUNCTION TYPE getType () const
 Return type. More...
 
KOKKOS_INLINE_FUNCTION value_type getFrequency () const
 Return frequency. More...
 
KOKKOS_INLINE_FUNCTION value_type getMultiplier () const
 Return multiplier. More...
 
KOKKOS_INLINE_FUNCTION value_type getShift () const
 Get shift. More...
 

Protected Attributes

TYPE type
 Type of eigenfunction (sin or cos) More...
 
value_type a
 Domain length. More...
 
value_type b
 Domain center. More...
 
value_type A
 Multiplier for eigenfunction. More...
 
value_type omega
 Frequency of eigenfunction. More...
 
int dim_name
 Dimesion name (e.g., x_1) for printing eigenfunction. More...
 

Detailed Description

template<typename Value>
class Stokhos::KL::ExponentialOneDEigenFunction< Value >

One-dimensional eigenfunction for exponential covariance function.

Represents an eigenfunction of the form $A \sin(\omega (x-(b+a)/2))$ or $A \cos(\omega (x-(b+a)/2))$ over the domain $[a,b]$ where

\[ A = \frac{1}{\sqrt{\frac{b-a}{2} \pm \frac{\sin(\omega(b-a)}{2\omega}}} \]

for $\cos$, $\sin$ respectively.

Definition at line 41 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

Member Typedef Documentation

template<typename Value>
typedef Value Stokhos::KL::ExponentialOneDEigenFunction< Value >::value_type

Definition at line 44 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

Member Enumeration Documentation

template<typename Value>
enum Stokhos::KL::ExponentialOneDEigenFunction::TYPE

Enum identifying the type of eigenfunction.

Enumerator
SIN 

A*sin(omega*(x-b))

COS 

A*cos(omega*(x-b))

Definition at line 47 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

Constructor & Destructor Documentation

template<typename Value>
KOKKOS_INLINE_FUNCTION Stokhos::KL::ExponentialOneDEigenFunction< Value >::ExponentialOneDEigenFunction ( )
inline

Default Constructor.

Definition at line 54 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
KOKKOS_INLINE_FUNCTION Stokhos::KL::ExponentialOneDEigenFunction< Value >::ExponentialOneDEigenFunction ( TYPE  type_,
const value_type a_,
const value_type b_,
const value_type omega_,
const int  dim_name_ 
)
inline

Constructor.

Definition at line 59 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
KOKKOS_INLINE_FUNCTION Stokhos::KL::ExponentialOneDEigenFunction< Value >::~ExponentialOneDEigenFunction ( )
inline

Destructor.

Definition at line 73 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

Member Function Documentation

template<typename Value>
template<typename point_type >
KOKKOS_INLINE_FUNCTION point_type Stokhos::KL::ExponentialOneDEigenFunction< Value >::evaluate ( const point_type &  x) const
inline

Evaluate eigenfunction.

Definition at line 79 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
void Stokhos::KL::ExponentialOneDEigenFunction< Value >::print ( std::ostream &  os) const
inline

Print eigenfunction.

Definition at line 86 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
KOKKOS_INLINE_FUNCTION TYPE Stokhos::KL::ExponentialOneDEigenFunction< Value >::getType ( ) const
inline

Return type.

Definition at line 97 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
KOKKOS_INLINE_FUNCTION value_type Stokhos::KL::ExponentialOneDEigenFunction< Value >::getFrequency ( ) const
inline

Return frequency.

Definition at line 101 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
KOKKOS_INLINE_FUNCTION value_type Stokhos::KL::ExponentialOneDEigenFunction< Value >::getMultiplier ( ) const
inline

Return multiplier.

Definition at line 105 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
KOKKOS_INLINE_FUNCTION value_type Stokhos::KL::ExponentialOneDEigenFunction< Value >::getShift ( ) const
inline

Get shift.

Definition at line 109 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

Member Data Documentation

template<typename Value>
TYPE Stokhos::KL::ExponentialOneDEigenFunction< Value >::type
protected

Type of eigenfunction (sin or cos)

Definition at line 114 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
value_type Stokhos::KL::ExponentialOneDEigenFunction< Value >::a
protected

Domain length.

Definition at line 117 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
value_type Stokhos::KL::ExponentialOneDEigenFunction< Value >::b
protected

Domain center.

Definition at line 120 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
value_type Stokhos::KL::ExponentialOneDEigenFunction< Value >::A
protected

Multiplier for eigenfunction.

Definition at line 123 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
value_type Stokhos::KL::ExponentialOneDEigenFunction< Value >::omega
protected

Frequency of eigenfunction.

Definition at line 126 of file Stokhos_KL_OneDExponentialEigenPair.hpp.

template<typename Value>
int Stokhos::KL::ExponentialOneDEigenFunction< Value >::dim_name
protected

Dimesion name (e.g., x_1) for printing eigenfunction.

Definition at line 129 of file Stokhos_KL_OneDExponentialEigenPair.hpp.


The documentation for this class was generated from the following file: