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

ModelEvaluator providing statistic response functions. More...

#include <Stokhos_ResponseStatisticModelEvaluator.hpp>

Inherits ModelEvaluator.

Public Member Functions

 ResponseStatisticModelEvaluator (const Teuchos::RCP< EpetraExt::ModelEvaluator > &me, const Teuchos::Array< Teuchos::RCP< const Epetra_Map > > &base_g_maps, const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &sg_basis, const Teuchos::RCP< const EpetraExt::MultiComm > &sg_comm, const Teuchos::RCP< const Epetra_BlockMap > &block_map)
 

Protected Attributes

Teuchos::RCP
< EpetraExt::ModelEvaluator > 
me
 Underlying model evaluator. More...
 
Teuchos::Array< Teuchos::RCP
< const Epetra_Map > > 
base_g_maps
 Base maps of block g vectors. More...
 
Teuchos::RCP< const
Stokhos::OrthogPolyBasis< int,
double > > 
sg_basis
 Stochastic Galerkin basis. More...
 
Teuchos::RCP< const
EpetraExt::MultiComm > 
sg_comm
 Parallel SG communicator. More...
 
Teuchos::RCP< const
Epetra_BlockMap
block_map
 Map for stochastic blocks. More...
 
int num_p
 Number of parameters. More...
 
int num_g
 Number of responses. More...
 

Overridden from EpetraExt::ModelEvaluator .

Teuchos::RCP< const Epetra_Mapget_x_map () const
 Return solution vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_f_map () const
 Return residual vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_p_map (int l) const
 Return parameter vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_g_map (int l) const
 Return response map. More...
 
Teuchos::RCP< const
Teuchos::Array< std::string > > 
get_p_names (int l) const
 Return array of parameter names. More...
 
Teuchos::RCP< const Epetra_Vectorget_p_init (int l) const
 Return initial parameters. More...
 
InArgs createInArgs () const
 Create InArgs. More...
 
OutArgs createOutArgs () const
 Create OutArgs. More...
 
void evalModel (const InArgs &inArgs, const OutArgs &outArgs) const
 Evaluate model on InArgs. More...
 

Detailed Description

ModelEvaluator providing statistic response functions.

ResponseStatisticModelEvaluator is an implementation of EpetraExt::ModelEvaluator that wraps a response-only model evaluator and provides additional response functions that are statistics of some other stochastic response. Since it is designed to support derivatives w.r.t. the PCE coefficients of the parameters, the underlying model evaluator should be a block model evaluator.

Definition at line 31 of file Stokhos_ResponseStatisticModelEvaluator.hpp.

Constructor & Destructor Documentation

Stokhos::ResponseStatisticModelEvaluator::ResponseStatisticModelEvaluator ( const Teuchos::RCP< EpetraExt::ModelEvaluator > &  me,
const Teuchos::Array< Teuchos::RCP< const Epetra_Map > > &  base_g_maps,
const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &  sg_basis,
const Teuchos::RCP< const EpetraExt::MultiComm > &  sg_comm,
const Teuchos::RCP< const Epetra_BlockMap > &  block_map 
)

Definition at line 16 of file Stokhos_ResponseStatisticModelEvaluator.cpp.

Member Function Documentation

Teuchos::RCP< const Epetra_Map > Stokhos::ResponseStatisticModelEvaluator::get_x_map ( ) const

Return solution vector map.

Definition at line 40 of file Stokhos_ResponseStatisticModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::ResponseStatisticModelEvaluator::get_f_map ( ) const

Return residual vector map.

Definition at line 47 of file Stokhos_ResponseStatisticModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::ResponseStatisticModelEvaluator::get_p_map ( int  l) const

Return parameter vector map.

Definition at line 54 of file Stokhos_ResponseStatisticModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::ResponseStatisticModelEvaluator::get_g_map ( int  l) const

Return response map.

Definition at line 67 of file Stokhos_ResponseStatisticModelEvaluator.cpp.

Teuchos::RCP< const Teuchos::Array< std::string > > Stokhos::ResponseStatisticModelEvaluator::get_p_names ( int  l) const

Return array of parameter names.

Definition at line 85 of file Stokhos_ResponseStatisticModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Vector > Stokhos::ResponseStatisticModelEvaluator::get_p_init ( int  l) const

Return initial parameters.

Definition at line 98 of file Stokhos_ResponseStatisticModelEvaluator.cpp.

EpetraExt::ModelEvaluator::InArgs Stokhos::ResponseStatisticModelEvaluator::createInArgs ( ) const

Create InArgs.

Definition at line 110 of file Stokhos_ResponseStatisticModelEvaluator.cpp.

EpetraExt::ModelEvaluator::OutArgs Stokhos::ResponseStatisticModelEvaluator::createOutArgs ( ) const

Create OutArgs.

Definition at line 129 of file Stokhos_ResponseStatisticModelEvaluator.cpp.

void Stokhos::ResponseStatisticModelEvaluator::evalModel ( const InArgs &  inArgs,
const OutArgs &  outArgs 
) const

Evaluate model on InArgs.

Definition at line 159 of file Stokhos_ResponseStatisticModelEvaluator.cpp.

Member Data Documentation

Teuchos::RCP<EpetraExt::ModelEvaluator> Stokhos::ResponseStatisticModelEvaluator::me
protected

Underlying model evaluator.

Definition at line 78 of file Stokhos_ResponseStatisticModelEvaluator.hpp.

Teuchos::Array< Teuchos::RCP<const Epetra_Map> > Stokhos::ResponseStatisticModelEvaluator::base_g_maps
protected

Base maps of block g vectors.

Definition at line 81 of file Stokhos_ResponseStatisticModelEvaluator.hpp.

Teuchos::RCP<const Stokhos::OrthogPolyBasis<int, double> > Stokhos::ResponseStatisticModelEvaluator::sg_basis
protected

Stochastic Galerkin basis.

Definition at line 84 of file Stokhos_ResponseStatisticModelEvaluator.hpp.

Teuchos::RCP<const EpetraExt::MultiComm> Stokhos::ResponseStatisticModelEvaluator::sg_comm
protected

Parallel SG communicator.

Definition at line 87 of file Stokhos_ResponseStatisticModelEvaluator.hpp.

Teuchos::RCP<const Epetra_BlockMap> Stokhos::ResponseStatisticModelEvaluator::block_map
protected

Map for stochastic blocks.

Definition at line 90 of file Stokhos_ResponseStatisticModelEvaluator.hpp.

int Stokhos::ResponseStatisticModelEvaluator::num_p
protected

Number of parameters.

Definition at line 93 of file Stokhos_ResponseStatisticModelEvaluator.hpp.

int Stokhos::ResponseStatisticModelEvaluator::num_g
protected

Number of responses.

Definition at line 96 of file Stokhos_ResponseStatisticModelEvaluator.hpp.


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