On Tue, Jul 14, 2009 at 11:09 PM, pierre.du...@gmail.com<pierre.du...@gmail.com> wrote: > > I'd like to generate symmetric random matrices whose entries may be > various distributions. Can I use random_matrix? In help > (random_matrix), I haven't found any documentation on the *args and > **kwds variables.
Unfortunately, I think you can't. You'll have to make a list v of the entries, then do A = matrix(n,v) Regarding random_matrix, if you do random_matrix(K,...) where K is a field, then each element of the matrix is computed by calling K.random_element, so you should see the docs on K.random_element. William > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---