This PR fixes the bug in Determinant() function for arbitrary matrix dimension. The current implementation prevents the first term's minor matrix to be multiplied by its determinant. I explicitly changed the signs of each term(alternating) just to be safe.
This PR fixes the bug in Determinant() function for arbitrary matrix dimension. The current implementation prevents the first term's minor matrix to be multiplied by its determinant. I explicitly changed the signs of each term(alternating) just to be safe.
Here's the test code I was using: https://gist.github.com/grassjelly/7ac9221febd197413f9ebb27883b01e1#file-determinant-test