| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "romanov_a_crs_product/seq/include/ops_seq.hpp" | ||
| 2 | |||
| 3 | #include <cstdint> | ||
| 4 | #include <utility> | ||
| 5 | |||
| 6 | #include "romanov_a_crs_product/common/include/common.hpp" | ||
| 7 | |||
| 8 | namespace romanov_a_crs_product { | ||
| 9 | |||
| 10 |
1/2✓ Branch 2 taken 40 times.
✗ Branch 3 not taken.
|
40 | RomanovACRSProductSEQ::RomanovACRSProductSEQ(const InType &in) { |
| 11 | SetTypeOfTask(GetStaticTypeOfTask()); | ||
| 12 | GetInput() = in; | ||
| 13 |
1/2✓ Branch 1 taken 40 times.
✗ Branch 2 not taken.
|
40 | GetOutput() = CRS(static_cast<uint64_t>(0)); |
| 14 | 40 | } | |
| 15 | |||
| 16 | 40 | bool RomanovACRSProductSEQ::ValidationImpl() { | |
| 17 | 40 | return (std::get<0>(GetInput()).GetCols() == std::get<1>(GetInput()).GetRows()); | |
| 18 | } | ||
| 19 | |||
| 20 | 40 | bool RomanovACRSProductSEQ::PreProcessingImpl() { | |
| 21 | 40 | return true; | |
| 22 | } | ||
| 23 | |||
| 24 | 40 | bool RomanovACRSProductSEQ::RunImpl() { | |
| 25 | const CRS &a = std::get<0>(GetInput()); | ||
| 26 | const CRS &b = std::get<1>(GetInput()); | ||
| 27 | |||
| 28 | 40 | CRS c = a * b; | |
| 29 | |||
| 30 | 40 | GetOutput() = std::move(c); | |
| 31 | |||
| 32 | 40 | return true; | |
| 33 | 40 | } | |
| 34 | |||
| 35 | 40 | bool RomanovACRSProductSEQ::PostProcessingImpl() { | |
| 36 | 40 | return true; | |
| 37 | } | ||
| 38 | |||
| 39 | } // namespace romanov_a_crs_product | ||
| 40 |