#11558: Echelonize with transformation=True oddness for sparse matrix
------------------------------+---------------------------------------------
   Reporter:  vbraun          |          Owner:  jason, was     
       Type:  defect          |         Status:  positive_review
   Priority:  major           |      Milestone:  sage-4.7.2     
  Component:  linear algebra  |       Keywords:                 
Work_issues:                  |       Upstream:  N/A            
   Reviewer:  Rob Beezer      |         Author:  Volker Braun   
     Merged:                  |   Dependencies:                 
------------------------------+---------------------------------------------
Description changed by jdemeyer:

Old description:

> {{{
> sage: matrix(ZZ, 3, 4, [1..12],
> sparse=False).echelon_form(transformation=True)
> (
> [ 1  2  3  4]  [ 0  2 -1]
> [ 0  4  8 12]  [ 0  9 -5]
> [ 0  0  0  0], [ 1 -2  1]
> )
> sage: matrix(ZZ, 3, 4, [1..12],
> sparse=True).echelon_form(transformation=True)
> ---------------------------------------------------------------------------
> TypeError                                 Traceback (most recent call
> last)
>
> /home/vbraun/opt/sage-4.7.1.alpha3/devel/sage-main/<ipython console> in
> <module>()
>
> /home/vbraun/Sage/sage/local/lib/python2.6/site-
> packages/sage/matrix/matrix2.so in
> sage.matrix.matrix2.Matrix.echelon_form (sage/matrix/matrix2.c:27633)()
>
> /home/vbraun/Sage/sage/local/lib/python2.6/site-
> packages/sage/matrix/matrix2.so in sage.matrix.matrix2.Matrix.echelonize
> (sage/matrix/matrix2.c:27292)()
>
> /home/vbraun/Sage/sage/local/lib/python2.6/site-
> packages/sage/matrix/matrix2.so in
> sage.matrix.matrix2.Matrix._echelonize_ring
> (sage/matrix/matrix2.c:26560)()
>
> TypeError: Cannot convert tuple to sage.matrix.matrix2.Matrix
> }}}
>
> '''Appy''':
>   1.  [attachment: trac_11558_echelon_form_with_transformation.patch]

New description:

 {{{
 sage: matrix(ZZ, 3, 4, [1..12],
 sparse=False).echelon_form(transformation=True)
 (
 [ 1  2  3  4]  [ 0  2 -1]
 [ 0  4  8 12]  [ 0  9 -5]
 [ 0  0  0  0], [ 1 -2  1]
 )
 sage: matrix(ZZ, 3, 4, [1..12],
 sparse=True).echelon_form(transformation=True)
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /home/vbraun/opt/sage-4.7.1.alpha3/devel/sage-main/<ipython console> in
 <module>()

 /home/vbraun/Sage/sage/local/lib/python2.6/site-
 packages/sage/matrix/matrix2.so in sage.matrix.matrix2.Matrix.echelon_form
 (sage/matrix/matrix2.c:27633)()

 /home/vbraun/Sage/sage/local/lib/python2.6/site-
 packages/sage/matrix/matrix2.so in sage.matrix.matrix2.Matrix.echelonize
 (sage/matrix/matrix2.c:27292)()

 /home/vbraun/Sage/sage/local/lib/python2.6/site-
 packages/sage/matrix/matrix2.so in
 sage.matrix.matrix2.Matrix._echelonize_ring
 (sage/matrix/matrix2.c:26560)()

 TypeError: Cannot convert tuple to sage.matrix.matrix2.Matrix
 }}}

 '''Appy''':
   1.  [attachment:trac_11558_echelon_form_with_transformation.patch]

--

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