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 120 of file AnalyticExpressionEvaluator.cpp.

Constructor & Destructor Documentation

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

Definition at line 122 of file AnalyticExpressionEvaluator.cpp.

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

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