Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
functions.h
Go to the documentation of this file.
1#ifndef FUNCTIONS_H
2#define FUNCTIONS_H
3
4#include <vector>
5#include <functional>
6#include <limits>
7#include <algorithm>
8#include "scalar.h"
9
10using RealValuedFunction = std::function<double(double)>;
11using RealValuedForm = std::function<double(std::vector<double>)>;
12using ComplexValuedFunction = std::function<scalar_t(double)>;
13
14struct ScaledForm {
16 std::vector<double> x0;
17 std::vector<double> s;
18
19 ScaledForm(const RealValuedForm& f, const std::vector<double>& x0, const std::vector<double>& scales);
20 double operator()(const std::vector<double>& t) const;
21};
22
23#endif // FUNCTIONS_H
std::function< scalar_t(double)> ComplexValuedFunction
Definition functions.h:12
std::function< double(double)> RealValuedFunction
Definition functions.h:10
std::function< double(std::vector< double >)> RealValuedForm
Definition functions.h:11
RealValuedForm f
Definition functions.h:15
std::vector< double > s
Definition functions.h:17
std::vector< double > x0
Definition functions.h:16
double operator()(const std::vector< double > &t) const
Definition functions.cpp:5