inv {fBasics}R Documentation

The inverse of a matrix

Description

Computes the inverse of a matrix.

Usage

inv(x)

Arguments

x

a numeric matrix.

Value

a matrix

References

Golub, van Loan, (1996); Matrix Computations, 3rd edition. Johns Hopkins University Press.

Examples

## Create Pascal Matrix:
   P = pascal(5)
   P
         
## Compute the Inverse Matrix:
   inv(P)
   
## Check:
   inv(P) %*% P    
   
## Alternatives:
   chol2inv(chol(P))
   solve(P)                     

[Package fBasics version 4032.96 Index]