[Numpy-discussion] another broadcast/fancy indexing question
mpmusu at cc.usu.edu
Tue Jul 10 15:48:17 EDT 2007
Just ran across something that doesn't quite make sense to me at the moment.
Here's some code:
>>> def f1(b,c):
>>> b,c = numpy.fromfunction(f1,(5,5))
(12, 5, 5)
(5, 5, 12) ###why does this not return (12,5,5)?
So in a nutshell, it's not completely clear to me why these are
returning arrays of different shapes. Can someone shed some light?
More information about the NumPy-Discussion