Ask Your Question
1

Generating random matricies with random_matrix

asked 2018-05-06 20:31:11 -0600

standardtrickyness gravatar image

I'm having trouble finding the documentation for random_matrix what distributions are available besides the uniform distribution and what is the range of the uniform distribution?
Sorry if this is obvious but I'm having trouble finding this info in the doc.sagemath.org

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-05-07 00:42:16 -0600

slelievre gravatar image

updated 2018-05-07 00:44:49 -0600

The distributions will vary according to the base ring over which you are considering matrices.

To access the documentation, open a Sage session and run

sage: random_matrix?

then hit the ENTER or RETURN key. This will display the documentation (in text mode).

Alternatively, run

sage: browse_sage_doc(random_matrix)

to display the documentation rendered in HTML.

The corresponding page in the reference manual is accessible from this page:

http://doc.sagemath.org/html/en/reference/matrices/sage/matrix/special.html.

You may also want to access the documentation for the random_element method of the base ring.

For example, type one of

sage: R = ZZ
sage: R = QQ
sage: R = GF(5)
sage: R = Zmod(12)

followed by one of

sage: R.random_element?
sage: browse_sage_doc(R.random_element)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-05-06 20:31:11 -0600

Seen: 64 times

Last updated: May 07