[Numpy-discussion] matrix default to column vector?

Jason Rennie jrennie at gmail.com
Thu May 21 09:10:14 EDT 2009


By default, it looks like a 1-dim ndarray gets converted to a row vector by
the matrix constructor.  This seems to lead to some odd behavior such as
a[1] yielding the 2nd element as an ndarray and throwing an IndexError as a
matrix.  Is it possible to set a flag to make the default be a column
vector?

Thanks,

Jason

-- 
Jason Rennie
Research Scientist, ITA Software
http://www.itasoftware.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090521/f8efef9b/attachment.html>


More information about the NumPy-Discussion mailing list