| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <functional> | ||
| 4 | #include <string> | ||
| 5 | #include <tuple> | ||
| 6 | #include <vector> | ||
| 7 | |||
| 8 | #include "task/include/task.hpp" | ||
| 9 | |||
| 10 | namespace tochilin_e_integral_trapezium { | ||
| 11 | |||
| 12 | ✗ | struct IntegralInput { | |
| 13 | std::vector<double> lower_bounds; | ||
| 14 | std::vector<double> upper_bounds; | ||
| 15 | int num_steps{0}; | ||
| 16 | std::function<double(const std::vector<double> &)> func; | ||
| 17 | }; | ||
| 18 | |||
| 19 | using InType = IntegralInput; | ||
| 20 | using OutType = double; | ||
| 21 | using TestType = std::tuple<int, std::string>; | ||
| 22 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 23 | |||
| 24 | } // namespace tochilin_e_integral_trapezium | ||
| 25 |