Total number of elements in a slice
Regular slice
import mir.ndslice.topology : iota; assert(iota(3, 4, 5).elementCount == 60);
Packed slice
import mir.ndslice.topology : pack, evertPack, iota; auto slice = iota(3, 4, 5, 6, 7, 8); auto p = slice.pack!2; assert(p.elementCount == 360); assert(p[0, 0, 0, 0].elementCount == 56); assert(p.evertPack.elementCount == 56);