This function computes the inverse matrix of \(A\) \[{A}^{-1}\] where \(A\) is a dense general matrix of size \(m \times m\). The maximum matrix size supported in FPGA is templated by NMAX.