The compiler says it can't equality-compare xtensor_fixed::shape() and xscalar::shape(). The former is an xt::const_array and the latter is an std::array, so maybe that's why.
xtensor/xiterator.hpp:1199:38: error: invalid operands to binary expression ('const xt::fixed_shape<2>' and 'const xt::fixed_shape<2>')
XTENSOR_ASSERT(this->shape() == rhs.shape());
~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
xtensor/xexception.hpp:331:50: note: expanded from macro 'XTENSOR_ASSERT'
#define XTENSOR_ASSERT(expr) XTENSOR_ASSERT_IMPL(expr, __FILE__, __LINE__)
^~~~
xtensor/xexception.hpp:333:11: note: expanded from macro 'XTENSOR_ASSERT_IMPL'
if (!(expr)) \
^~~~
xtensor/xiterator.hpp:1213:20: note: in instantiation of member function 'xt::xiterator<xt::xfunction_stepper<xt::detail::less_equal, const xt::xfixed_container<int, xt::fixed_shape<2>, xt::layout_type::row_major> &, xt::xscalar<int>>, xt::fixed_shape<2> *, xt::layout_type::row_major>::equal' requested here
return lhs.equal(rhs);
This used to compile fine somewhere around version 0.23.4
Activity