Skip to content

Commit 8013413

Browse files
committed
Fixed the interface for product reduction.
1 parent 8c57d19 commit 8013413

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/TiledArray/tile_op/tile_interface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,8 @@ namespace TiledArray {
556556
/// \param arg The argument to be multiplied
557557
/// \return A scalar that is equal to <tt>prod_i arg[i]</tt>
558558
template <typename Arg>
559-
inline typename Arg::numeric_type prod(const Arg& arg) {
560-
return arg.prod();
559+
inline typename TileTrait<Arg>::numeric_type product(const Arg& arg) {
560+
return arg.product();
561561
}
562562

563563
/// Squared vector 2-norm of the elements of a tile

src/TiledArray/tile_op/unary_reduction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ namespace TiledArray {
8787

8888
// Reduce an argument
8989
void operator()(result_type& result, const argument_type& arg) const {
90-
result *= TiledArray::prod(arg);
90+
result *= TiledArray::product(arg);
9191
}
9292

9393
}; // class ProductReduction

0 commit comments

Comments
 (0)