Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_GaussPattersonLegendreBasis.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Stokhos Package
4 //
5 // Copyright 2009 NTESS and the Stokhos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef STOKHOS_GAUSS_PATTERSON_LEGENDRE_BASIS_HPP
11 #define STOKHOS_GAUSS_PATTERSON_LEGENDRE_BASIS_HPP
12 
14 
15 namespace Stokhos {
16 
18 
22  template <typename ordinal_type, typename value_type>
24  public LegendreBasis<ordinal_type, value_type> {
25  public:
26 
28 
33  bool isotropic = false);
34 
37 
39 
40 
50  virtual void
51  getQuadPoints(ordinal_type quad_order,
55 
61 
73 
76 
78  virtual ordinal_type pointGrowth(ordinal_type n) const;
79 
81 
82  protected:
83 
86  const GaussPattersonLegendreBasis& basis);
87 
88  private:
89 
90  // Prohibit copying
92 
93  // Prohibit Assignment
95 
96  protected:
97 
99  bool isotropic;
100 
101  }; // class GaussPattersonLegendreBasis
102 
103 } // Namespace Stokhos
104 
105 // Include template definitions
107 
108 #endif
virtual Teuchos::RCP< OneDOrthogPolyBasis< ordinal_type, value_type > > cloneWithOrder(ordinal_type p) const
Clone this object with the option of building a higher order basis.
virtual ordinal_type pointGrowth(ordinal_type n) const
Evaluate point growth rule for Smolyak-type bases.
GaussPattersonLegendreBasis & operator=(const GaussPattersonLegendreBasis &b)
virtual ordinal_type quadDegreeOfExactness(ordinal_type n) const
virtual ordinal_type coefficientGrowth(ordinal_type n) const
Evaluate coefficient growth rule for Smolyak-type bases.
Legendre polynomial basis using Gauss-Patterson quadrature points.
bool isotropic
Flag determining if expansion is iostropic (same basis in every dim)
Legendre polynomial basis.
ordinal_type p
Order of basis.
GaussPattersonLegendreBasis(ordinal_type p, bool normalize=false, bool isotropic=false)
Constructor.
int n
virtual void getQuadPoints(ordinal_type quad_order, Teuchos::Array< value_type > &points, Teuchos::Array< value_type > &weights, Teuchos::Array< Teuchos::Array< value_type > > &values) const
Compute quadrature points, weights, and values of basis polynomials at given set of points points...