| 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 kutergin_v_multidimensional_integration_rect_method { | ||
| 12 | |||
| 13 |
2/4✓ Branch 0 taken 1680 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 140 times.
✗ Branch 3 not taken.
|
1820 | struct IntegrationData { |
| 14 | std::vector<std::pair<double, double>> limits; // вектор пар {a, b} - границ каждой из n размерностей | ||
| 15 | std::vector<int> n_steps; // количество шагов для каждой из n размерностей | ||
| 16 | std::function<double(const std::vector<double> &)> func; // сама функция | ||
| 17 | }; | ||
| 18 | |||
| 19 | using InType = IntegrationData; | ||
| 20 | using OutType = double; | ||
| 21 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 22 | using TestType = std::tuple<InType, OutType, std::string>; | ||
| 23 | |||
| 24 | } // namespace kutergin_v_multidimensional_integration_rect_method | ||
| 25 |