What does an expression such as np.sqrt(arr) do to a NumPy array?
np.sqrt(arr)
It replaces every input value in place with a rounded integer root.
It sums the entire array and returns only the square root of that total.
It applies square root element by element and returns an array with the same shape.
It always flattens the array into a one-dimensional vector before calculating.