brainunit.math.zeros#
- brainunit.math.zeros(shape, dtype=None, unit=Unit('1'))#
Return a new quantity or array of given shape and type, filled with zeros.
- Parameters:
- Returns:
out – Array of zeros with the given shape and dtype.
- Return type:
Array|Quantity
Examples
>>> import saiunit as u >>> u.math.zeros((3,)) Array([0., 0., 0.], dtype=float32) >>> u.math.zeros((2,), unit=u.second) Quantity([0. 0.], "s")