From: Gary R. <gr...@bi...> - 2006-07-07 14:45:43
|
Sasha wrote: > On 7/6/06, Bill Baxter <wb...@gm...> wrote: >> ... >> Yep, like Tim said. The usage is say a N sets of basis vectors. Each set >> of basis vectors is a matrix. > > This brings up a feature that I really miss from numpy: an ability to do > > array([f(x) for x in a]) > > without python overhead. I'd find this really useful too. I'm doing lots of this in my recent code: array([f(x,y) for x in a for y in b]).reshape(xxx) Gary R. |