// @HEADER // ***************************************************************************** // Stokhos Package // // Copyright 2009 NTESS and the Stokhos contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef STOKHOS_ALGEBRAICORTHOGPOLYEXPANSION_HPP #define STOKHOS_ALGEBRAICORTHOGPOLYEXPANSION_HPP #include "Stokhos_OrthogPolyExpansionBase.hpp" #include "Teuchos_RCP.hpp" namespace Stokhos { //! Orthogonal polynomial expansions limited to algebraic operations /*! * Implements +, -, *, / (with constant denominator), and other operations * with constant arguments. Useful for problems that only involve * algebraic operations, or constant non-algebraic operations in that it * doesn't require creation of additional data structures (like sparse * quadrature grids) that may take significant computational time. */ template class AlgebraicOrthogPolyExpansion : public OrthogPolyExpansionBase > { public: typedef Stokhos::StandardStorage node_type; //! Constructor AlgebraicOrthogPolyExpansion( const Teuchos::RCP >& basis, const Teuchos::RCP >& Cijk, const Teuchos::RCP& params = Teuchos::null); //! Destructor virtual ~AlgebraicOrthogPolyExpansion() {} // Operations void exp(OrthogPolyApprox& c, const OrthogPolyApprox& a); void log(OrthogPolyApprox& c, const OrthogPolyApprox& a); void log10(OrthogPolyApprox& c, const OrthogPolyApprox& a); void sqrt(OrthogPolyApprox& c, const OrthogPolyApprox& a); void cbrt(OrthogPolyApprox& c, const OrthogPolyApprox& a); void pow(OrthogPolyApprox& c, const OrthogPolyApprox& a, const OrthogPolyApprox& b); void pow(OrthogPolyApprox& c, const value_type& a, const OrthogPolyApprox& b); void pow(OrthogPolyApprox& c, const OrthogPolyApprox& a, const value_type& b); void cos(OrthogPolyApprox& c, const OrthogPolyApprox& a); void sin(OrthogPolyApprox& c, const OrthogPolyApprox& a); void tan(OrthogPolyApprox& c, const OrthogPolyApprox& a); void cosh(OrthogPolyApprox& c, const OrthogPolyApprox& a); void sinh(OrthogPolyApprox& c, const OrthogPolyApprox& a); void tanh(OrthogPolyApprox& c, const OrthogPolyApprox& a); void acos(OrthogPolyApprox& c, const OrthogPolyApprox& a); void asin(OrthogPolyApprox& c, const OrthogPolyApprox& a); void atan(OrthogPolyApprox& c, const OrthogPolyApprox& a); void atan2(OrthogPolyApprox& c, const OrthogPolyApprox& a, const OrthogPolyApprox& b); void atan2(OrthogPolyApprox& c, const value_type& a, const OrthogPolyApprox& b); void atan2(OrthogPolyApprox& c, const OrthogPolyApprox& a, const value_type& b); void acosh(OrthogPolyApprox& c, const OrthogPolyApprox& a); void asinh(OrthogPolyApprox& c, const OrthogPolyApprox& a); void atanh(OrthogPolyApprox& c, const OrthogPolyApprox& a); private: // Prohibit copying AlgebraicOrthogPolyExpansion(const AlgebraicOrthogPolyExpansion&); // Prohibit Assignment AlgebraicOrthogPolyExpansion& operator=(const AlgebraicOrthogPolyExpansion& b); protected: //! Short-hand for Cijk typedef typename OrthogPolyExpansionBase::Cijk_type Cijk_type; }; // class AlgebraicOrthogPolyExpansion } // namespace Stokhos #include "Stokhos_AlgebraicOrthogPolyExpansionImp.hpp" #endif // STOKHOS_ALGEBRAICORTHOGPOLYEXPANSION_HPP