ones_like¶
-
astropy.utils.masked.function_helpers.
ones_like
(a, dtype=None, order='K', subok=True, shape=None)[source]¶ Return an array of ones with the same shape and type as a given array.
Like
numpy.ones_like
, but will add an all-false mask.