[Numpy-discussion] Fromfunction generalization

Alan G Isaac aisaac@american....
Tue Apr 22 14:31:33 CDT 2008


On Tue, 22 Apr 2008, lorenzo bolla apparently wrote:
> M=fromfunction(lambda i,j:f(i,j,5),(1000,1000))
> P=fromfunction(lambda i,j:f(i,j,7),(1000,1000))

Maybe partial function application is nicer:
<URL:http://docs.python.org/whatsnew/pep-309.html>

fwiw,
Alan Isaac




More information about the Numpy-discussion mailing list