.. _docs-meteoinfolab-numeric-funcitons-zeros: ******************* zeros ******************* .. currentmodule:: mipylib.numeric.minum .. function:: zeros(shape, dtype='float') Create a new aray of given shape and type, filled with zeros. :param shape: (*int or sequence of ints*) Shape of the new array, e.g., ``(2, 3)`` or ``2``. :param dtype: (*data-type, optional*) The desired data-type for the array, including 'int', 'float' and 'double'. :returns: (*MIArray*) Array of zeros with the given shape and dtype. Examples :: >>> zeros(5) array([0.0, 0.0, 0.0, 0.0, 0.0]) >>> zeros(5, dtype='int') array([0, 0, 0, 0, 0]) >>> zeros((2, 1)) array([[0.0] [0.0]])