elementary_matrix: Calculate a random elementary matrix

View source: R/elementary_matrix.R

elementary_matrixR Documentation

Calculate a random elementary matrix

Description

Calculate a random elementary matrix

Usage

elementary_matrix(
  n,
  operation = NULL,
  verbose = FALSE,
  prob = c(1/6, 1/6, 2/3)
)

Arguments

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

Value

An elementary matrix


jtipton25/dasc2594 documentation built on Oct. 7, 2022, 3:46 p.m.