| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <string> | ||
| 4 | #include <tuple> | ||
| 5 | #include <vector> | ||
| 6 | |||
| 7 | #include "task/include/task.hpp" | ||
| 8 | |||
| 9 | namespace tsyplakov_k_mul_double_crs_matrix { | ||
| 10 | |||
| 11 | struct SparseMatrixCRS { | ||
| 12 | int rows; | ||
| 13 | int cols; | ||
| 14 | std::vector<double> values; | ||
| 15 | std::vector<int> col_index; | ||
| 16 | std::vector<int> row_ptr; | ||
| 17 | |||
| 18 | SparseMatrixCRS() : rows(0), cols(0) {} | ||
| 19 | |||
| 20 |
1/4✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
|
48 | SparseMatrixCRS(int n_rows, int n_cols) : rows(n_rows), cols(n_cols), row_ptr(n_rows + 1, 0) {} |
| 21 | }; | ||
| 22 | |||
| 23 |
4/9✓ Branch 3 taken 16 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 16 times.
✗ Branch 7 not taken.
✗ Branch 11 not taken.
✓ Branch 12 taken 4 times.
✗ Branch 13 not taken.
✓ Branch 19 taken 4 times.
✗ Branch 20 not taken.
|
64 | struct MatrixMulInput { |
| 24 | SparseMatrixCRS a; | ||
| 25 | SparseMatrixCRS b; | ||
| 26 | }; | ||
| 27 | |||
| 28 | using InType = MatrixMulInput; | ||
| 29 | using OutType = SparseMatrixCRS; | ||
| 30 | using TestType = std::tuple<int, std::string>; | ||
| 31 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 32 | |||
| 33 | } // namespace tsyplakov_k_mul_double_crs_matrix | ||
| 34 |