Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
Stokhos_PseudoSpectralOrthogPolyExpansion.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_PSEUDOSPECTRAL_ORTHOG_POLY_EXPANSION_HPP
45 #define STOKHOS_PSEUDOSPECTRAL_ORTHOG_POLY_EXPANSION_HPP
46 
49 
50 #include "Teuchos_RCP.hpp"
51 #include "Teuchos_Array.hpp"
53 
54 namespace Stokhos {
55 
57  template <typename ordinal_type, typename value_type,
58  typename point_compare_type =
61  value_type> >
63  public OrthogPolyExpansionBase<ordinal_type, value_type, node_type> {
64  public:
65 
71  const Teuchos::RCP<Teuchos::ParameterList>& params = Teuchos::null);
72 
75 
76  void timesEqual(
78  const value_type& x);
79  void divideEqual(
81  const value_type& x);
82 
83  void timesEqual(
86  void divideEqual(
89 
90 
95  const value_type& a,
99  const value_type& b);
104  const value_type& a,
108  const value_type& b);
109 
124  const value_type& a,
128  const value_type& b);
151  const value_type& a,
155  const value_type& b);
162 
163  template <typename FuncT>
164  void nary_op(const FuncT& func,
167 
168  template <typename ExprT1, typename ExprT2>
169  value_type compute_times_coeff(ordinal_type k, const ExprT1& a,
170  const ExprT2& b) const;
171 
172  template <typename ExprT1, typename ExprT2>
174  const ExprT2& b) const;
175 
176  private:
177 
178  // Prohibit copying
180 
181  // Prohibit Assignment
183 
184  protected:
185 
188 
191 
194 
197 
200 
203 
206 
209 
212 
215 
218 
219  public:
220 
222  template <typename FuncT>
223  void unary_op(
224  const FuncT& func,
227 
229  template <typename FuncT>
230  void binary_op(
231  const FuncT& func,
235 
237  template <typename FuncT>
238  void binary_op(
239  const FuncT& func,
241  const value_type& a,
243 
245  template <typename FuncT>
246  void binary_op(
247  const FuncT& func,
250  const value_type& b);
251 
252  protected:
253 
254  struct times_quad_func {
255  value_type operator() (const value_type& a, const value_type& b) const {
256  return a * b;
257  }
258  };
259 
260  struct div_quad_func {
261  value_type operator() (const value_type& a, const value_type& b) const {
262  return a / b;
263  }
264  };
265 
266  struct exp_quad_func {
267  value_type operator() (const value_type& a) const {
268  return std::exp(a);
269  }
270  };
271 
272  struct log_quad_func {
273  value_type operator() (const value_type& a) const {
274  return std::log(a);
275  }
276  };
277 
278  struct log10_quad_func {
279  value_type operator() (const value_type& a) const {
280  return std::log10(a);
281  }
282  };
283 
284  struct sqrt_quad_func {
285  value_type operator() (const value_type& a) const {
286  return std::sqrt(a);
287  }
288  };
289 
290  struct cbrt_quad_func {
291  value_type operator() (const value_type& a) const {
292  return std::cbrt(a);
293  }
294  };
295 
296  struct pow_quad_func {
297  value_type operator() (const value_type& a, const value_type& b) const {
298  return std::pow(a,b);
299  }
300  };
301 
302  struct cos_quad_func {
303  value_type operator() (const value_type& a) const {
304  return std::cos(a);
305  }
306  };
307 
308  struct sin_quad_func {
309  value_type operator() (const value_type& a) const {
310  return std::sin(a);
311  }
312  };
313 
314  struct tan_quad_func {
315  value_type operator() (const value_type& a) const {
316  return std::tan(a);
317  }
318  };
319 
320  struct cosh_quad_func {
321  value_type operator() (const value_type& a) const {
322  return std::cosh(a);
323  }
324  };
325 
326  struct sinh_quad_func {
327  value_type operator() (const value_type& a) const {
328  return std::sinh(a);
329  }
330  };
331 
332  struct tanh_quad_func {
333  value_type operator() (const value_type& a) const {
334  return std::tanh(a);
335  }
336  };
337 
338  struct acos_quad_func {
339  value_type operator() (const value_type& a) const {
340  return std::acos(a);
341  }
342  };
343 
344  struct asin_quad_func {
345  value_type operator() (const value_type& a) const {
346  return std::asin(a);
347  }
348  };
349 
350  struct atan_quad_func {
351  value_type operator() (const value_type& a) const {
352  return std::atan(a);
353  }
354  };
355 
356  struct atan2_quad_func {
357  value_type operator() (const value_type& a, const value_type& b) const {
358  return std::atan2(a,b);
359  }
360  };
361 
362  struct acosh_quad_func {
363  value_type operator() (const value_type & a) const {
364  return std::log(a+std::sqrt(a*a-value_type(1.0)));
365  }
366  };
367 
368  struct asinh_quad_func {
369  value_type operator() (const value_type& a) const {
370  return std::log(a+std::sqrt(a*a+value_type(1.0)));
371  }
372  };
373 
374  struct atanh_quad_func {
375  value_type operator() (const value_type& a) const {
376  return 0.5*std::log((value_type(1.0)+a)/(value_type(1.0)-a));
377  }
378  };
379 
380  }; // class PseudoSpectralOrthogPolyExpansion
381 
382 } // namespace Stokhos
383 
385 
386 #endif // STOKHOS_QUADORTHOGPOLYEXPANSION_HPP
Stokhos::PseudoSpectralOrthogPolyExpansion::log10_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:278
Stokhos::OrthogPolyExpansionBase::basis
Teuchos::RCP< const OrthogPolyBasis< ordinal_type, value_type > > basis
Basis.
Definition: Stokhos_OrthogPolyExpansionBase.hpp:186
Stokhos::DefaultPointCompare::type
LexographicLess< TensorProductElement< ordinal_type, value_type >, FloatingPointLess< value_type > > type
Definition: Stokhos_PseudoSpectralOperator.hpp:56
Stokhos::PseudoSpectralOrthogPolyExpansion::atan2_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:356
Stokhos::PseudoSpectralOrthogPolyExpansion::log10
void log10(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:548
Teuchos_RCP.hpp
Stokhos::PseudoSpectralOrthogPolyExpansion::fast_compute_times_coeff
value_type fast_compute_times_coeff(ordinal_type k, const ExprT1 &a, const ExprT2 &b) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:820
Stokhos::PseudoSpectralOperator< ordinal_type, value_type, point_compare_type >
Stokhos::PseudoSpectralOrthogPolyExpansion::times_quad_func::operator()
value_type operator()(const value_type &a, const value_type &b) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:255
Stokhos::PseudoSpectralOrthogPolyExpansion::acosh
void acosh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:716
Stokhos::PseudoSpectralOrthogPolyExpansion::cbrt
void cbrt(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:566
Stokhos::OrthogPolyExpansionBase::params
Teuchos::RCP< Teuchos::ParameterList > params
Parameter list.
Definition: Stokhos_OrthogPolyExpansionBase.hpp:195
Stokhos::PseudoSpectralOrthogPolyExpansion::navals
Teuchos::Array< Teuchos::Array< SDV > > navals
Temporary array for values of n-ary arguments at quad points.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:214
Stokhos::PseudoSpectralOrthogPolyExpansion::divideEqual
void divideEqual(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const value_type &x)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:396
Sacado::UQ::cosh
KOKKOS_INLINE_FUNCTION PCE< Storage > cosh(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:1033
Stokhos::PseudoSpectralOrthogPolyExpansion::asinh
void asinh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:725
Stokhos::PseudoSpectralOrthogPolyExpansion::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_PseudoSpectralOrthogPolyExpansionImp.hpp:686
Stokhos::PseudoSpectralOrthogPolyExpansion::tan_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:315
Stokhos::PseudoSpectralOrthogPolyExpansion::log10_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:279
Stokhos::OrthogPolyExpansionBase::Cijk
Teuchos::RCP< const Stokhos::Sparse3Tensor< ordinal_type, value_type > > Cijk
Triple-product tensor.
Definition: Stokhos_OrthogPolyExpansionBase.hpp:192
Stokhos::PseudoSpectralOrthogPolyExpansion::cosh_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:320
Stokhos::PseudoSpectralOrthogPolyExpansion::sqrt_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:284
Stokhos::PseudoSpectralOrthogPolyExpansion::times_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:254
Stokhos::PseudoSpectralOrthogPolyExpansion::atan
void atan(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:677
Stokhos::PseudoSpectralOrthogPolyExpansion::tan_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:314
Stokhos::PseudoSpectralOrthogPolyExpansion::~PseudoSpectralOrthogPolyExpansion
virtual ~PseudoSpectralOrthogPolyExpansion()
Destructor.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:74
Stokhos::PseudoSpectralOrthogPolyExpansion::asin_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:345
Stokhos::PseudoSpectralOrthogPolyExpansion::binary_op
void binary_op(const FuncT &func, 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)
Nonlinear binary function.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:132
Stokhos::PseudoSpectralOrthogPolyExpansion::exp_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:267
Sacado::UQ::atan
KOKKOS_INLINE_FUNCTION PCE< Storage > atan(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:1101
Sacado::UQ::exp
KOKKOS_INLINE_FUNCTION PCE< Storage > exp(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:827
Stokhos::PseudoSpectralOrthogPolyExpansion::div_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:260
Stokhos::PseudoSpectralOrthogPolyExpansion::nary_op
void nary_op(const FuncT &func, OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > **a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:306
Stokhos::PseudoSpectralOrthogPolyExpansion::timesEqual
void timesEqual(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const value_type &x)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:386
Stokhos::PseudoSpectralOrthogPolyExpansion::cosh_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:321
TotalOrderBasisUnitTest::value_type
double value_type
Definition: Stokhos_LexicographicTreeBasisUnitTest.cpp:70
Stokhos::PseudoSpectralOrthogPolyExpansion::sqrt_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:285
Stokhos::PseudoSpectralOrthogPolyExpansion::operator=
PseudoSpectralOrthogPolyExpansion & operator=(const PseudoSpectralOrthogPolyExpansion &b)
Stokhos::PseudoSpectralOrthogPolyExpansion::cos_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:302
Stokhos::PseudoSpectralOrthogPolyExpansion::exp_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:266
Stokhos::PseudoSpectralOrthogPolyExpansion::asin_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:344
Stokhos::PseudoSpectralOrthogPolyExpansion::sin_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:309
Stokhos::PseudoSpectralOrthogPolyExpansion::Cijk_type
OrthogPolyExpansionBase< ordinal_type, value_type, node_type >::Cijk_type Cijk_type
Short-hand for Cijk.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:187
node_type
Kokkos::Serial node_type
Definition: Stokhos_SacadoTraitsUnitTest.cpp:59
Teuchos_Array.hpp
Stokhos::PseudoSpectralOrthogPolyExpansion::atanh_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:375
Stokhos::PseudoSpectralOrthogPolyExpansion
Orthogonal polynomial expansions based on numerical quadrature.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:62
Stokhos::Sparse3Tensor
Data structure storing a sparse 3-tensor C(i,j,k) in a a compressed format.
Definition: Stokhos_Sparse3Tensor.hpp:56
Sacado::UQ::log10
KOKKOS_INLINE_FUNCTION PCE< Storage > log10(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:861
Sacado::UQ::sin
KOKKOS_INLINE_FUNCTION PCE< Storage > sin(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:965
Stokhos::PseudoSpectralOrthogPolyExpansion::cos
void cos(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:614
Sacado::UQ::asin
KOKKOS_INLINE_FUNCTION PCE< Storage > asin(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:1084
Teuchos::RCP
Teuchos::Array
Stokhos::PseudoSpectralOrthogPolyExpansion::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_PseudoSpectralOrthogPolyExpansionImp.hpp:444
atan2
atan2(expr1.val(), expr2.val())
Sacado::UQ::log
KOKKOS_INLINE_FUNCTION PCE< Storage > log(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:844
Stokhos::PseudoSpectralOrthogPolyExpansion::atanh
void atanh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:734
Stokhos::PseudoSpectralOrthogPolyExpansion::sinh_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:327
Stokhos::PseudoSpectralOrthogPolyExpansion::log_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:272
TotalOrderBasisUnitTest::ordinal_type
int ordinal_type
Definition: Stokhos_LexicographicTreeBasisUnitTest.cpp:69
Stokhos::PseudoSpectralOrthogPolyExpansion::pow_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:296
Stokhos::StandardStorage
Definition: Stokhos_StandardStorage.hpp:53
Sacado::UQ::cos
KOKKOS_INLINE_FUNCTION PCE< Storage > cos(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:982
Stokhos::PseudoSpectralOrthogPolyExpansion::avals
SDV avals
Temporary array for values of first argument at quad points.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:208
Stokhos::OrthogPolyExpansionBase
Base class for consolidating common expansion implementations.
Definition: Stokhos_OrthogPolyExpansionBase.hpp:59
Stokhos::PseudoSpectralOrthogPolyExpansion::sinh
void sinh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:632
Stokhos::PseudoSpectralOrthogPolyExpansion::use_quad_for_times
bool use_quad_for_times
Use quadrature for times functions.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:193
Sacado::UQ::sinh
KOKKOS_INLINE_FUNCTION PCE< Storage > sinh(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:1016
Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp
Sacado::UQ::sqrt
KOKKOS_INLINE_FUNCTION PCE< Storage > sqrt(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:878
Sacado::UQ::tan
KOKKOS_INLINE_FUNCTION PCE< Storage > tan(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:999
Stokhos
Top-level namespace for Stokhos classes and functions.
Definition: Stokhos_AbstractPreconditionerFactory.hpp:48
Stokhos::PseudoSpectralOrthogPolyExpansion::cbrt_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:290
Stokhos::PseudoSpectralOrthogPolyExpansion::nqp
ordinal_type nqp
Number of Quad points.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:202
Stokhos::PseudoSpectralOrthogPolyExpansion::acos_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:339
Stokhos::PseudoSpectralOrthogPolyExpansion::tanh
void tanh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:650
Stokhos::PseudoSpectralOrthogPolyExpansion::log_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:273
Stokhos::PseudoSpectralOrthogPolyExpansion::use_quad_for_division
bool use_quad_for_division
Use quadrature for division functions.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:196
Stokhos::PseudoSpectralOrthogPolyExpansion::ps_op
Teuchos::RCP< const PseudoSpectralOperator< ordinal_type, value_type, point_compare_type > > ps_op
Pseudospectral operator.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:190
Stokhos::PseudoSpectralOrthogPolyExpansion::compute_times_coeff
value_type compute_times_coeff(ordinal_type k, const ExprT1 &a, const ExprT2 &b) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:744
Stokhos::PseudoSpectralOrthogPolyExpansion::asin
void asin(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:668
Stokhos::PseudoSpectralOrthogPolyExpansion::acos
void acos(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:659
Stokhos::PseudoSpectralOrthogPolyExpansion::sinh_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:326
Stokhos::PseudoSpectralOrthogPolyExpansion::pow_quad_func::operator()
value_type operator()(const value_type &a, const value_type &b) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:297
Stokhos::PseudoSpectralOrthogPolyExpansion::cosh
void cosh(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:641
Stokhos::PseudoSpectralOrthogPolyExpansion::SDV
Teuchos::SerialDenseVector< ordinal_type, value_type > SDV
Short-hand for SerialDenseVector.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:205
Stokhos::PseudoSpectralOrthogPolyExpansion::atan2_quad_func::operator()
value_type operator()(const value_type &a, const value_type &b) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:357
Stokhos::PseudoSpectralOrthogPolyExpansion::sin
void sin(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:605
Stokhos::PseudoSpectralOrthogPolyExpansion::tanh_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:332
cusp::detail::device::x
const IndexType const IndexType const IndexType const IndexType const ValueType const ValueType * x
Definition: csr_vector.h:260
Sacado::UQ::pow
KOKKOS_INLINE_FUNCTION PCE< Storage > pow(const PCE< Storage > &a, const PCE< Storage > &b)
Definition: Sacado_UQ_PCE_Imp.hpp:912
Stokhos::PseudoSpectralOrthogPolyExpansion::tan
void tan(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:623
Stokhos::OrthogPolyApprox
Class to store coefficients of a projection onto an orthogonal polynomial basis.
Definition: Stokhos_OrthogPolyApprox.hpp:63
Teuchos::SerialDenseVector< ordinal_type, value_type >
Stokhos::PseudoSpectralOrthogPolyExpansion::PseudoSpectralOrthogPolyExpansion
PseudoSpectralOrthogPolyExpansion(const Teuchos::RCP< const OrthogPolyBasis< ordinal_type, value_type > > &basis, const Teuchos::RCP< const Stokhos::Sparse3Tensor< ordinal_type, value_type > > &Cijk, const Teuchos::RCP< const PseudoSpectralOperator< ordinal_type, value_type, point_compare_type > > &ps_op, const Teuchos::RCP< Teuchos::ParameterList > &params=Teuchos::null)
Constructor.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:51
Stokhos_PseudoSpectralOperator.hpp
Stokhos::PseudoSpectralOrthogPolyExpansion::sin_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:308
Stokhos::PseudoSpectralOrthogPolyExpansion::atan_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:351
Stokhos_OrthogPolyExpansionBase.hpp
Stokhos::PseudoSpectralOrthogPolyExpansion::div_quad_func::operator()
value_type operator()(const value_type &a, const value_type &b) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:261
Stokhos::PseudoSpectralOrthogPolyExpansion::sz
ordinal_type sz
Expansions size.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:199
Stokhos::PseudoSpectralOrthogPolyExpansion::cbrt_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:291
Stokhos::PseudoSpectralOrthogPolyExpansion::acosh_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:362
Stokhos::PseudoSpectralOrthogPolyExpansion::log
void log(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:539
Stokhos::PseudoSpectralOrthogPolyExpansion::cos_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:303
Stokhos::PseudoSpectralOrthogPolyExpansion::tanh_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:333
Stokhos::PseudoSpectralOrthogPolyExpansion::unary_op
void unary_op(const FuncT &func, OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Nonlinear unary function.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:75
Sacado::UQ::tanh
KOKKOS_INLINE_FUNCTION PCE< Storage > tanh(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:1050
Stokhos::PseudoSpectralOrthogPolyExpansion::asinh_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:369
Sacado::UQ::cbrt
KOKKOS_INLINE_FUNCTION PCE< Storage > cbrt(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:895
Teuchos_SerialDenseVector.hpp
Stokhos::PseudoSpectralOrthogPolyExpansion::atan_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:350
Stokhos::PseudoSpectralOrthogPolyExpansion::asinh_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:368
Sacado::UQ::acos
KOKKOS_INLINE_FUNCTION PCE< Storage > acos(const PCE< Storage > &a)
Definition: Sacado_UQ_PCE_Imp.hpp:1067
Stokhos::PseudoSpectralOrthogPolyExpansion::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_PseudoSpectralOrthogPolyExpansionImp.hpp:575
Stokhos::PseudoSpectralOrthogPolyExpansion::bvals
SDV bvals
Temporary array for values of second argument at quad points.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:211
Stokhos::PseudoSpectralOrthogPolyExpansion::fvals
SDV fvals
Temporary array for values of operation at quad points.
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:217
Stokhos::PseudoSpectralOrthogPolyExpansion::sqrt
void sqrt(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:557
Stokhos::PseudoSpectralOrthogPolyExpansion::acos_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:338
Stokhos::PseudoSpectralOrthogPolyExpansion::exp
void exp(OrthogPolyApprox< ordinal_type, value_type, node_type > &c, const OrthogPolyApprox< ordinal_type, value_type, node_type > &a)
Definition: Stokhos_PseudoSpectralOrthogPolyExpansionImp.hpp:530
Stokhos::PseudoSpectralOrthogPolyExpansion::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_PseudoSpectralOrthogPolyExpansionImp.hpp:477
Stokhos::OrthogPolyBasis
Abstract base class for multivariate orthogonal polynomials.
Definition: Stokhos_OrthogPolyBasis.hpp:74
Stokhos::PseudoSpectralOrthogPolyExpansion::acosh_quad_func::operator()
value_type operator()(const value_type &a) const
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:363
Stokhos::PseudoSpectralOrthogPolyExpansion::atanh_quad_func
Definition: Stokhos_PseudoSpectralOrthogPolyExpansion.hpp:374