Matrix Inversion

Learn how to invert a matrix using R, Rcpp, Armadillo, and Eigen.

Inverse definition

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

𝐴𝐡=𝐡𝐴=𝐼𝑛𝐴𝐡 = 𝐡𝐴 = 𝐼_𝑛

  • Here, 𝐼𝑛𝐼_𝑛 ...