Theoretica
Scientific Computing
Loading...
Searching...
No Matches
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
16namespace theoretica {
17
18
20 using real_function = std::function<real(real)>;
21
22
26 using stat_function = std::function<real(real, const vec<real>&)>;
27
28}
29
30
31
32#endif
A statically allocated N-dimensional vector with elements of the given type.
Definition vec.h:92
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:207
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:26
std::function< real(real)> real_function
Function pointer to a real function of real variable.
Definition function.h:20