bundles / astropy 7.0.1 / astropy / utils / shapes / unbroadcast
function
astropy.utils.shapes:unbroadcast
source: /astropy/utils/shapes.py :406
Signature
def unbroadcast ( array : NDArray[DT] ) → NDArray[DT] Summary
Given an array, return a new array that is the smallest subset of the original array that can be re-broadcasted back to the original array.
Extended Summary
See https://stackoverflow.com/questions/40845769/un-broadcasting-numpy-arrays for more details.
Aliases
-
astropy.utils.unbroadcast