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 thatsubok
is taken to mean whether or not subclasses of the unmasked data and mask are allowed, i.e., forsubok=False
, aMaskedNDArray
will be returned.