Kiwaku
0.1-beta
Containers Well Made
Loading...
Searching...
No Matches
◆
compress()
[1/2]
template<std::int32_t N, auto... D>
constexpr auto kwk::compress
(
shape
< D... > const &
s
)
constexpr
noexcept
Compress a
kwk::shape
to a given order.
Template Parameters
N
Expected
Order
of the generated shape.
Parameters
s
Original shape to compress
Returns
A new
kwk::shape
instance which order has been set to N by compressing dimensions.
kwk