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