16 #ifndef GEOS_FUNCTIONS_SYMBOLICFUNCTION_HPP_
17 #define GEOS_FUNCTIONS_SYMBOLICFUNCTION_HPP_
21 #include <mathpresso/mathpresso.h>
66 FunctionBase::evaluateT< SymbolicFunction >( group, time,
set, result );
76 return parserExpression.evaluate(
reinterpret_cast< void *
>(
const_cast< real64 *
>(input) ) );
96 mathpresso::Context parserContext;
97 mathpresso::Expression parserExpression;
virtual void initializeFunction() override
Initialize the table function.
virtual ~SymbolicFunction() override
The destructor.
real64 evaluate(real64 const *const input) const override final
Method to evaluate a function.
void setSymbolicExpression(string expression)
Set the symbolic expression.
static string catalogName()
The catalog name interface.
void setSymbolicVariableNames(string_array variableNames)
Set the symbolic variable names.
void evaluate(dataRepository::Group const &group, real64 const time, SortedArrayView< localIndex const > const &set, arrayView1d< real64 > const &result) const override final
Method to evaluate a function on a target object.
SymbolicFunction(const string &name, dataRepository::Group *const parent)
Constructor.
ArrayView< T, 1 > arrayView1d
Alias for 1D array view.
array1d< string > string_array
A 1-dimensional array of geos::string types.
std::set< T > set
A set of local indices.
double real64
64-bit floating point type.
LvArray::SortedArrayView< T, localIndex, LvArray::ChaiBuffer > SortedArrayView
A sorted array view of local indices.