On Dec 30, 10:46 am, Jason Grout <jason-s...@creativetrax.com> wrote:
> I was thinking of another matrix constructor that is a very thin wrapper
> around matrix().  Something like:
>
> def column_matrix(*args, **kwds):
>      return matrix(*args, **kwds).transpose()

I like it.  See http://trac.sagemath.org/sage_trac/ticket/10535

And if you provide just a single dimension, along with a flat list of
entries, the dimension gets interpreted as the number of *columns*.
Bonus.

sage: column_matrix(ZZ, 8, range(24))
[ 0  3  6  9 12 15 18 21]
[ 1  4  7 10 13 16 19 22]
[ 2  5  8 11 14 17 20 23]

Rob

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to