Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
Stokhos_ConstantOrthogPolyExpansion.hpp
Go to the documentation of this file.
1 // $Id$
2 // $Source$
3 // @HEADER
4 // ***********************************************************************
5 //
6 // Stokhos Package
7 // Copyright (2009) Sandia Corporation
8 //
9 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
10 // license for use of this work by or on behalf of the U.S. Government.
11 //
12 // Redistribution and use in source and binary forms, with or without
13 // modification, are permitted provided that the following conditions are
14 // met:
15 //
16 // 1. Redistributions of source code must retain the above copyright
17 // notice, this list of conditions and the following disclaimer.
18 //
19 // 2. Redistributions in binary form must reproduce the above copyright
20 // notice, this list of conditions and the following disclaimer in the
21 // documentation and/or other materials provided with the distribution.
22 //
23 // 3. Neither the name of the Corporation nor the names of the
24 // contributors may be used to endorse or promote products derived from
25 // this software without specific prior written permission.
26 //
27 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
28 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
31 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
32 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
33 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
34 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
35 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
36 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
37 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 //
39 // Questions? Contact Eric T. Phipps (etphipp@sandia.gov).
40 //
41 // ***********************************************************************
42 // @HEADER
43 
44 #ifndef STOKHOS_CONSTANTORTHOGPOLYEXPANSION_HPP
45 #define STOKHOS_CONSTANTORTHOGPOLYEXPANSION_HPP
46 
48 
49 namespace Stokhos {
50 
52 
57  template <typename ordinal_type, typename value_type>
59  public OrthogPolyExpansion<ordinal_type, value_type> {
60  public:
61 
63 
66 
69 
71  ordinal_type size() const { return 1; }
72 
75  getBasis() const {return Teuchos::null; }
76 
79  getTripleProduct() const { return Teuchos::null; }
80 
81  // Operations
82  void unaryMinus(
85 
87  const value_type& x);
89  const value_type& x);
91  const value_type& x);
93  const value_type& x);
94 
95  void plusEqual(
98  void minusEqual(
101  void timesEqual(
104  void divideEqual(
107 
112  const value_type& a,
116  const value_type& b);
121  const value_type& a,
125  const value_type& b);
130  const value_type& a,
134  const value_type& b);
139  const value_type& a,
143  const value_type& b);
144 
159  const value_type& a,
163  const value_type& b);
186  const value_type& a,
190  const value_type& b);
205  const value_type& a,
209  const value_type& b);
214  const value_type& a,
218  const value_type& b);
219 
220  private:
221 
222  // Prohibit copying
224 
225  // Prohibit Assignment
227 
228  }; // class ConstantOrthogPolyExpansion
229 
230 } // namespace Stokhos
231 
233 
234 #endif // STOKHOS_CONSTANTORTHOGPOLYEXPANSION_HPP
Stokhos::ConstantOrthogPolyExpansion::size
ordinal_type size() const
Get expansion size.
Definition: Stokhos_ConstantOrthogPolyExpansion.hpp:71
Stokhos::ConstantOrthogPolyExpansion::sqrt
void sqrt(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:333
Stokhos::ConstantOrthogPolyExpansion::tanh
void tanh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:446
Stokhos::ConstantOrthogPolyExpansion::unaryMinus
void unaryMinus(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:53
Stokhos::ConstantOrthogPolyExpansion::plusEqual
void plusEqual(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const value_type &x)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:65
Stokhos::ConstantOrthogPolyExpansion::asinh
void asinh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:535
Stokhos::ConstantOrthogPolyExpansion::asin
void asin(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:468
Stokhos::ConstantOrthogPolyExpansion
Orthogonal polynomial expansion class for constant (size 1) expansions.
Definition: Stokhos_ConstantOrthogPolyExpansion.hpp:58
Stokhos::ConstantOrthogPolyExpansion::abs
void abs(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:568
Stokhos::ConstantOrthogPolyExpansion::atan
void atan(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:479
Stokhos::ConstantOrthogPolyExpansion::divideEqual
void divideEqual(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const value_type &x)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:98
Stokhos::ConstantOrthogPolyExpansion::min
void min(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a, const OrthogPolyApprox< ordinal_type, value_type, node_type > &b)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:615
Stokhos::ConstantOrthogPolyExpansion::minus
void minus(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a, const OrthogPolyApprox< ordinal_type, value_type, node_type > &b)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:192
TotalOrderBasisUnitTest::value_type
double value_type
Definition: Stokhos_LexicographicTreeBasisUnitTest.cpp:70
Stokhos::ConstantOrthogPolyExpansion::operator=
ConstantOrthogPolyExpansion & operator=(const ConstantOrthogPolyExpansion &b)
Stokhos::ConstantOrthogPolyExpansion::atanh
void atanh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:546
Stokhos::OrthogPolyExpansion
Abstract base class for orthogonal polynomial-based expansions.
Definition: Stokhos_OrthogPolyExpansion.hpp:59
Stokhos::ConstantOrthogPolyExpansion::times
void times(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a, const OrthogPolyApprox< ordinal_type, value_type, node_type > &b)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:228
Stokhos::ConstantOrthogPolyExpansion::tan
void tan(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:413
Stokhos::ConstantOrthogPolyExpansion::exp
void exp(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:300
Teuchos::RCP
Stokhos::ConstantOrthogPolyExpansion::acos
void acos(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:457
Stokhos_OrthogPolyExpansion.hpp
Stokhos::ConstantOrthogPolyExpansion::timesEqual
void timesEqual(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const value_type &x)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:87
Stokhos_ConstantOrthogPolyExpansionImp.hpp
TotalOrderBasisUnitTest::ordinal_type
int ordinal_type
Definition: Stokhos_LexicographicTreeBasisUnitTest.cpp:69
Stokhos::StandardStorage
Definition: Stokhos_StandardStorage.hpp:53
Stokhos::ConstantOrthogPolyExpansion::log
void log(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:311
Stokhos
Top-level namespace for Stokhos classes and functions.
Definition: Stokhos_AbstractPreconditionerFactory.hpp:48
Stokhos::ConstantOrthogPolyExpansion::atan2
void atan2(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a, const OrthogPolyApprox< ordinal_type, value_type, node_type > &b)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:490
Stokhos::ConstantOrthogPolyExpansion::ConstantOrthogPolyExpansion
ConstantOrthogPolyExpansion()
Constructor.
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:46
Stokhos::ConstantOrthogPolyExpansion::pow
void pow(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a, const OrthogPolyApprox< ordinal_type, value_type, node_type > &b)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:355
Stokhos::ConstantOrthogPolyExpansion::node_type
Stokhos::StandardStorage< ordinal_type, value_type > node_type
Definition: Stokhos_ConstantOrthogPolyExpansion.hpp:62
Stokhos::ConstantOrthogPolyExpansion::acosh
void acosh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:524
Stokhos::ConstantOrthogPolyExpansion::cos
void cos(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:402
Stokhos::ConstantOrthogPolyExpansion::plus
void plus(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a, const OrthogPolyApprox< ordinal_type, value_type, node_type > &b)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:156
cusp::detail::device::x
const IndexType const IndexType const IndexType const IndexType const ValueType const ValueType * x
Definition: csr_vector.h:260
Stokhos::ConstantOrthogPolyExpansion::cbrt
void cbrt(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:344
Stokhos::ConstantOrthogPolyExpansion::getTripleProduct
virtual Teuchos::RCP< const Sparse3Tensor< ordinal_type, value_type > > getTripleProduct() const
Get triple product.
Definition: Stokhos_ConstantOrthogPolyExpansion.hpp:79
Stokhos::ConstantOrthogPolyExpansion::getBasis
Teuchos::RCP< const OrthogPolyBasis< ordinal_type, value_type > > getBasis() const
Get basis.
Definition: Stokhos_ConstantOrthogPolyExpansion.hpp:75
Stokhos::ConstantOrthogPolyExpansion::cosh
void cosh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:435
Stokhos::ConstantOrthogPolyExpansion::divide
void divide(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a, const OrthogPolyApprox< ordinal_type, value_type, node_type > &b)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:264
Stokhos::OrthogPolyApprox
Class to store coefficients of a projection onto an orthogonal polynomial basis.
Definition: Stokhos_OrthogPolyApprox.hpp:63
Stokhos::ConstantOrthogPolyExpansion::sin
void sin(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:391
Stokhos::ConstantOrthogPolyExpansion::~ConstantOrthogPolyExpansion
virtual ~ConstantOrthogPolyExpansion()
Destructor.
Definition: Stokhos_ConstantOrthogPolyExpansion.hpp:68
Stokhos::ConstantOrthogPolyExpansion::fabs
void fabs(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:557
Stokhos::ConstantOrthogPolyExpansion::log10
void log10(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:322
Stokhos::ConstantOrthogPolyExpansion::minusEqual
void minusEqual(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const value_type &x)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:76
Stokhos::ConstantOrthogPolyExpansion::max
void max(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a, const OrthogPolyApprox< ordinal_type, value_type, node_type > &b)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:579
Stokhos::ConstantOrthogPolyExpansion::sinh
void sinh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_ConstantOrthogPolyExpansionImp.hpp:424