[Numpy-discussion] Numpy performance vs Matlab.
Fri Jan 9 16:12:02 CST 2009
On Fri, Jan 9, 2009 at 16:04, Christopher Barker <Chris.Barker@noaa.gov> wrote:
> 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.
> A note for the docs:
> The docs refer to ogrid and nd_grid, and as far as I can tell, they are
> the same thing, but it's confusing. actuall, as I look more, ogrid is a
> nd_grid with the sparse parameter set to True -- anyway, still confusing!
I'm not sure why. The docstring seems fairly clear about this.
> Also, what is the "o" for -- the mnemonic might be helpful
"open". mgrid and ogrid are instantiations of the nd_grid class with
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion