Construct a new slice, filled with zeroes, of element type E and shape(lengths ...).
elements of shape
new zeroes slice
import mir.algorithm.iteration : all; // ------- // | 0 0 0 | // | 0 0 0 | // ------- auto z = zeros(2, 3); assert(z.all!(x => x == 0)); assert(z.shape == [2, 3]); assert(z == zeros([2, 3]));
See Implementation
Construct a new slice, filled with zeroes, of element type E and shape(lengths ...).