Slight optimisation to cabs(inframe[i])