refmatrix: Matrix to Row Echelon Form

Description Usage Arguments Details Value See Also Examples

View source: R/refmatrix.R

Description

Transform a matrix to row echelon form.

Usage

1
2
3
4
5

Arguments

m

a matrix

A

a square matrix representing the coefficients of a linear system in solvematrix

b

a vector representing the right-hand side of the linear system in solvematrix

Details

refmatrix reduces a matrix to row echelon form. This is not a reduced row echelon form, though that can be easily calculated from the diagonal. This function works on non-square matrices.

rrefmatrix returns the reduced row echelon matrix.

solvematrix solves a linear system using rrefmatrix.

Value

the modified matrix

See Also

Other linear: choleskymatrix(), detmatrix(), gdls(), invmatrix(), iterativematrix, lumatrix(), rowops, tridiagmatrix(), vecnorm()

Examples

1
2
A <- matrix(c(1, 2, -7, -1, -1, 1, 2, 1, 5), 3)
refmatrix(A)

cmna documentation built on July 14, 2021, 5:11 p.m.