[Numpy-discussion] 2D Hamming window

Gary Ruben gruben at bigpond.net.au
Sun Jul 27 06:32:07 EDT 2008


Henrik Ronellenfitsch wrote:
<snip>
> Thanks very much for your solution, this is exactly what I needed!
> If I'm not mistaken, though, you can achieve the same result with
> 
> h = hamming(n)
> ham2d = sqrt(outer(h,h))
> 
> which is a bit more compact.
> 
> Regards,
> Henrik

Yes, that's nicer.

regards,
Gary



More information about the NumPy-Discussion mailing list