|
Stokhos Development
|
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>


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. | |
| EpetraVectorOrthogPoly & | operator= (const EpetraVectorOrthogPoly &v) |
| Assignment. | |
| EpetraVectorOrthogPoly & | operator= (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. | |
A container class storing an orthogonal polynomial whose coefficients are vectors, operators, or in general any type that would have an expensive copy constructor.
| 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
| 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.
1.7.4