Learn R Programming

quhomology (version 1.1.1)

rref: Reduced Row Echelon Form of a matrix

Description

Function calculates the Reduced Row Echelon Form of a matrix.

Usage

rref(A, tol = sqrt(.Machine$double.eps), verbose = FALSE, fractions = FALSE)

Arguments

A

Matrix to be turned into Gaussian Form.

tol

Tolerance for checking for 0 pivot.

verbose

If TRUE, print intermediate steps.

fractions

If true, try to express nonintegers as rational numbers.

Value

A matrix

References

http://socserv.mcmaster.ca/jfox/Courses/R-course-Berkeley/

See Also

GaussianElimination

Examples

Run this code
# NOT RUN {
test_mat <- matrix(c(2,4,4, -6,6,12, 10,-4,-16), nrow=3, ncol=3, byrow=TRUE)
rref(test_mat)
# }

Run the code above in your browser using DataLab