Vectorized the mag and phase calculations.