[SciPy-user] can this be vectorized?
Ranjit Chacko
rjchacko at gmail.com
Tue Jun 2 16:05:40 EDT 2009
I have a square array A and I want to produce a second square array B of the
same dimension where each element of B is the sum of a square neighborhood
of each element of A. Is there a way to do this without loops in numpy, or
do I have to use for loops?
Thanks,
Ranjit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20090602/18eee5a7/attachment.html>
More information about the SciPy-User
mailing list