#10876: Create elementary matrices
-----------------------------------+----------------------------------------
Reporter: rbeezer | Owner: jason, was
Type: enhancement | Status: needs_work
Priority: minor | Milestone: sage-4.7
Component: linear algebra | Keywords:
Author: Rob Beezer | Upstream: N/A
Reviewer: Karl-Dieter Crisman | Merged:
Work_issues: |
-----------------------------------+----------------------------------------
Comment(by rbeezer):
KDC,
Thanks for the testing. I was trying to figure out how to consolidate all
three elementary matrices into one function - the problem is when you want
to scale a row by an integer scalar, how can you distinguish that from
swapping two rows indexed by integers? Maybe I was being too clever, I'll
have to study your examples.
Search `sage/matrix/constructor.py` which has things like `FORMAT` and
`CALL FORMAT`. I have edited many of them recently, but they were there
before I got there. These constructors are tricky with the optional ring
and then various items that get inferred, or options, or... I don't think
it is bad to have a concise summary of what will work right up front - it
certainly makes coding them easier!
A reminder about row numbering won't hurt - I agree that this is a place
to be careful about that.
Rob
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10876#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.