[Numpy-discussion] Numpy performance vs Matlab.

Sturla Molden sturla@molden...
Fri Jan 9 16:27:14 CST 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

Sturla Molden

More information about the Numpy-discussion mailing list