Ask Your Question

Generating random matricies with random_matrix

asked 2018-05-07 03:31:11 +0200

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-07 07:42:16 +0200

slelievre gravatar image

updated 2018-05-07 07:44:49 +0200

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:

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


Asked: 2018-05-07 03:31:11 +0200

Seen: 1,421 times

Last updated: May 07 '18