This function solves a system of linear equation with general matrix along with multiple right-hand side vector.
\[Ax=B\]
where \(A\) is a dense general matrix of size \(m \times m\), \(x\) is a vector that needs to be computed, and \(B\) is an input vector. The maximum matrix size supported in FPGA is templated by NMAX.