Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
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
49namespace 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
74 Teuchos::RCP< const OrthogPolyBasis<ordinal_type, value_type> >
75 getBasis() const {return Teuchos::null; }
76
78 virtual Teuchos::RCP<const Sparse3Tensor<ordinal_type, value_type> >
79 getTripleProduct() const { return Teuchos::null; }
80
81 // Operations
82 void unaryMinus(
83 OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
84 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
85
86 void plusEqual(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
87 const value_type& x);
88 void minusEqual(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
89 const value_type& x);
90 void timesEqual(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
91 const value_type& x);
92 void divideEqual(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
93 const value_type& x);
94
95 void plusEqual(
96 OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
97 const OrthogPolyApprox<ordinal_type, value_type, node_type>& x);
98 void minusEqual(
99 OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
100 const OrthogPolyApprox<ordinal_type, value_type, node_type>& x);
101 void timesEqual(
102 OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
103 const OrthogPolyApprox<ordinal_type, value_type, node_type>& x);
105 OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
106 const OrthogPolyApprox<ordinal_type, value_type, node_type>& x);
107
108 void plus(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
109 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
110 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
111 void plus(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
112 const value_type& a,
113 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
114 void plus(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
115 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
116 const value_type& b);
117 void minus(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
118 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
119 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
120 void minus(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
121 const value_type& a,
122 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
123 void minus(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
124 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
125 const value_type& b);
126 void times(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
127 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
128 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
129 void times(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
130 const value_type& a,
131 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
132 void times(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
133 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
134 const value_type& b);
135 void divide(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
136 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
137 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
138 void divide(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
139 const value_type& a,
140 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
141 void divide(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
142 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
143 const value_type& b);
144
145 void exp(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
146 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
147 void log(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
148 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
149 void log10(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
150 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
151 void sqrt(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
152 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
153 void cbrt(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
154 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
155 void pow(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
156 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
157 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
158 void pow(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
159 const value_type& a,
160 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
161 void pow(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
162 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
163 const value_type& b);
164 void cos(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
165 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
166 void sin(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
167 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
168 void tan(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
169 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
170 void cosh(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
171 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
172 void sinh(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
173 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
174 void tanh(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
175 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
176 void acos(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
177 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
178 void asin(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
179 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
180 void atan(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
181 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
182 void atan2(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
183 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
184 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
185 void atan2(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
186 const value_type& a,
187 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
188 void atan2(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
189 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
190 const value_type& b);
191 void acosh(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
192 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
193 void asinh(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
194 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
195 void atanh(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
196 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
197 void abs(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
198 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
199 void fabs(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
200 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a);
201 void max(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
202 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
203 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
204 void max(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
205 const value_type& a,
206 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
207 void max(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
208 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
209 const value_type& b);
210 void min(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
211 const OrthogPolyApprox<ordinal_type, value_type, node_type>& a,
212 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
213 void min(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
214 const value_type& a,
215 const OrthogPolyApprox<ordinal_type, value_type, node_type>& b);
216 void min(OrthogPolyApprox<ordinal_type, value_type, node_type>& c,
217 const OrthogPolyApprox<ordinal_type, value_type, node_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
Orthogonal polynomial expansion class for constant (size 1) expansions.
ConstantOrthogPolyExpansion & operator=(const ConstantOrthogPolyExpansion &b)
void cosh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
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)
void log10(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Teuchos::RCP< const OrthogPolyBasis< ordinal_type, value_type > > getBasis() const
Get basis.
void divideEqual(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &x)
void acosh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
void asin(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
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)
void abs(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
void minusEqual(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const value_type &x)
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)
void sinh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
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)
void atan(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
void atanh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
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)
void fabs(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
ConstantOrthogPolyExpansion(const ConstantOrthogPolyExpansion &)
virtual Teuchos::RCP< const Sparse3Tensor< ordinal_type, value_type > > getTripleProduct() const
Get triple product.
void tan(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
void acos(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
void plusEqual(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const value_type &x)
void exp(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
void cos(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
void unaryMinus(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
void sin(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
void divideEqual(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const value_type &x)
Stokhos::StandardStorage< ordinal_type, value_type > node_type
void tanh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
void asinh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
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)
void timesEqual(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const value_type &x)
void log(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
void sqrt(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
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)
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)
void cbrt(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Abstract base class for orthogonal polynomial-based expansions.
Top-level namespace for Stokhos classes and functions.