zeros#
- rbc.stdlib.creation_functions.zeros(shape, dtype=None)#
Return a new array of given shape and type, filled with zeros.
Examples
>>> from rbc.stdlib import array_api >>> @heavydb('double[](int64)') ... def zeros(size): ... return array_api.zeros(size) >>> zeros(3).execute() array([0., 0., 0.], dtype=float32)
>>> @heavydb('int64[](int64)') ... def zeros2(size): ... return array_api.zeros(size, 'int64') >>> zeros2(2).execute() array([0, 0])