Computes the inverse of a matrix using the LU decomposition.
Usage
solve2(A)
Value
A square matrix corresponding to the inverse of A.
Arguments
A
an invertible square matrix.
Author
Clecio Ferreira, Diego Gallardo and Camila Zeller
Details
Use the LU decomposition to compute the inverse of a matrix. In some cases, solve produces error to invert a matrix whereas
this decomposition provide a valid solution.
References
Bellman, R. (1987). Matrix Analysis, Second edition, Classics in Applied Mathematics, Society for Industrial and Applied Mathematics.
Horn, R. A. and C. R. Johnson (1985). Matrix Analysis, Cambridge University Press.