Theoretica
A C++ numerical and automatic mathematical library
function.h
Go to the documentation of this file.
1 
5 
6 #ifndef THEORETICA_FUNCTION_H
7 #define THEORETICA_FUNCTION_H
8 
9 #include "./constants.h"
10 #include "../complex/complex.h"
11 #include "../algebra/vec.h"
12 
13 #include <functional>
14 
15 
16 namespace theoretica {
17 
18 
20  using real_function = std::function<real(real)>;
21 
22 
24  using complex_function = std::function<complex<>(complex<>)>;
25 
26 
30  using stat_function = std::function<real(real, const vec<real>&)>;
31 
32 }
33 
34 
35 
36 #endif
Complex number in algebraic form .
Definition: complex.h:26
Mathematical constants and default algorithm parameters.
Main namespace of the library which contains all functions and objects.
Definition: algebra.h:27
double real
A real number, defined as a floating point type.
Definition: constants.h:188
std::function< real(real, const vec< real > &)> stat_function
Function pointer to a probability distribution function where the first argument is the variable and ...
Definition: function.h:30
std::function< real(real)> real_function
Function pointer to a real function of real variable.
Definition: function.h:20
std::function< complex<>(complex<>)> complex_function
Function pointer to a complex function of complex variable.
Definition: function.h:24