
Re: Efficiently computing large numbers of vector norms
Posted:
Nov 8, 2012 1:11 AM


I believe that instead of taking absolute values of complex numbers and squaring, it is faster to multiply by the conjugate.
Instead of this:
M = something; Z = sum(abs(M).^2),2)
Do this:
M = something; Z = sum(M.*conj(M),2)

