#10346: Inconsistency in computing right eigenvectors of matrices over the 
symbolic
ring
------------------------------+---------------------------------------------
   Reporter:  jvkersch        |       Owner:  jason, was             
       Type:  defect          |      Status:  new                    
   Priority:  major           |   Milestone:                         
  Component:  linear algebra  |    Keywords:  eigenvectors, symbolics
     Author:                  |    Upstream:  N/A                    
   Reviewer:                  |      Merged:                         
Work_issues:                  |  
------------------------------+---------------------------------------------
 When computing the left eigenvectors of a matrix over the symbolic ring,
 Sage correctly uses the implementation in
 sage/matrix/matrix_symbolic_dense.pyx, but as there is no overloaded
 function for the right eigenvectors, it falls back to the generic
 implementation in sage/matrix/matrix2.pyx, resulting in an exception:

 {{{
 sage: A = matrix(SR, [[1, 2], [2, 3]]); A
 [1 2]
 [2 3]
 sage: A.eigenvectors_right()
 Traceback (most recent call last):
 ...
 TypeError: eigenvectors_left() takes no keyword arguments
 sage: A.eigenvectors_left()
 [(-sqrt(5) + 2, [(1, -1/2*sqrt(5) + 1/2)], 1), (sqrt(5) + 2, [(1,
 1/2*sqrt(5) + 1/2)], 1)]
 }}}

 This is due to the fact that in the generic case, `eigenvectors_right` is
 defined as
 {{{
 sage: A.eigenvectors_right??
 ...
         return self.transpose().eigenvectors_left(extend=extend)
 }}}
 whereas `eigenvectors_left` does not take any arguments.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10346>
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