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)
 Create a polynomial for basis basis with empty coefficients.
 EpetraVectorOrthogPoly (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, int sz)
 Create a polynomial for basis basis with empty coefficients of size sz.
 EpetraVectorOrthogPoly (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, const Epetra_BlockMap &coeff_map)
 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 Epetra_BlockMap &coeff_map, int sz)
 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 Epetra_BlockMap &coeff_map, const Epetra_BlockMap &block_map)
 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, Epetra_DataAccess CV, const Epetra_BlockMap &coeff_map, 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.
 ~EpetraVectorOrthogPoly ()
 Destructor.
EpetraVectorOrthogPolyoperator= (const EpetraVectorOrthogPoly &v)
 Assignment.
EpetraVectorOrthogPolyoperator= (const Epetra_Vector &v)
 Assignment.
void assignToBlockVector (Epetra_Vector &v) const
 Assignment.
void assignFromBlockVector (const Epetra_Vector &v)
 Assignment.
void reset (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &new_basis, const Epetra_BlockMap &coeff_map)
 Reset to a new basis.
void resetCoefficients (Epetra_DataAccess CV, const Epetra_BlockMap &coeff_map, const Epetra_Vector &block_vector)
 Reset vector cofficients.
Teuchos::RCP
< EpetraExt::BlockVector > 
getBlockVector ()
 Get block vector.
Teuchos::RCP< const
EpetraExt::BlockVector > 
getBlockVector () const
 Get block vector.
void setBlockVector (const Teuchos::RCP< EpetraExt::BlockVector > &block_vec)
 Set block vector.
void computeMean (Epetra_Vector &v) const
 Compute mean.
void computeStandardDeviation (Epetra_Vector &v) const
 Compute standard deviation.

Protected Attributes

Teuchos::RCP
< EpetraExt::BlockVector > 
bv
 Block vector storing coefficients.

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 > > &  new_basis,
const Epetra_BlockMap &  coeff_map 
)

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
Generated on Wed Apr 13 09:58:14 2011 for Stokhos by  doxygen 1.6.3