// @HEADER // ***************************************************************************** // Stokhos Package // // Copyright 2009 NTESS and the Stokhos contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef STOKHOS_SACADO_MATH_FUNCTIONS_HPP #define STOKHOS_SACADO_MATH_FUNCTIONS_HPP #define UNARYFUNC_MACRO(OP,FADOP) \ namespace Sacado { \ \ namespace PCE { \ template class OrthogPoly; \ template \ OrthogPoly OP (const OrthogPoly&); \ } \ \ namespace ETPCE { \ template class FADOP; \ template class Expr; \ template \ Expr< FADOP< Expr > > OP (const Expr&); \ } \ \ } \ \ namespace std { \ using Sacado::PCE::OP; \ using Sacado::ETPCE::OP; \ } UNARYFUNC_MACRO(exp, ExpOp) UNARYFUNC_MACRO(log, LogOp) UNARYFUNC_MACRO(log10, Log10Op) UNARYFUNC_MACRO(sqrt, SqrtOp) UNARYFUNC_MACRO(cbrt, CbrtOp) UNARYFUNC_MACRO(cos, CosOp) UNARYFUNC_MACRO(sin, SinOp) UNARYFUNC_MACRO(tan, TanOp) UNARYFUNC_MACRO(acos, ACosOp) UNARYFUNC_MACRO(asin, ASinOp) UNARYFUNC_MACRO(atan, ATanOp) UNARYFUNC_MACRO(cosh, CoshOp) UNARYFUNC_MACRO(sinh, SinhOp) UNARYFUNC_MACRO(tanh, TanhOp) UNARYFUNC_MACRO(acosh, ACoshOp) UNARYFUNC_MACRO(asinh, ASinhOp) UNARYFUNC_MACRO(atanh, ATanhOp) UNARYFUNC_MACRO(abs, AbsOp) UNARYFUNC_MACRO(fabs, FAbsOp) #undef UNARYFUNC_MACRO #define BINARYFUNC_MACRO(OP,FADOP) \ namespace Sacado { \ \ namespace PCE { \ template class OrthogPoly; \ template \ OrthogPoly OP (const OrthogPoly&, \ const OrthogPoly&); \ template \ OrthogPoly OP (const T&, \ const OrthogPoly&); \ template \ OrthogPoly OP (const OrthogPoly&, \ const T&); \ } \ \ namespace ETPCE { \ template class FADOP; \ template class Expr; \ template class ConstExpr; \ template \ Expr< FADOP< Expr, Expr > > \ OP (const Expr&, const Expr&); \ \ template \ Expr< FADOP< Expr, Expr > > \ OP (const Expr&, const Expr&); \ \ template \ Expr< FADOP< typename Expr::value_type, Expr > > \ OP (const typename Expr::value_type&, const Expr&); \ \ template \ Expr< FADOP< Expr, typename Expr::value_type > > \ OP (const Expr&, const typename Expr::value_type&); \ } \ \ } \ \ namespace std { \ using Sacado::PCE::OP; \ using Sacado::ETPCE::OP; \ } BINARYFUNC_MACRO(atan2, Atan2Op) BINARYFUNC_MACRO(pow, PowerOp) BINARYFUNC_MACRO(max, MaxOp) BINARYFUNC_MACRO(min, MinOp) #undef BINARYFUNC_MACRO #endif // STOKHOS_SACADO_MATH_FUNCTIONS_HPP