Tpetra Matrix/Vector Services Version of the Day
Classes | Functions
TpetraExamples Namespace Reference

Namespace for Tpetra example classes and methods. More...

Classes

class  mprec_mult
 Function object multiplying two different types in a third type's precision. More...
class  pair_op
 Reduction function object that combines pairs of T1, T2. More...
class  DiagKernel
 Class to demonstrate a simple diagonal matrix. More...
class  FDStencil
 Class to demonstrate a simple, finite-different type tridiagonal stencil. More...
class  ScaleKernel
 Class to demonstrate a simple diagonal matrix. More...
struct  convertHelp
 Helper function to call CrsMatrix<T1>::convert<T2> if T1 != T2, and return the original matrix otherwise. More...
struct  convertHelp< T, T, LO, GO, Node >
 Helper function to call CrsMatrix<T1>::convert<T2> if T1 != T2, and return the original matrix otherwise. More...
class  RFPCGInit
 Initialization for a database stack for the recursiveFPCG() algorithm, to be used with Tpetra::Ext::initStackDB(). More...

Functions

template<class Scalar , class Ordinal >
Scalar powerMethod (const Teuchos::RCP< const Tpetra::Operator< Scalar, Ordinal > > &A, int niters, typename Teuchos::ScalarTraits< Scalar >::magnitudeType tolerance, bool verbose)
 Simple power iteration eigensolver for a Tpetra::Operator.
template<class T1 , class T2 , class Op >
pair_op< T1, T2, Op > make_pair_op (Op op)
 Non-member constructor to create a pair_op.
template<class S , class LO , class GO , class Node >
void RTICG (const RCP< const Tpetra::Operator< S, LO, GO, Node >> &A, RCP< Tpetra::Vector< S, LO, GO, Node >> b, const RCP< Teuchos::FancyOStream > &out, ParameterList &plist)
 Recursive, self-preconditioning flexible CG.
template<class S , class Souter , class LO , class GO , class Node >
void truncateCG (const RCP< Teuchos::FancyOStream > &out, int verbose, const RCP< const Tpetra::Operator< S, LO, GO, Node > > &A, const RCP< const Tpetra::Vector< S, LO, GO, Node > > &diag, const RCP< const Tpetra::Vector< Souter, LO, GO, Node > > &x_outer, const RCP< const Tpetra::Vector< Souter, LO, GO, Node > > &grad, const Souter &lx_outer, const RCP< Tpetra::Vector< S, LO, GO, Node > > &eta, const tCG_workspace< S, LO, GO, Node > &workspace, double rho_prime, double kappa, double theta, int maxItersCG, double outertol)
 Model trust-region subproblem CG solver.
template<class Sinner , class S , class LO , class GO , class Node >
IRTR (const RCP< Teuchos::FancyOStream > &out, ParameterList &params, const RCP< const Tpetra::CrsMatrix< S, LO, GO, Node > > &A, const RCP< Tpetra::Vector< S, LO, GO, Node > > &x)
 Templated IRTR solver.
template<class TS , class LO , class GO , class Node >
void recursiveFPCG (const RCP< Teuchos::FancyOStream > &out, ParameterList &db)
 Recursive, self-preconditioning flexible CG.
template<class TS , class LO , class GO , class Node >
void recursiveFPCGUnfused (const RCP< Teuchos::FancyOStream > &out, ParameterList &db)
 Recursive, self-preconditioning flexible CG.

Detailed Description

Namespace for Tpetra example classes and methods.


Function Documentation

template<class Scalar , class Ordinal >
Scalar TpetraExamples::powerMethod ( const Teuchos::RCP< const Tpetra::Operator< Scalar, Ordinal > > &  A,
int  niters,
typename Teuchos::ScalarTraits< Scalar >::magnitudeType  tolerance,
bool  verbose 
)

Simple power iteration eigensolver for a Tpetra::Operator.

Definition at line 56 of file Tpetra_Power_Method.hpp.

template<class T1 , class T2 , class Op >
pair_op< T1, T2, Op > TpetraExamples::make_pair_op ( Op  op)

Non-member constructor to create a pair_op.

Examples:
RTIExample.cpp.

Definition at line 121 of file RTIExample.cpp.

template<class S , class LO , class GO , class Node >
void TpetraExamples::RTICG ( const RCP< const Tpetra::Operator< S, LO, GO, Node >> &  A,
RCP< Tpetra::Vector< S, LO, GO, Node >>  b,
const RCP< Teuchos::FancyOStream > &  out,
ParameterList &  plist 
)

Recursive, self-preconditioning flexible CG.

Definition at line 128 of file RTIInlineCG.hpp.

template<class S , class Souter , class LO , class GO , class Node >
void TpetraExamples::truncateCG ( const RCP< Teuchos::FancyOStream > &  out,
int  verbose,
const RCP< const Tpetra::Operator< S, LO, GO, Node > > &  A,
const RCP< const Tpetra::Vector< S, LO, GO, Node > > &  diag,
const RCP< const Tpetra::Vector< Souter, LO, GO, Node > > &  x_outer,
const RCP< const Tpetra::Vector< Souter, LO, GO, Node > > &  grad,
const Souter &  lx_outer,
const RCP< Tpetra::Vector< S, LO, GO, Node > > &  eta,
const tCG_workspace< S, LO, GO, Node > &  workspace,
double  rho_prime,
double  kappa,
double  theta,
int  maxItersCG,
double  outertol 
)

Model trust-region subproblem CG solver.

Definition at line 178 of file IRTR_solvers.hpp.

template<class Sinner , class S , class LO , class GO , class Node >
S TpetraExamples::IRTR ( const RCP< Teuchos::FancyOStream > &  out,
ParameterList &  params,
const RCP< const Tpetra::CrsMatrix< S, LO, GO, Node > > &  A,
const RCP< Tpetra::Vector< S, LO, GO, Node > > &  x 
)

Templated IRTR solver.

Definition at line 323 of file IRTR_solvers.hpp.

template<class TS , class LO , class GO , class Node >
void TpetraExamples::recursiveFPCG ( const RCP< Teuchos::FancyOStream > &  out,
ParameterList &  db 
)

Recursive, self-preconditioning flexible CG.

Definition at line 211 of file MultiPrecCG.hpp.

template<class TS , class LO , class GO , class Node >
void TpetraExamples::recursiveFPCGUnfused ( const RCP< Teuchos::FancyOStream > &  out,
ParameterList &  db 
)

Recursive, self-preconditioning flexible CG.

Definition at line 340 of file MultiPrecCG.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines