| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <functional> | ||
| 4 | #include <string> | ||
| 5 | #include <tuple> | ||
| 6 | #include <utility> | ||
| 7 | #include <vector> | ||
| 8 | |||
| 9 | #include "task/include/task.hpp" | ||
| 10 | |||
| 11 | namespace chernykh_s_trapezoidal_integration { | ||
| 12 | |||
| 13 |
2/4✓ Branch 0 taken 1344 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 168 times.
✗ Branch 3 not taken.
|
1512 | struct IntegrationInType { |
| 14 | std::vector<std::pair<double, double>> limits; | ||
| 15 | std::vector<int> steps; | ||
| 16 | std::function<double(const std::vector<double> &)> func; | ||
| 17 | |||
| 18 | IntegrationInType() = default; | ||
| 19 | |||
| 20 | IntegrationInType(std::vector<std::pair<double, double>> l, std::vector<int> s, | ||
| 21 | std::function<double(const std::vector<double> &)> f) | ||
| 22 | : limits(std::move(l)), steps(std::move(s)), func(std::move(f)) {} | ||
| 23 | }; | ||
| 24 | |||
| 25 | using InType = IntegrationInType; | ||
| 26 | using OutType = double; | ||
| 27 | using TestType = std::tuple<InType, OutType, std::string>; | ||
| 28 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 29 | |||
| 30 | } // namespace chernykh_s_trapezoidal_integration | ||
| 31 |