Files
karl/include/functions/functions.h
T

28 lines
746 B
C++
Executable File

#ifndef FUNCTIONS_H
#define FUNCTIONS_H
#include <functional>
#include <vector>
namespace D1ToD1 {
std::function<double(double)> PiecewiseLinear(std::vector<double> positions,
std::vector<double> values);
std::function<double(double)> Constant(double constant);
std::function<double(double)> Product(
std::vector<std::function<double(double)>> functions);
}; // namespace D1ToD1
namespace D3ToD1 {
std::function<double(double, double, double)> Constant(double value);
std::function<double(double, double, double)> Product(
std::function<double(double)> fi,
std::function<double(double)> fj,
std::function<double(double)> fk);
}; // namespace D3ToD1
#endif /* FUNCTIONS_H */