| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <string> | ||
| 4 | #include <tuple> | ||
| 5 | #include <utility> | ||
| 6 | #include <vector> | ||
| 7 | |||
| 8 | #include "task/include/task.hpp" | ||
| 9 | |||
| 10 | namespace kotelnikova_a_double_matr_mult { | ||
| 11 | |||
| 12 | struct SparseMatrixCCS { | ||
| 13 | std::vector<double> values; | ||
| 14 | std::vector<int> row_indices; | ||
| 15 | std::vector<int> col_ptrs; | ||
| 16 | int rows; | ||
| 17 | int cols; | ||
| 18 | |||
| 19 | 80 | SparseMatrixCCS() : rows(0), cols(0) {} | |
| 20 | |||
| 21 |
1/4✓ Branch 1 taken 384 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
|
384 | SparseMatrixCCS(int n_rows, int n_cols) : col_ptrs(n_cols + 1, 0), rows(n_rows), cols(n_cols) {} |
| 22 | }; | ||
| 23 | |||
| 24 | using InType = std::pair<SparseMatrixCCS, SparseMatrixCCS>; | ||
| 25 | using OutType = SparseMatrixCCS; | ||
| 26 | using TestType = std::tuple<int, int, int, std::string>; | ||
| 27 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 28 | |||
| 29 | } // namespace kotelnikova_a_double_matr_mult | ||
| 30 |