GCC Code Coverage Report


Directory: ./
File: tasks/borunov_v_complex_ccs/common/include/common.hpp
Date: 2026-05-11 08:26:31
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 0 -%
Branches: 0 0 -%

Line Branch Exec Source
1 #pragma once
2
3 #include <complex>
4 #include <tuple>
5 #include <utility>
6 #include <vector>
7
8 #include "task/include/task.hpp"
9
10 namespace borunov_v_complex_ccs {
11
12 struct SparseMatrix {
13 int num_rows = 0;
14 int num_cols = 0;
15 std::vector<std::complex<double>> values;
16 std::vector<int> row_indices;
17 std::vector<int> col_ptrs;
18
19 bool operator==(const SparseMatrix &other) const {
20 return num_rows == other.num_rows && num_cols == other.num_cols && values == other.values &&
21 row_indices == other.row_indices && col_ptrs == other.col_ptrs;
22 }
23 };
24
25 using InType = std::pair<SparseMatrix, SparseMatrix>;
26 using OutType = std::vector<SparseMatrix>;
27 using TestType = std::tuple<int, int, int>;
28 using BaseTask = ppc::task::Task<InType, OutType>;
29
30 } // namespace borunov_v_complex_ccs
31