Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs | Enumerations | Functions | Variables
stieltjes_example5.cpp File Reference
#include <iostream>
#include <iomanip>
#include "Stokhos.hpp"
#include "Stokhos_Sacado.hpp"
#include "Stokhos_ReducedBasisFactory.hpp"
#include "Stokhos_SDMUtils.hpp"
#include "Teuchos_CommandLineProcessor.hpp"
Include dependency graph for stieltjes_example5.cpp:

Go to the source code of this file.

Typedefs

typedef Stokhos::LegendreBasis
< int, double
basis_type
 
typedef
Sacado::PCE::OrthogPoly
< double,
Stokhos::StandardStorage< int,
double > > 
pce_type
 
typedef
Teuchos::SerialDenseMatrix
< int, pce_type
SDM
 
typedef
Teuchos::SerialDenseVector
< int, pce_type
SDV
 
typedef
Teuchos::SerialDenseMatrix
< int, double
SDM0
 
typedef
Teuchos::SerialDenseVector
< int, double
SDV0
 

Enumerations

enum  MT_METHOD { MT_STIELTJES, MT_LANCZOS, MT_GRAM_SCHMIDT }
 

Functions

template<typename ordinal_type , typename scalar_type >
void f_func (const Teuchos::SerialDenseMatrix< ordinal_type, scalar_type > &A, const Teuchos::SerialDenseVector< ordinal_type, scalar_type > &x, double shift, Teuchos::SerialDenseVector< ordinal_type, scalar_type > &f)
 
template<typename ordinal_type , typename scalar_type >
scalar_type g_func (const Teuchos::SerialDenseVector< ordinal_type, scalar_type > &f)
 
double rel_err (double a, double b)
 
int main (int argc, char **argv)
 

Variables

const int num_mt_method = 3
 
const MT_METHOD mt_method_values []
 
const char * mt_method_names [] = { "Stieltjes", "Lanczos", "Gram-Schmidt" }
 

Typedef Documentation

Definition at line 44 of file stieltjes_example5.cpp.

Definition at line 45 of file stieltjes_example5.cpp.

Definition at line 46 of file stieltjes_example5.cpp.

Definition at line 47 of file stieltjes_example5.cpp.

Definition at line 48 of file stieltjes_example5.cpp.

Definition at line 49 of file stieltjes_example5.cpp.

Enumeration Type Documentation

enum MT_METHOD
Enumerator
MT_STIELTJES 
MT_LANCZOS 
MT_GRAM_SCHMIDT 

Definition at line 52 of file stieltjes_example5.cpp.

Function Documentation

template<typename ordinal_type , typename scalar_type >
void f_func ( const Teuchos::SerialDenseMatrix< ordinal_type, scalar_type > &  A,
const Teuchos::SerialDenseVector< ordinal_type, scalar_type > &  x,
double  shift,
Teuchos::SerialDenseVector< ordinal_type, scalar_type > &  f 
)

Definition at line 23 of file stieltjes_example5.cpp.

template<typename ordinal_type , typename scalar_type >
scalar_type g_func ( const Teuchos::SerialDenseVector< ordinal_type, scalar_type > &  f)

Definition at line 38 of file stieltjes_example5.cpp.

double rel_err ( double  a,
double  b 
)

Definition at line 58 of file stieltjes_example5.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 62 of file stieltjes_example5.cpp.

Variable Documentation

const int num_mt_method = 3

Definition at line 53 of file stieltjes_example5.cpp.

const MT_METHOD mt_method_values[]
const char* mt_method_names[] = { "Stieltjes", "Lanczos", "Gram-Schmidt" }

Definition at line 56 of file stieltjes_example5.cpp.