Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Nektar::LibUtilities::functions Struct Reference

Public Member Functions

 functions ()

Detailed Description

This struct creates a parser that matches the function

definitions from math.h. All of the functions accept one of more NekDoubles as arguments and returns a NekDouble.

Definition at line 119 of file AnalyticExpressionEvaluator.cpp.

Constructor & Destructor Documentation

Nektar::LibUtilities::functions::functions ( )
inline

Definition at line 121 of file AnalyticExpressionEvaluator.cpp.

References Nektar::LibUtilities::ang(), Nektar::LibUtilities::awgn(), Nektar::LibUtilities::rad(), and sign.

{
// Add all of the functions from math.h
add
("abs", std::abs)
("asin", asin)
("acos", acos)
("atan", atan)
("atan2", atan2)
("ang", ang)
("ceil", ceil)
("cos", cos)
("cosh", cosh)
("exp", exp)
("fabs", fabs) // same as abs
("floor", floor)
("log", log)
("log10", log10)
("rad", rad)
("sin", sin)
("sinh", sinh)
("sqrt", sqrt)
("tan", tan)
("tanh", tanh)
// and few more custom functions
("sign", sign)
("awgn", awgn)
;
}