Numpy Mask Without Losing Shape

NumPy defines a new data type called the ndarray or n-dimensional array. Replacements for the standard functions of the math module exist. W...