Mantid
Loading...
Searching...
No Matches
MuParserUtils.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidAPI/DllConfig.h"
14
15namespace Mantid {
16namespace API {
17namespace MuParserUtils {
18
24extern const MANTID_API_DLL std::map<double, std::string> MUPARSER_CONSTANTS;
25
27void MANTID_API_DLL addDefaultConstants(mu::Parser &parser);
28
29using oneVarFun = double (*)(double); // pointer to a function of one variable
30extern const MANTID_API_DLL std::map<std::string, oneVarFun> MUPARSER_ONEVAR_FUNCTIONS;
31
32void MANTID_API_DLL extraOneVarFunctions(mu::Parser &parser);
33
34} // namespace MuParserUtils
35} // namespace API
36} // namespace Mantid
void MANTID_API_DLL extraOneVarFunctions(mu::Parser &parser)
const MANTID_API_DLL std::map< std::string, oneVarFun > MUPARSER_ONEVAR_FUNCTIONS
void MANTID_API_DLL addDefaultConstants(mu::Parser &parser)
Add a set of default constants to a muParser.
const MANTID_API_DLL std::map< double, std::string > MUPARSER_CONSTANTS
Defines convenience methods to be used with the muParser mathematical expression parser.
double(*)(double) oneVarFun
Definition: MuParserUtils.h:29
Helper class which provides the Collimation Length for SANS instruments.