|
Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
Generate a basis from a given set of PCE expansions that is orthogonal with respect to the product measure induced by these expansions. More...
#include <Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp>

Public Member Functions | |
| ProductLanczosGramSchmidtPCEBasis (ordinal_type p, const Teuchos::Array< Stokhos::OrthogPolyApprox< ordinal_type, value_type > > &pce, const Teuchos::RCP< const Stokhos::Quadrature< ordinal_type, value_type > > &quad, const Teuchos::RCP< const Stokhos::Sparse3Tensor< ordinal_type, value_type > > &Cijk, const Teuchos::ParameterList ¶ms=Teuchos::ParameterList()) | |
| Constructor. More... | |
| virtual | ~ProductLanczosGramSchmidtPCEBasis () |
| Destructor. More... | |
Public Member Functions inherited from Stokhos::ReducedPCEBasis< ordinal_type, value_type > | |
| ReducedPCEBasis () | |
| Default constructor. More... | |
| virtual | ~ReducedPCEBasis () |
| Destructor. More... | |
Public Member Functions inherited from Stokhos::OrthogPolyBasis< ordinal_type, value_type > | |
| OrthogPolyBasis () | |
| Constructor. More... | |
| virtual | ~OrthogPolyBasis () |
| Destructor. More... | |
Protected Types | |
| typedef Teuchos::SerialDenseVector < ordinal_type, value_type > | SDV |
| typedef Teuchos::SerialDenseMatrix < ordinal_type, value_type > | SDM |
Protected Member Functions | |
| ordinal_type | isInvariant (const Stokhos::OrthogPolyApprox< ordinal_type, value_type > &pce) const |
Protected Attributes | |
| std::string | name |
| Name of basis. More... | |
| Teuchos::ParameterList | params |
| Algorithm parameters. More... | |
| ordinal_type | pce_sz |
| Size of original pce basis. More... | |
| ordinal_type | p |
| Total order of basis. More... | |
| ordinal_type | d |
| Total dimension of basis. More... | |
| ordinal_type | sz |
| Total size of basis. More... | |
| Teuchos::RCP < Stokhos::CompletePolynomialBasis < ordinal_type, value_type > > | tensor_lanczos_basis |
| Product Lanczos basis. More... | |
| Teuchos::Array< value_type > | norms |
| Norms. More... | |
| SDM | Q |
| Values of transformed basis at quadrature points. More... | |
| SDM | Qp |
| Coefficients of transformed basis in original basis. More... | |
| Teuchos::RCP< const Stokhos::Quadrature < ordinal_type, value_type > > | reduced_quad |
| Reduced quadrature object. More... | |
| Stokhos::OrthogPolyApprox < ordinal_type, value_type > | tmp_pce |
| Temporary pce used in invariant subspace calculations. More... | |
Private Member Functions | |
| ProductLanczosGramSchmidtPCEBasis (const ProductLanczosGramSchmidtPCEBasis &) | |
| ProductLanczosGramSchmidtPCEBasis & | operator= (const ProductLanczosGramSchmidtPCEBasis &) |
Implementation of Stokhos::OrthogPolyBasis methods | |
| ordinal_type | order () const |
| Return order of basis. More... | |
| ordinal_type | dimension () const |
| Return dimension of basis. More... | |
| virtual ordinal_type | size () const |
| Return total size of basis. More... | |
| virtual const Teuchos::Array < value_type > & | norm_squared () const |
| Return array storing norm-squared of each basis polynomial. More... | |
| virtual const value_type & | norm_squared (ordinal_type i) const |
Return norm squared of basis polynomial i. More... | |
| virtual Teuchos::RCP < Stokhos::Sparse3Tensor < ordinal_type, value_type > > | computeTripleProductTensor () const |
| Compute triple product tensor. More... | |
| virtual Teuchos::RCP < Stokhos::Sparse3Tensor < ordinal_type, value_type > > | computeLinearTripleProductTensor () const |
| Compute linear triple product tensor where k = 0,1,..,d. More... | |
| virtual value_type | evaluateZero (ordinal_type i) const |
Evaluate basis polynomial i at zero. More... | |
| virtual void | evaluateBases (const Teuchos::ArrayView< const value_type > &point, Teuchos::Array< value_type > &basis_vals) const |
Evaluate basis polynomials at given point point. More... | |
| virtual void | print (std::ostream &os) const |
Print basis to stream os. More... | |
| virtual const std::string & | getName () const |
| Return string name of basis. More... | |
Implementation of Stokhos::ReducedPCEBasis methods | |
| virtual void | transformToOriginalBasis (const value_type *in, value_type *out, ordinal_type ncol=1, bool transpose=false) const |
| Transform coefficients to original basis from this basis. More... | |
| virtual void | transformFromOriginalBasis (const value_type *in, value_type *out, ordinal_type ncol=1, bool transpose=false) const |
| Transform coefficients from original basis to this basis. More... | |
| virtual Teuchos::RCP< const Stokhos::Quadrature < ordinal_type, value_type > > | getReducedQuadrature () const |
| Get reduced quadrature object. More... | |
Generate a basis from a given set of PCE expansions that is orthogonal with respect to the product measure induced by these expansions.
Given the PCE expansions, first build a an orthogonal basis for each compnent, then form the multivariate basis by a total-order tensor product. The resulting basis is not necessarily orthogonal with respect to the full measure.
Definition at line 38 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Definition at line 158 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Definition at line 159 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
| Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >::ProductLanczosGramSchmidtPCEBasis | ( | ordinal_type | p, |
| const Teuchos::Array< Stokhos::OrthogPolyApprox< ordinal_type, value_type > > & | pce, | ||
| const Teuchos::RCP< const Stokhos::Quadrature< ordinal_type, value_type > > & | quad, | ||
| const Teuchos::RCP< const Stokhos::Sparse3Tensor< ordinal_type, value_type > > & | Cijk, | ||
| const Teuchos::ParameterList & | params = Teuchos::ParameterList() |
||
| ) |
Constructor.
| p | order of the basis |
| pce | polynomial chaos expansions defining new measure |
| Cijk | sparse triple product tensor for basis defining pce |
Definition at line 20 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Destructor.
Definition at line 193 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
private |
|
virtual |
Return order of basis.
Implements Stokhos::OrthogPolyBasis< ordinal_type, value_type >.
Definition at line 200 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Return dimension of basis.
Implements Stokhos::OrthogPolyBasis< ordinal_type, value_type >.
Definition at line 208 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Return total size of basis.
Implements Stokhos::OrthogPolyBasis< ordinal_type, value_type >.
Definition at line 216 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Return array storing norm-squared of each basis polynomial.
Entry
of returned array is given by
for
where
is size()-1.
Implements Stokhos::OrthogPolyBasis< ordinal_type, value_type >.
Definition at line 224 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Return norm squared of basis polynomial i.
Implements Stokhos::OrthogPolyBasis< ordinal_type, value_type >.
Definition at line 232 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Compute triple product tensor.
The
entry of the tensor
is given by
where
represents basis polynomial
and
where
is size()-1.
Implements Stokhos::OrthogPolyBasis< ordinal_type, value_type >.
Definition at line 240 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Compute linear triple product tensor where k = 0,1,..,d.
Implements Stokhos::OrthogPolyBasis< ordinal_type, value_type >.
Definition at line 249 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Evaluate basis polynomial i at zero.
Implements Stokhos::OrthogPolyBasis< ordinal_type, value_type >.
Definition at line 258 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Evaluate basis polynomials at given point point.
Size of returned array is given by size(), and coefficients are ordered from order 0 up to size size()-1.
Implements Stokhos::OrthogPolyBasis< ordinal_type, value_type >.
Definition at line 266 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Print basis to stream os.
Implements Stokhos::OrthogPolyBasis< ordinal_type, value_type >.
Definition at line 275 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Return string name of basis.
Implements Stokhos::OrthogPolyBasis< ordinal_type, value_type >.
Definition at line 290 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Transform coefficients to original basis from this basis.
Implements Stokhos::ReducedPCEBasis< ordinal_type, value_type >.
Definition at line 298 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Transform coefficients from original basis to this basis.
Implements Stokhos::ReducedPCEBasis< ordinal_type, value_type >.
Definition at line 320 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
virtual |
Get reduced quadrature object.
Implements Stokhos::ReducedPCEBasis< ordinal_type, value_type >.
Definition at line 342 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
protected |
Definition at line 350 of file Stokhos_ProductLanczosGramSchmidtPCEBasisImp.hpp.
|
private |
|
protected |
Name of basis.
Definition at line 162 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Algorithm parameters.
Definition at line 165 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Size of original pce basis.
Definition at line 168 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Total order of basis.
Definition at line 171 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Total dimension of basis.
Definition at line 174 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Total size of basis.
Definition at line 177 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Product Lanczos basis.
Definition at line 180 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Norms.
Definition at line 183 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Values of transformed basis at quadrature points.
Definition at line 186 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Coefficients of transformed basis in original basis.
Definition at line 189 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
protected |
Reduced quadrature object.
Definition at line 192 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
|
mutableprotected |
Temporary pce used in invariant subspace calculations.
Definition at line 195 of file Stokhos_ProductLanczosGramSchmidtPCEBasis.hpp.
1.8.5