Skip to content

Commit

Permalink
Amend make dense_array.set(..) more generic.
Browse files Browse the repository at this point in the history
  • Loading branch information
bimalgaudel committed May 21, 2024
1 parent 4855438 commit 00663f8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/TiledArray/conversions/sparse_to_dense.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,7 @@ to_dense(DistArray<Tile, ArgPolicy> const& sparse_array) {
Tile tile(sparse_array.find(ord).get().clone());
dense_array.set(ord, tile);
} else {
if constexpr (detail::is_tensor_of_tensor_v<Tile>) {
// `zero' tiles that satisfy detail::is_tensor_of_tensor_v<Tile>
// will be left uninitialized
} else {
// see DistArray::set(ordinal, element_type)
dense_array.set(ord, 0);
}
dense_array.set(ord, typename Tile::value_type{});
}
}

Expand Down

0 comments on commit 00663f8

Please sign in to comment.