NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
muParser.cpp File Reference

Implementation of the standard floating point parser. More...

#include "muParser.h"
#include "muParserTemplateMagic.h"
#include <cmath>
#include <algorithm>
#include <numeric>
Include dependency graph for muParser.cpp:

Go to the source code of this file.

Namespaces

namespace  mu
 Namespace for mathematical applications.
 

Macros

#define PARSER_CONST_PI   3.141592653589793238462643
 Pi (what else?). More...
 
#define PARSER_CONST_E   2.718281828459045235360287
 The eulerian number. More...
 

Functions

mu::value_type parser_Sum (const mu::value_type *, int)
 This function summarizes all elements in the passed array. More...
 
mu::value_type parser_Avg (const mu::value_type *, int)
 This function calculates the average of all elements in passed array. More...
 
mu::value_type parser_Min (const mu::value_type *, int)
 This function calculates the minimal value of all elements in the passed array. More...
 
mu::value_type parser_Max (const mu::value_type *, int)
 This function calculates the maximal value of all elements in the passed array. More...
 

Detailed Description

Implementation of the standard floating point parser.

Definition in file muParser.cpp.

Macro Definition Documentation

◆ PARSER_CONST_E

#define PARSER_CONST_E   2.718281828459045235360287

The eulerian number.

Definition at line 38 of file muParser.cpp.

◆ PARSER_CONST_PI

#define PARSER_CONST_PI   3.141592653589793238462643

Pi (what else?).

Definition at line 35 of file muParser.cpp.

Function Documentation

◆ parser_Avg()

mu::value_type parser_Avg ( const value_type vElements,
int  nElements 
)

This function calculates the average of all elements in passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1157 of file functionimplementation.cpp.

Referenced by mu::Parser::Avg().

◆ parser_Max()

mu::value_type parser_Max ( const value_type vElements,
int  nElements 
)

This function calculates the maximal value of all elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1207 of file functionimplementation.cpp.

Referenced by mu::Parser::Max().

◆ parser_Min()

mu::value_type parser_Min ( const value_type vElements,
int  nElements 
)

This function calculates the minimal value of all elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1172 of file functionimplementation.cpp.

Referenced by mu::Parser::Min().

◆ parser_Sum()

mu::value_type parser_Sum ( const value_type vElements,
int  nElements 
)

This function summarizes all elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1134 of file functionimplementation.cpp.

Referenced by mu::Parser::Sum().