Skip to content

Commit b9051e9

Browse files
committed
Partial revert "Further fixes"
1 parent 837559b commit b9051e9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/graphblas/nonblocking/blas1.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10504,11 +10504,10 @@ namespace grb {
1050410504
for( ; i < local_nz; ++i ) {
1050510505
typename AddMonoid::D3 temp =
1050610506
addMonoid.template getIdentity< typename AddMonoid::D3 >();
10507-
const size_t index_a = ( already_dense_input_x ? i : local_x.index( i ) ) +
10507+
const size_t index = ( already_dense_input_x ? i : local_x.index( i ) ) +
1050810508
lower_bound;
10509-
if( already_dense_input_y || local_y.assigned( i ) ) {
10510-
const size_t index_b = ( already_dense_input_y ? i : local_y.index( i ) ) + lower_bound;
10511-
apply( temp, a[ index_a ], b[ index_b ], anyOp );
10509+
if( already_dense_input_y || local_y.assigned( index - lower_bound ) ) {
10510+
apply( temp, a[ index ], b[ index ], anyOp );
1051210511
foldr( temp, thread_local_output, addMonoid.getOperator() );
1051310512
}
1051410513
}

0 commit comments

Comments
 (0)