inv {fBasics} | R Documentation |
Returns the inverse of a matrix.
inv(x)
x |
a numeric matrix. |
returns the inverse matrix.
The function inv
is a synonyme to the function solve
.
Golub, van Loan, (1996); Matrix Computations, 3rd edition. Johns Hopkins University Press.
## Create Pascal Matrix: P = pascal(5) P ## Compute the Inverse Matrix: inv(P) ## Check: inv(P) ## Alternatives: chol2inv(chol(P)) solve(P)