matrix.inverse: Inverse of a square matrix

View source: R/matrix.inverse.R

matrix.inverseR Documentation

Inverse of a square matrix

Description

This function returns the inverse of a square matrix computed using the R function solve.

Usage

matrix.inverse(x)

Arguments

x

a square numeric matrix

Value

A matrix.

Author(s)

Frederick Novomestky fnovomes@poly.edu

References

Bellman, R. (1987). Matrix Analysis, Second edition, Classics in Applied Mathematics, Society for Industrial and Applied Mathematics.

Examples

A <- matrix( c ( 1, 2, 2, 1 ), nrow=2, byrow=TRUE)
print( A )
invA <- matrix.inverse( A )
print( invA )
print( A %*% invA )
print( invA %*% A )

matrixcalc documentation built on Sept. 15, 2022, 1:05 a.m.