[Numpy-discussion] Numpy performance vs Matlab.
Sturla Molden
sturla at molden.no
Fri Jan 9 17:27:14 EST 2009
> Sturla Molden wrote:
>> For the same problems where you would use meshgrid in Matlab.
>
> well, I used to use meshgrid a lot because MATLAB could not do
> broadcasting. Which is probably why the OP has been trying to use it.
mgrid and ogrid are both meshgrids, with ogrid having a sparse
representation (i.e. it uses less memory).
There was no need for broadcasting in the OP's code. It just seemed a bit
confused.
Regards,
Sturla Molden
More information about the NumPy-Discussion
mailing list