encode: only works correctly up to 8 dimensions but it should work up to 16 --> I simply added a missing static_cast
for_each_static: only works correctly for C-layouts or for shapes which have the same extent in each dimension, always traverses the indices in C-order --> I rewrote the for_each_static_impl function such that it works for any layout and traverses it in the correct stride order
encode
: only works correctly up to 8 dimensions but it should work up to 16 --> I simply added a missingstatic_cast
for_each_static
: only works correctly for C-layouts or for shapes which have the same extent in each dimension, always traverses the indices in C-order --> I rewrote thefor_each_static_impl
function such that it works for any layout and traverses it in the correct stride order