GCC Code Coverage Report


Directory: ./
File: tasks/yakimov_i_mult_of_dense_matrices_fox_algorithm_seq/common/include/common.hpp
Date: 2026-04-02 17:12:27
Exec Total Coverage
Lines: 3 4 75.0%
Functions: 0 0 -%
Branches: 1 2 50.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <cstddef>
4 #include <string>
5 #include <tuple>
6 #include <vector>
7
8 #include "task/include/task.hpp"
9
10 namespace yakimov_i_mult_of_dense_matrices_fox_algorithm_seq {
11
12 using InType = int;
13 using OutType = double;
14 using TestType = std::tuple<int, std::string>;
15 using BaseTask = ppc::task::Task<InType, OutType>;
16
17 struct DenseMatrix {
18 std::vector<double> data;
19 int rows = 0;
20 int cols = 0;
21
22
1/2
✓ Branch 1 taken 40 times.
✗ Branch 2 not taken.
40 DenseMatrix() = default;
23
24 double &operator()(int i, int j) {
25 880 std::size_t index = (static_cast<std::size_t>(i) * static_cast<std::size_t>(cols)) + static_cast<std::size_t>(j);
26 return data[index];
27 }
28
29 const double &operator()(int i, int j) const {
30 768 std::size_t index = (static_cast<std::size_t>(i) * static_cast<std::size_t>(cols)) + static_cast<std::size_t>(j);
31 return data[index];
32 }
33 };
34
35 } // namespace yakimov_i_mult_of_dense_matrices_fox_algorithm_seq
36