Search⌘ K
AI Features

Matrix Inversion

Understand the concept of matrix inversion, its mathematical definition, and how to compute inverses in R using the solve() function. Explore coding the inversion algorithm using the adjugate method in C++ with Rcpp implementations. Compare results with RcppArmadillo and RcppEigen libraries to verify matrix inversions.

Inverse definition

An (𝑛×𝑛)(𝑛 \times 𝑛) square matrix 𝐴𝐴 is called invertible (also nonsingular or nondegenerate) if there exists an (𝑛×𝑛)(𝑛 \times 𝑛) square matrix 𝐵𝐵 such that:

𝐴𝐵=𝐵𝐴=𝐼𝑛𝐴𝐵 = 𝐵𝐴 = 𝐼_𝑛

  • Here, 𝐼𝑛𝐼_𝑛 ...