Separately calculate the square root real and imag part in case of complex types.
data – real, complex, np.ndarray like objects.
squared data.
same type as data.