xshape
Defined in xtensor/core/xshape.hpp
- group Support functions to get/check a shape array.
Typedefs
Functions
-
template<class S1, class S2>
inline bool same_shape(const S1 &s1, const S2 &s2) noexcept Check if two objects have the same shape.
- Parameters:
s1 – an array
s2 – an array
- Returns:
bool
-
template<layout_type L, class S>
struct select_layout - #include <xshape.hpp>
Compute a layout based on a layout and a shape type.
The main functionality of this function is that it reduces vectors to
xt::layout_type::anyso that assigning a row major 1D container to another row_major container becomes free.
-
template<class S1, class S2>