I\'m trying to calculate the inverse matrix in Java.
I\'m following the adjoint method (first calculation of the adjoint matrix, then transpose this matrix and fina
You NEVER want to compute an inverse matrix this way. Ok, computation of the inverse itself is to be avoided, as it is almost always better to use a factorization such as an LU.
Computation of the determinant using recursive computations is a numerically obscene thing to do. It turns out that a better choice is to use an LU factorization to compute a determinant. But, if you are going to bother to compute LU factors, then why would you possibly want to compute the inverse? You have already done the difficult work by computing the LU factors.
Once you have LU factors, you can use them to do back and forward substitution.
As far as a 19x19 matrix being big, it is not even close to what I'd think of as big.