File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
include/graphblas/nonblocking Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10461,7 +10461,7 @@ namespace grb {
1046110461 for ( size_t k = 0 ; k < AnyOp::blocksize; ++k, ++i ) {
1046210462 if ( mask[ k ] ) {
1046310463 xx[ k ] = static_cast < typename AnyOp::D1 >(
10464- a[ ( already_dense_input_y ? i : local_y .index ( i ) ) + lower_bound ] );
10464+ a[ ( already_dense_input_x ? i : local_x .index ( i ) ) + lower_bound ] );
1046510465 yy[ k ] = static_cast < typename AnyOp::D2 >(
1046610466 b[ ( already_dense_input_y ? i : local_y.index ( i ) ) + lower_bound ] );
1046710467 }
@@ -10504,10 +10504,11 @@ 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 = ( already_dense_input_x ? i : local_x.index ( i ) ) +
10507+ const size_t index_a = ( already_dense_input_x ? i : local_x.index ( i ) ) +
1050810508 lower_bound;
10509- if ( already_dense_input_y || local_y.assigned ( index - lower_bound ) ) {
10510- apply ( temp, a[ index ], b[ index ], anyOp );
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 );
1051110512 foldr ( temp, thread_local_output, addMonoid.getOperator () );
1051210513 }
1051310514 }
You can’t perform that action at this time.
0 commit comments