We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rank
xtensor_adaptor
1 parent 0548fa8 commit d32323aCopy full SHA for d32323a
include/xtensor/xtensor.hpp
@@ -225,6 +225,7 @@ namespace xt
225
using backstrides_type = typename base_type::backstrides_type;
226
using temporary_type = typename semantic_base::temporary_type;
227
using expression_tag = Tag;
228
+ constexpr static std::size_t rank = N;
229
230
xtensor_adaptor(storage_type&& storage);
231
xtensor_adaptor(const storage_type& storage);
include/xtensor/xutils.hpp
@@ -875,7 +875,7 @@ namespace xt
875
template <class E>
876
struct get_rank<E, decltype((void)E::rank, void())>
877
{
878
- constexpr static std::size_t value= E::rank;
+ constexpr static std::size_t value = E::rank;
879
};
880
881
/******************
0 commit comments