| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <string> | ||
| 4 | #include <vector> | ||
| 5 | |||
| 6 | #include "task/include/task.hpp" | ||
| 7 | |||
| 8 | namespace kosolapov_v_gauss_method_tape_hor_scheme { | ||
| 9 | |||
| 10 | struct LinSystem { | ||
| 11 | std::vector<std::vector<double>> matrix; | ||
| 12 | std::vector<double> r_side; | ||
| 13 | LinSystem() = default; | ||
| 14 |
1/2✓ Branch 2 taken 180 times.
✗ Branch 3 not taken.
|
180 | LinSystem(const LinSystem &other) = default; |
| 15 | 180 | LinSystem &operator=(const LinSystem &other) { | |
| 16 |
1/2✓ Branch 0 taken 180 times.
✗ Branch 1 not taken.
|
180 | if (this != &other) { |
| 17 | 180 | matrix = std::vector<std::vector<double>>(other.matrix); | |
| 18 | 360 | r_side = std::vector<double>(other.r_side); | |
| 19 | } | ||
| 20 | 180 | return *this; | |
| 21 | } | ||
| 22 | }; | ||
| 23 | |||
| 24 | using InType = LinSystem; | ||
| 25 | using OutType = std::vector<double>; | ||
| 26 | using TestType = std::string; | ||
| 27 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 28 | |||
| 29 | } // namespace kosolapov_v_gauss_method_tape_hor_scheme | ||
| 30 |