[SciPy-dev] An addition to basic.py

Alan Isaac aisaac at american.edu
Thu Apr 21 09:12:14 CDT 2005

> Alan G Isaac wrote: 
>> 1. I prefer the solution you can find in pyGAUSS:
>> def vec(x): return transpose([ravel(transpose(x))])
>> def vecr(x): return transpose([ravel(x)])
>> In particular, I prefer to get back a 2-D array.
>> 2. I suppose someone familiar with tensors should
>> address the proper generalization beyond 2-D inputs.

On Thu, 21 Apr 2005, Nils Wagner wrote:
> Please can you add these functions to basic.py.

I apologize if I gave the impression that I am a SciPy developer.
But pyGAUSS is under the MIT license, so this (trivial) code is
unencumbered if you can persuade a developer to include it.

I agree that vec and vecr are basic functionality.
But I do not know how they should generalize beyond 2-D

Alan Isaac

More information about the Scipy-dev mailing list