Stokhos Development
Public Types | Public Member Functions
Stokhos::EpetraVectorOrthogPoly Class Reference

A container class storing an orthogonal polynomial whose coefficients are vectors, operators, or in general any type that would have an expensive copy constructor. More...

#include <Stokhos_EpetraVectorOrthogPoly.hpp>

Inheritance diagram for Stokhos::EpetraVectorOrthogPoly:
Inheritance graph
[legend]
Collaboration diagram for Stokhos::EpetraVectorOrthogPoly:
Collaboration graph
[legend]

List of all members.

Public Types

typedef double value_type
 Typename of values.
typedef int ordinal_type
 Typename of ordinals.

Public Member Functions

 EpetraVectorOrthogPoly ()
 Constructor with no basis.
 EpetraVectorOrthogPoly (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, const Teuchos::RCP< const Epetra_BlockMap > &block_map)
 Create a polynomial for basis basis with empty coefficients.
 EpetraVectorOrthogPoly (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm)
 Create a polynomial for basis basis where each coefficient is generated from the supplied map.
 EpetraVectorOrthogPoly (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const Epetra_BlockMap > &product_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm)
 Create a polynomial for basis basis where each coefficient is given by a created block vector.
 EpetraVectorOrthogPoly (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const Epetra_BlockMap > &product_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm, Epetra_DataAccess CV, const Epetra_Vector &block_vector)
 Create a polynomial for basis basis where each coefficient is given by the supplied block vector.
 EpetraVectorOrthogPoly (const EpetraVectorOrthogPoly &v)
 Copy constructor.
virtual ~EpetraVectorOrthogPoly ()
 Destructor.
EpetraVectorOrthogPolyoperator= (const EpetraVectorOrthogPoly &v)
 Assignment.
void reset (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm)
 Reset to a new basis.
void reset (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const Epetra_BlockMap > &product_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm)
 Reset to a new basis.
void computeMean (Epetra_Vector &v) const
 Compute mean.
void computeVariance (Epetra_Vector &v) const
 Compute variance.
void computeStandardDeviation (Epetra_Vector &v) const
 Compute standard deviation.

Detailed Description

A container class storing an orthogonal polynomial whose coefficients are vectors, operators, or in general any type that would have an expensive copy constructor.


Constructor & Destructor Documentation

Stokhos::EpetraVectorOrthogPoly::EpetraVectorOrthogPoly ( )

Constructor with no basis.

Use with care! Generally you will want to call reset() before using any of the methods on this class.

Stokhos::EpetraVectorOrthogPoly::EpetraVectorOrthogPoly ( const EpetraVectorOrthogPoly v)

Copy constructor.

NOTE: This is a shallow copy


Member Function Documentation

Stokhos::EpetraVectorOrthogPoly & Stokhos::EpetraVectorOrthogPoly::operator= ( const EpetraVectorOrthogPoly v)

Assignment.

NOTE: This is a shallow copy

void Stokhos::EpetraVectorOrthogPoly::reset ( const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &  basis,
const Teuchos::RCP< const Epetra_BlockMap > &  block_map,
const Teuchos::RCP< const Epetra_BlockMap > &  coeff_map,
const Teuchos::RCP< const Epetra_BlockMap > &  product_map,
const Teuchos::RCP< const EpetraExt::MultiComm > &  product_comm 
)

Reset to a new basis.

This resizes array to fit new basis.

void Stokhos::EpetraVectorOrthogPoly::reset ( const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &  basis,
const Teuchos::RCP< const Epetra_BlockMap > &  block_map,
const Teuchos::RCP< const Epetra_BlockMap > &  coeff_map,
const Teuchos::RCP< const EpetraExt::MultiComm > &  product_comm 
)

Reset to a new basis.

This resizes array to fit new basis.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator