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 78 of file stieltjes_example5.cpp.

Definition at line 79 of file stieltjes_example5.cpp.

Definition at line 80 of file stieltjes_example5.cpp.

Definition at line 81 of file stieltjes_example5.cpp.

Definition at line 82 of file stieltjes_example5.cpp.

Definition at line 83 of file stieltjes_example5.cpp.

Enumeration Type Documentation

enum MT_METHOD
Enumerator
MT_STIELTJES 
MT_LANCZOS 
MT_GRAM_SCHMIDT 

Definition at line 86 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 57 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 72 of file stieltjes_example5.cpp.

double rel_err ( double  a,
double  b 
)

Definition at line 92 of file stieltjes_example5.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 96 of file stieltjes_example5.cpp.

Variable Documentation

const int num_mt_method = 3

Definition at line 87 of file stieltjes_example5.cpp.

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

Definition at line 90 of file stieltjes_example5.cpp.