Stokhos Development
Public Types | Public Member Functions
Stokhos::EpetraMultiVectorOrthogPoly 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_EpetraMultiVectorOrthogPoly.hpp>

Inheritance diagram for Stokhos::EpetraMultiVectorOrthogPoly:
Inheritance graph
[legend]
Collaboration diagram for Stokhos::EpetraMultiVectorOrthogPoly:
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

 EpetraMultiVectorOrthogPoly ()
 Constructor with no basis.
 EpetraMultiVectorOrthogPoly (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.
 EpetraMultiVectorOrthogPoly (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, int num_vectors)
 Create a polynomial for basis basis where each coefficient is generated from the supplied map.
 EpetraMultiVectorOrthogPoly (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, int num_vectors)
 Create a polynomial for basis basis where each coefficient is given by a created block vector.
 EpetraMultiVectorOrthogPoly (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_MultiVector &block_vector)
 Create a polynomial for basis basis where each coefficient is given by the supplied block vector.
 EpetraMultiVectorOrthogPoly (const EpetraMultiVectorOrthogPoly &v)
 Copy constructor.
virtual ~EpetraMultiVectorOrthogPoly ()
 Destructor.
EpetraMultiVectorOrthogPolyoperator= (const EpetraMultiVectorOrthogPoly &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, int num_vectors)
 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, int num_vectors)
 Reset to a new basis.
void computeMean (Epetra_MultiVector &v) const
 Compute mean.
void computeVariance (Epetra_MultiVector &v) const
 Compute variance.
void computeStandardDeviation (Epetra_MultiVector &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::EpetraMultiVectorOrthogPoly::EpetraMultiVectorOrthogPoly ( )

Constructor with no basis.

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

Stokhos::EpetraMultiVectorOrthogPoly::EpetraMultiVectorOrthogPoly ( const EpetraMultiVectorOrthogPoly v)

Copy constructor.

NOTE: This is a shallow copy


Member Function Documentation

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

Assignment.

NOTE: This is a shallow copy

void Stokhos::EpetraMultiVectorOrthogPoly::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,
int  num_vectors 
)

Reset to a new basis.

This resizes array to fit new basis.

void Stokhos::EpetraMultiVectorOrthogPoly::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,
int  num_vectors 
)

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