#11528: Allow deleting row or column from matrix
------------------------------+---------------------------------------------
   Reporter:  kcrisman        |          Owner:  jason, was   
       Type:  enhancement     |         Status:  new          
   Priority:  major           |      Milestone:  sage-5.0     
  Component:  linear algebra  |       Keywords:  delete remove
Work_issues:                  |       Upstream:  N/A          
   Reviewer:  pong            |         Author:               
     Merged:                  |   Dependencies:               
------------------------------+---------------------------------------------

Comment(by kcrisman):

 Yeah, sure.  Look in
 {{{
 $SAGE_ROOT/devel/sage/sage/matrix/matrix1.pyx
 }}}
 and put it near
 {{{

     def matrix_from_columns(self, columns):
 }}}

 Or open matrix2.pyx and put it somewhere appropriate.  These are Cython
 files, but hopefully that wouldn't matter here, and perhaps Rob could help
 review this and make sure it doesn't do anything strange :)

 The point is that this is a ''method'' of the generic matrix class, NOT a
 new function, which would be really slow and annoying.

 Finally, given the documentation for it,
 {{{

     def matrix_from_columns(self, columns):
         """
         Return the matrix constructed from self using columns with indices
         in the columns list.

         EXAMPLES::

             sage: M = MatrixSpace(Integers(8),3,3)
             sage: A = M(range(9)); A
             [0 1 2]
             [3 4 5]
             [6 7 0]
             sage: A.matrix_from_columns([2,1])
             [2 1]
             [5 4]
             [0 7]
         """
 }}}
 I would say that you should start from zero as usual in Sage.

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