Stokhos Development
Loading...
Searching...
No Matches
Stokhos::CGDivisionExpansionStrategy< ordinal_type, value_type, node_type > Class Template Reference

Strategy interface for computing PCE of a/b using only b[0]. More...

#include <Stokhos_CGDivisionExpansionStrategy.hpp>

Inheritance diagram for Stokhos::CGDivisionExpansionStrategy< ordinal_type, value_type, node_type >:
Collaboration diagram for Stokhos::CGDivisionExpansionStrategy< ordinal_type, value_type, node_type >:

Public Member Functions

 CGDivisionExpansionStrategy (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< ordinal_type, value_type > > &basis_, const Teuchos::RCP< const Stokhos::Sparse3Tensor< ordinal_type, value_type > > &Cijk_, const ordinal_type prec_iter_, const value_type tol_, const ordinal_type PrecNum_, const ordinal_type max_it_, const ordinal_type linear_, const ordinal_type diag_, const ordinal_type equil_)
 Constructor.
virtual ~CGDivisionExpansionStrategy ()
 Destructor.
virtual void divide (Stokhos::OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const value_type &alpha, const Stokhos::OrthogPolyApprox< ordinal_type, value_type, node_type > &a, const Stokhos::OrthogPolyApprox< ordinal_type, value_type, node_type > &b, const value_type &beta)
Public Member Functions inherited from Stokhos::DivisionExpansionStrategy< ordinal_type, value_type, node_type >
 DivisionExpansionStrategy ()
 Constructor.
virtual ~DivisionExpansionStrategy ()
 Destructor.

Protected Types

typedef Stokhos::Sparse3Tensor< ordinal_type, value_typeCijk_type
 Short-hand for Cijk.

Protected Attributes

Teuchos::RCP< const Stokhos::OrthogPolyBasis< ordinal_type, value_type > > basis
 Basis.
Teuchos::RCP< const Cijk_typeCijk
 Triple product.
Teuchos::RCP< Teuchos::SerialDenseMatrix< ordinal_type, value_type > > A
 Dense matrices for linear system.
Teuchos::RCP< Teuchos::SerialDenseMatrix< ordinal_type, value_type > > X
Teuchos::RCP< Teuchos::SerialDenseMatrix< ordinal_type, value_type > > B
Teuchos::RCP< Teuchos::SerialDenseMatrix< ordinal_type, value_type > > M
ordinal_type prec_iter
 Tolerance for CG.
value_type tol
ordinal_type PrecNum
ordinal_type max_it
ordinal_type linear
ordinal_type diag
ordinal_type equil

Detailed Description

template<typename ordinal_type, typename value_type, typename node_type>
class Stokhos::CGDivisionExpansionStrategy< ordinal_type, value_type, node_type >

Strategy interface for computing PCE of a/b using only b[0].

Such a strategy is only useful when the division occurs in a preconditioner

Constructor & Destructor Documentation

◆ CGDivisionExpansionStrategy()

template<typename ordinal_type, typename value_type, typename node_type>
Stokhos::CGDivisionExpansionStrategy< ordinal_type, value_type, node_type >::CGDivisionExpansionStrategy ( const Teuchos::RCP< const Stokhos::OrthogPolyBasis< ordinal_type, value_type > > & basis_,
const Teuchos::RCP< const Stokhos::Sparse3Tensor< ordinal_type, value_type > > & Cijk_,
const ordinal_type prec_iter_,
const value_type tol_,
const ordinal_type PrecNum_,
const ordinal_type max_it_,
const ordinal_type linear_,
const ordinal_type diag_,
const ordinal_type equil_ )

Constructor.

References A, basis, Cijk, and prec_iter.

Member Function Documentation

◆ divide()

template<typename ordinal_type, typename value_type, typename node_type>
void Stokhos::CGDivisionExpansionStrategy< ordinal_type, value_type, node_type >::divide ( Stokhos::OrthogPolyApprox< ordinal_type, value_type, node_type > & c,
const value_type & alpha,
const Stokhos::OrthogPolyApprox< ordinal_type, value_type, node_type > & a,
const Stokhos::OrthogPolyApprox< ordinal_type, value_type, node_type > & b,
const value_type & beta )
virtual

Member Data Documentation

◆ A

template<typename ordinal_type, typename value_type, typename node_type>
Teuchos::RCP< Teuchos::SerialDenseMatrix<ordinal_type,value_type> > Stokhos::CGDivisionExpansionStrategy< ordinal_type, value_type, node_type >::A
protected

Dense matrices for linear system.

Referenced by CGDivisionExpansionStrategy().

◆ basis

template<typename ordinal_type, typename value_type, typename node_type>
Teuchos::RCP<const Stokhos::OrthogPolyBasis<ordinal_type, value_type> > Stokhos::CGDivisionExpansionStrategy< ordinal_type, value_type, node_type >::basis
protected

Basis.

Referenced by CGDivisionExpansionStrategy().

◆ Cijk

template<typename ordinal_type, typename value_type, typename node_type>
Teuchos::RCP<const Cijk_type> Stokhos::CGDivisionExpansionStrategy< ordinal_type, value_type, node_type >::Cijk
protected

Triple product.

Referenced by CGDivisionExpansionStrategy().

◆ prec_iter

template<typename ordinal_type, typename value_type, typename node_type>
ordinal_type Stokhos::CGDivisionExpansionStrategy< ordinal_type, value_type, node_type >::prec_iter
protected

Tolerance for CG.

Referenced by CGDivisionExpansionStrategy().


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