broadcast_to

astropy.utils.masked.function_helpers.broadcast_to(array, shape, subok=False)[source]

Broadcast array to the given shape.

Like numpy.broadcast_to, and applied to both unmasked data and mask. Note that subok is taken to mean whether or not subclasses of the unmasked data and mask are allowed, i.e., for subok=False, a MaskedNDArray will be returned.