#10541: Conversions of vectors to matrices
------------------------------------------+---------------------------------
   Reporter:  rbeezer                     |       Owner:  jason, was  
       Type:  enhancement                 |      Status:  needs_review
   Priority:  minor                       |   Milestone:  sage-4.6.2  
  Component:  linear algebra              |    Keywords:              
     Author:  Rob Beezer                  |    Upstream:  N/A         
   Reviewer:  Volker Braun, Marco Streng  |      Merged:              
Work_issues:                              |  
------------------------------------------+---------------------------------

Comment(by rbeezer):

 Replying to [comment:10 mstreng]:
 > > All changes look good,
 >
 > and all tests pass, so I would give it a positive review, except that I
 just uploaded a patch here myself and
 >
 > > I'm not so sure about deprecating {{{transpose}}} for vectors. Did you
 ask on the mailing lists if people object?

 Hi Marco,

 Thanks for attention to this - I was going to get back to it later
 tonight.

 In Sage, a vector does not have an orientation, just an implicit
 assumption that it should be treated like a row of a matrix if you
 ''have'' to make a decision.  I am trying to make the linear algebra code
 much easier for beginners to use, and then integrating all that into my
 open-source introductory textbook.  You can see progress so far at:
 http://wiki.sagemath.org/devel/LatexToWorksheet

 So I feel strongly that just having a "vector transpose" is a source of
 confusion, and instead having row() and a column() methods will make it
 much more clear what is happening - and column() is a drop-in replacement.
 This came up at:
 http://groups.google.com/group/sage-
 devel/browse_thread/thread/623226316555c28e/

 You will see from the deprecation patch that `.transpose()` was hardly
 ever used anywhere.

 I do not think the doctest in question is incorrect.  It wasn't failing
 was it?  Patch implements `.row()` which converts a vector to a 1 x n
 matrix.  So an empty vector should become a 1 x 0 matrix as a row.  Maybe
 you would like a similar test for `.column()`?  And maybe that would be
 better than the one that is there.  Maybe having both would be the best
 solution.

 Rob

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10541#comment:11>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to