GCC Code Coverage Report


Directory: ./
File: tasks/klimovich_v_crs_complex_mat_mul/common/include/common.hpp
Date: 2026-06-04 20:25:32
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 0 0 -%
Branches: 2 3 66.7%

Line Branch Exec Source
1 #pragma once
2
3 #include <complex>
4 #include <tuple>
5 #include <vector>
6
7 #include "task/include/task.hpp"
8
9 namespace klimovich_v_crs_complex_mat_mul {
10
11 using Cplx = std::complex<double>;
12
13 constexpr double kZeroDropTol = 1e-12;
14
15 260 struct CrsMatrix {
16 int n_rows = 0;
17 int n_cols = 0;
18 std::vector<int> row_offsets;
19 std::vector<int> col_indices;
20 std::vector<Cplx> data;
21
22 CrsMatrix() = default;
23
24
2/3
✓ Branch 1 taken 10 times.
✓ Branch 2 taken 80 times.
✗ Branch 3 not taken.
770 CrsMatrix(int rows, int cols) : n_rows(rows), n_cols(cols), row_offsets(rows + 1, 0) {}
25 };
26
27 using InType = std::tuple<CrsMatrix, CrsMatrix>;
28 using OutType = CrsMatrix;
29 using TestType = std::tuple<int, int, int>;
30 using BaseTask = ppc::task::Task<InType, OutType>;
31
32 } // namespace klimovich_v_crs_complex_mat_mul
33