Skip to content

Commit

Permalink
Update xbuilder.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
spectre-ns authored Jan 4, 2024
1 parent 6ff2674 commit 4045fb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/xtensor/xbuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,12 @@ namespace xt
{
size_t offset = 0;
const size_t end = arr.dimension();
bool after_axis = false;
size_t after_axis = 0;
for (size_t i = 0; i < end; i++)
{
if (i == axis)
{
after_axis = true;
after_axis = 1;
}
const auto& shape = arr.shape();
const size_t stride = std::accumulate(
Expand Down

0 comments on commit 4045fb2

Please sign in to comment.