#18143: Random symmetric, skew symmetric etc. matrices
----------------------------------+------------------------
       Reporter:  jmantysalo      |        Owner:
           Type:  enhancement     |       Status:  new
       Priority:  minor           |    Milestone:  sage-6.6
      Component:  linear algebra  |   Resolution:
       Keywords:                  |    Merged in:
        Authors:                  |    Reviewers:
Report Upstream:  N/A             |  Work issues:
         Branch:                  |       Commit:
   Dependencies:                  |     Stopgaps:
----------------------------------+------------------------

Comment (by mjo):

 I needed this once for a few special classes of matrices. A few things
 turned out to be necessary that I initially didn't consider. The ability
 to specify,

 * Whether or not you want the zero matrix
 * The base ring
 * The rank of the resulting matrix

 I have `random_psd()` here:

 
http://michael.orlitzky.com/git/?p=sage.d.git;a=blob;f=mjo/cone/symmetric_psd.py;h=bb46fc926ec8dc23588ef08ea49a974060a02841;hb=HEAD

 and you can feel free to steal that code.

 What I really wanted, in that case, was a doubly-non-negative matrix. I
 implemented `random_doubly_nonnegative()` too if you promise not to laugh
 at my algorithm.

 
http://michael.orlitzky.com/git/?p=sage.d.git;a=blob;f=mjo/cone/doubly_nonnegative.py;h=56a655e52c5cd60cbf1073c351e65833e5f54500;hb=HEAD

 Per the docstrings, "random" is a bit of a euphemism.

--
Ticket URL: <http://trac.sagemath.org/ticket/18143#comment:1>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to