Skip to content

Commit 57d7096

Browse files
author
Christopher Armstrong
committed
Correct temporary rowptr in ArmPL SpTRSV
1 parent 210b6a9 commit 57d7096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/spblas/vendor/armpl/triangular_solve_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void triangular_solve(A&& a, Triangle uplo, DiagonalStorage diag, B&& b,
6363
auto values = a_base.values().data();
6464

6565
std::vector<T> tmp_values;
66-
std::vector<I> tmp_rowptr(n + 1);
66+
std::vector<I> tmp_rowptr(m + 1);
6767
std::vector<O> tmp_colind;
6868

6969
auto index_base = rowptr[0];
@@ -85,7 +85,7 @@ void triangular_solve(A&& a, Triangle uplo, DiagonalStorage diag, B&& b,
8585
};
8686

8787
int k = 0;
88-
for (armpl_int_t r = 0; r < n; r++) {
88+
for (armpl_int_t r = 0; r < m; r++) {
8989

9090
if (is_unit && is_upper) {
9191
tmp_colind.push_back(r);

0 commit comments

Comments
 (0)