[Numpy-discussion] matrix default to column vector?
Jason Rennie
jrennie@gmail....
Thu May 21 08:10:14 CDT 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.scipy.org/pipermail/numpy-discussion/attachments/20090521/f8efef9b/attachment.html
More information about the Numpy-discussion
mailing list