Matrix Multiplication in Blocks

As requested, here is a blocks based matrix inversion value procedure, along with two test cases from 2.5: Application of Matrices in Cryptography - Mathematics LibreTexts



matrix.aia (11.4 KB)

The algorithm is taken from https://www.codewithc.com/c-program-for-gauss-jordan-method/ and is taken literally from the C code.

This algorithm lacks error checking for cases where the given matrix can't have an inverse:

  • number of rows does not match number of columns
  • the matrix does not have an inverse (manifests by a divide by zero error)
1 Like