#18177: Warning to Matrix.random()
-------------------------------------+-------------------------------------
       Reporter:  jmantysalo         |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  minor              |    Milestone:  sage-6.6
      Component:  linear algebra     |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jori Mäntysalo     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jmantysalo/warning_to_matrix_random__|  
371e40fe64f300e48ceeacc69f9d09405674b3a3
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jmantysalo):

 Replying to [comment:3 ncohen]:
 > Looks good. A naive request: if there is an example of small order for
 which you are sure that a given matrix `M` is never returned, could you
 add a doctest/example to this warning to illustrate it?
 >
 > Something like {{{all(a_random_matrix() != m for i in range(100))}}}?

 Hmm... For unimodular `3x3` matrices over `GF(3)` there seems to be `3^5`
 different matrix that are never returned. But for `2x2` over `GF(2)` there
 are only 3 of those. Easiest example is `M=Matrix([[0,2],[2,0]])`. But is
 this information useful to user?

--
Ticket URL: <http://trac.sagemath.org/ticket/18177#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 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