| 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 |