refmatrix {cmna} | R Documentation |
Matrix to Row Echelon Form
Description
Transform a matrix to row echelon form.
Usage
refmatrix(m)
rrefmatrix(m)
solvematrix(A, b)
Arguments
m |
a matrix |
A |
a square matrix representing the coefficients of a linear
system in |
b |
a vector representing the right-hand side of the linear
system in |
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
A <- matrix(c(1, 2, -7, -1, -1, 1, 2, 1, 5), 3)
refmatrix(A)
[Package cmna version 1.0.5 Index]