Skip to content
Advertisement

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

Advertisement