[SciPy-dev] SciPy improvements
Bill Baxter
wbaxter at gmail.com
Fri Apr 13 01:44:37 EDT 2007
> You mention also that you're planning to unify row vec vs. column vec
> conventions. Just wanted to put my vote in for row vectors! For a
> number of reasons
> 1) It seems to be the more common usage in machine learning literature
> 2) with Numpy's default C-contiguous data it puts individual vectors
> in contiguous memory.
> 3) it's easier to print something that's Nx5 than 5xN
> 4) "for vec in lotsofvecs:" works with row vectors, but needs a
> transpose for column vectors.
> 5) accessing a vector becomes just data[i] instead of data[:,i] which
> makes it easier to go back and forth between a python list of vectors
> and a numpy 2d array of vectors.
One more:
6) mat(avec) where avec is 1-D returns a row vector rather than a column vector.
More information about the SciPy-Dev
mailing list