Learn R Programming

cmna (version 1.0.0)

invmatrix: Invert a matrix

Description

Invert the matrix using Gaussian elimination

Usage

invmatrix(m)

Arguments

m

a matrix

Value

the inverted matrix

Details

invmatrix invertse the given matrix using Gaussian elimination and returns the result.

See Also

Other linear: choleskymatrix, detmatrix, gdls, iterativematrix, lumatrix, refmatrix, rowops, tridiagmatrix, vecnorm

Examples

Run this code
# NOT RUN {
A <- matrix(c(1, 2, -7, -1, -1, 1, 2, 1, 5), 3)
refmatrix(A)

# }

Run the code above in your browser using DataLab