[Numpy-discussion] List to Array question?

2009-03-21 Thread Jason . Woolard
hi all, I'm sort of new to Numpy and I haven't had any luck with the docs or examples on this so I thought I would ask here. I have this small piece of code that's working but I'm wondering if the list really needs to be created or if this is an extra step that could be eliminated and speed thi

[Numpy-discussion] Indexing in Numpy vs. IDL?

2008-11-16 Thread Jason Woolard
hi all, I'm fairly new to Numpy and I've been trying to port over some IDL code to become more familiar. I've been moderately successful with numpy.where and numpy.compress to do some of things that were pretty easy to do in IDL. I'm a bit confused about how the indexing of arrays works though