#3436: random_matrix() with prescribed density buggy
------------------------------+---------------------------------------------
Reporter: rpw | Owner: was
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.3.1
Component: linear algebra | Keywords:
Work_issues: | Author: spancratz
Upstream: N/A | Reviewer:
Merged: |
------------------------------+---------------------------------------------
Comment(by craigcitro):
I mentioned this to Tom, but just in case no one gets to it: implementing
this for cyclotomic matrices should be pretty easy once you find out about
the `set_unsafe` method on dense cyclotomic matrices. You can use the same
generic code that loops over any other matrix, but use `set_unsafe` and
(as long as you're really not going outside the bounds of the matrix!)
it'll take care of setting the entry in the matrix correctly and quickly.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3436#comment:9>
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.