Re: [Numpy-discussion] fromfunction() bug?

2008-03-13 Thread orionbelt2
On Thu, Mar 13, 2008 at 06:18:30PM -0400, Alan G Isaac wrote: > This is how I would hope ``fromfunction`` would work > and it matches the docs. (See below.) You can fix > the example ... Interesting, i thought the output in the Example List page is auto-generated... ___

Re: [Numpy-discussion] fromfunction() bug?

2008-03-13 Thread Alan G Isaac
This is how I would hope ``fromfunction`` would work and it matches the docs. (See below.) You can fix the example ... Cheers, Alan Isaac >>> help(N.fromfunction) Help on function fromfunction in module numpy.core.numeric: fromfunction(function, shape, **kwargs) Returns an array constructe

[Numpy-discussion] fromfunction() bug?

2008-03-13 Thread OrionBelt
Hi, According to the fromfunction() example: http://www.scipy.org/Numpy_Example_List_With_Doc#head-597e63df5a6d490abd474ffd84d0419468c8329a fromfunction() should return an array of integers. But when i run the example, i obtain an array of floats: >>> from numpy import * >>> def f(i,j): ...