[Numpy-discussion] .T Transpose shortcut for arrays again
gruben at bigpond.net.au
Fri Jul 7 09:45:26 CDT 2006
> On 7/6/06, Bill Baxter <wbaxter at gmail.com> 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)
More information about the Numpy-discussion