Skip to content

Commit

Permalink
Fixing reduction of arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Sep 1, 2019
1 parent 00c3029 commit 29ce10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blaze_tensor/math/expressions/DArrReduceExpr.h
Expand Up @@ -960,7 +960,7 @@ inline ElementType_t<MT> darrayreduce( const DenseArray<MT>& dm, OP op )

BLAZE_INTERNAL_ASSERT( tmp.dimensions() == (~dm).dimensions(), "Invalid number of elements" );

ET redux{};
ET redux = *( ~dm ).data(); // start with first element

ArrayForEachGrouped( ( ~dm ).dimensions(),
[&]( std::array< size_t, N > const& dims ) {
Expand Down

0 comments on commit 29ce10a

Please sign in to comment.