#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 pong):
Hum... sure. For example, something like
def delete_col(A,col_to_del):
cols = list(set(range(A.ncols()))-set(col_to_del));
return A.matrix_from_columns(cols)
will work. I just need to need to recall how to turn that into a method
for matrix. Any pointer for that?
Also, do we want indexing the columns starting from 1 or 0? (the
implementation above assume the index starts from 0).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11528#comment:4>
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.