I think for consistency's sake, we should make this return a row matrix.
Matrix([1,2,3]).T would be the corresponding column matrix.

On Mon, Aug 29, 2011 at 10:47 PM, Robert Kern <robert.k...@gmail.com> wrote:

> On Mon, Aug 29, 2011 at 02:26, smichr <smi...@gmail.com> wrote:
> > I posted something to an issue which doesn't automatically ping to
> > everyone so am copying the discussion here.
> >
> > Currently, there is an inconsistency between sympy and numpy since
> > Matrix([1,2,3]) gives a column vector while the same argument in numpy
> > gives a row vector.
> >
> >    I believe that sympy did the right thing in interpreting this as a
> > column vector since the current syntax
> >    is that the rows of the Matrix should be passed in a list. So the
> > elements of [1,2,3] should be interpreted
> >    as rows and produce a column vector and Matrix([[1,2,3]]) should
> > produce a row vector.  But numpy will
> >    not consider changing their syntax: a request to that effect was
> > almost instantly tabled.
>
> Sorry if the speed of that seemed rude. I just happened to be checking
> my email when that ticket came in. :-)
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
>   -- Umberto Eco
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To post to this group, send email to sympy@googlegroups.com.
> To unsubscribe from this group, send email to
> sympy+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to