We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d7f2ffc + df93239 commit af4403eCopy full SHA for af4403e
include/xtensor/xindex_view.hpp
@@ -11,6 +11,7 @@
11
#define XTENSOR_INDEX_VIEW_HPP
12
13
#include <algorithm>
14
+#include <array>
15
#include <cstddef>
16
#include <tuple>
17
#include <type_traits>
@@ -791,7 +792,7 @@ namespace xt
791
792
inline auto index_view(E&& e, const xindex (&indices)[L]) noexcept
793
{
794
using view_type = xindex_view<xclosure_t<E>, std::array<xindex, L>>;
- return view_type(std::forward<E>(e), to_array(indices));
795
+ return view_type(std::forward<E>(e), xt::to_array(indices));
796
}
797
798
/**
0 commit comments