#12541: Remove Sequence test in span
------------------------------+---------------------------------------------
   Reporter:  novoselt        |          Owner:  jason, was        
       Type:  defect          |         Status:  needs_review      
   Priority:  minor           |      Milestone:  sage-5.0          
  Component:  linear algebra  |       Keywords:                    
Work_issues:                  |       Upstream:  N/A               
   Reviewer:                  |         Author:  Andrey Novoseltsev
     Merged:                  |   Dependencies:                    
------------------------------+---------------------------------------------

Comment(by rbeezer):

 Some linear algebra results come back as Sequence objects, so maybe that's
 the reason.  But you are right, it doesn't seem to matter.  With patch:

 {{{
 sage: A = matrix(QQ, 5, range(25))
 sage: eigen = A.eigenvectors_right()
 sage: basis = eigen[0][1]
 sage: basis
 [
 (1, 0, 0, -4, 3),
 (0, 1, 0, -3, 2),
 (0, 0, 1, -2, 1)
 ]
 sage: type(basis)
 <class 'sage.structure.sequence.Sequence_generic'>
 sage: U = span(basis)
 sage: U
 Vector space of degree 5 and dimension 3 over Rational Field
 Basis matrix:
 [ 1  0  0 -4  3]
 [ 0  1  0 -3  2]
 [ 0  0  1 -2  1]
 }}}

 Running tests right now.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12541#comment:2>
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