View source: R/elementary_matrix.R
elementary_matrix | R Documentation |
Calculate a random elementary matrix
elementary_matrix( n, operation = NULL, verbose = FALSE, prob = c(1/6, 1/6, 2/3) )
n |
The size of the elementary matrix (an n times n matrix) |
operation |
If specified, operation is a character string specifying what kind of elementary row operation to perform. The options are "row swap", "scalar multiplication", and "row addition". |
verbose |
A logical value that determines whether to print the output |
prob |
If specified, the probability of applying a row swap, row_multiplication, or row addition operation |
An elementary matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.