| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "viderman_a_elem_vec_sum/seq/include/ops_seq.hpp" | ||
| 2 | |||
| 3 | #include <numeric> | ||
| 4 | |||
| 5 | #include "viderman_a_elem_vec_sum/common/include/common.hpp" | ||
| 6 | |||
| 7 | namespace viderman_a_elem_vec_sum { | ||
| 8 | |||
| 9 |
1/2✓ Branch 1 taken 122 times.
✗ Branch 2 not taken.
|
122 | VidermanAElemVecSumSEQ::VidermanAElemVecSumSEQ(const InType &in) { |
| 10 | SetTypeOfTask(GetStaticTypeOfTask()); | ||
| 11 |
1/2✓ Branch 1 taken 122 times.
✗ Branch 2 not taken.
|
122 | GetInput() = in; |
| 12 | 122 | GetOutput() = 0.0; | |
| 13 | 122 | } | |
| 14 | |||
| 15 | 122 | bool VidermanAElemVecSumSEQ::ValidationImpl() { | |
| 16 | 122 | return (GetOutput() == 0.0); | |
| 17 | } | ||
| 18 | |||
| 19 | 122 | bool VidermanAElemVecSumSEQ::PreProcessingImpl() { | |
| 20 | 122 | return true; | |
| 21 | } | ||
| 22 | |||
| 23 | 122 | bool VidermanAElemVecSumSEQ::RunImpl() { | |
| 24 | const auto &input = GetInput(); | ||
| 25 | 122 | GetOutput() = std::accumulate(input.begin(), input.end(), 0.0); | |
| 26 | 122 | return true; | |
| 27 | } | ||
| 28 | |||
| 29 | 122 | bool VidermanAElemVecSumSEQ::PostProcessingImpl() { | |
| 30 | 122 | return true; | |
| 31 | } | ||
| 32 | |||
| 33 | } // namespace viderman_a_elem_vec_sum | ||
| 34 |