...

/

Matrix Inversion

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, 𝐼𝑛𝐼_𝑛 denotes the (𝑛×𝑛) ...