Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 487 Bytes

Ones.__init__.md

File metadata and controls

25 lines (15 loc) · 487 Bytes

Ones.init (function)

def __init__(self, shape, unit=None)

This is available as a top-level convenience function as nparray.ones or nparray.ones_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