mail.python.org
[Numpy-discussion] 2D Hamming window
I'm looking for a 2D hamming window function. > As far as I can see, numpy only supports 1D windows > and googling didn't show a simple way of extending it > in two dimensions. > >
I'm looking for a 2D hamming window function. > As far as I can see, numpy only supports 1D windows > and googling didn't show a simple way of extending it > in two dimensions. > >
If I've two numpy arrays, is there a non-looping way of finding common values. (the example below has identical shapes for the arrays but this may not be the case in my scenario).answer = array([ 5,6,7,8,9]).
I see that you already know about array() from your second solution. > > Yes, I printed that out today to have a closer look at! "Danny Yoo-3 wrote: > > Alhtough it's simple, if you can avoid I/O, do so: touching disk can raise > its own problems. I like your second approach much better. > >