GCC Code Coverage Report


Directory: ./
File: tasks/matrix_band_multiplication/common/include/common.hpp
Date: 2026-01-10 02:40:41
Exec Total Coverage
Lines: 3 3 100.0%
Functions: 0 0 -%
Branches: 1 6 16.7%

Line Branch Exec Source
1 #pragma once
2
3 #include <cstddef>
4 #include <vector>
5
6 #include "task/include/task.hpp"
7
8 namespace matrix_band_multiplication {
9
10
1/6
✓ Branch 2 taken 24 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
870 struct Matrix {
11 std::size_t rows = 0;
12 std::size_t cols = 0;
13 std::vector<double> values;
14 };
15
16 struct MatrixMulInput {
17 Matrix a;
18 Matrix b;
19 };
20
21 using InType = MatrixMulInput;
22 using OutType = Matrix;
23 using BaseTask = ppc::task::Task<InType, OutType>;
24
25 inline std::size_t FlattenIndex(std::size_t row, std::size_t col, std::size_t cols) {
26 550 const std::size_t row_offset = row * cols;
27 550 return row_offset + col;
28 }
29
30 } // namespace matrix_band_multiplication
31