unsqueeze/add redundant size-1 dimension (axis) d
import mir.ndslice; auto x = iota(3, 4, 5).as!double.slice.variable; assert(x.unsqueeze!2.shape == [3, 4, 1, 5]);
See Implementation
unsqueeze/add redundant size-1 dimension (axis) d