Add function to compute magnitude from rfft coeff