Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 495 Bytes

Zeros.__init__.md

File metadata and controls

25 lines (15 loc) · 495 Bytes

Zeros.init (function)

def __init__(self, shape, unit=None)

This is available as a top-level convenience function as nparray.zeros or nparray.zeros_like.

Arguments

  • shape (int or sequence of ints): Shape of the new array, e.g., (2, 3) or 2.
  • unit (astropy unit or string, optional, default=None): unit corresponding to the passed values.

Returns