I’m trying to find the inverse of a matrix using the Apache Commons Math Library. Below is my attempt at doing just that: When I run this, I get the following error: When I go to line 160 of FieldLUDecomposition.java per the above error message, I see that the library thinks this matrix is Singular i.e. it thinks it has
Tag: linear-algebra
How to fix a matrix multiplication in Java
I’m creating a class in Java to perform simple operations with matrices using two-dimensional arrays. I’m running into a problem with my method for matrix multiplication. Whenever I test my multiply method, no error appears, but my computer CPU utilization increases quite a bit and my tester program never finishes. This is my multiply method: Where I construct a matrix