On Aug 27, 2009, at 3:29 PM, Ranjit Chacko wrote:
I just took the abs() of the output from the convolution to get a real valued variable for now. Is there a way to cast a complex variable to a real variable that would just drop the imaginary part? And if there is would it be faster than abs()?
NumPy arrays have .real and .imag properties. Or you can call NumPy's real() ufunc. I would think they would be faster than abs(), since they don't have to calculate a magnitude.
