[SciPy-dev] An addition to basic.py

Alan G Isaac aisaac at american.edu
Wed Apr 20 12:21:40 CDT 2005

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.

Alan Isaac

More information about the Scipy-dev mailing list