Subject: | determinant() is inefficient |
The determinant() method uses a needlessly inefficient recursive algorithm. This is surprising, as "Gaussian elimination" is already in place in the solve() method. Similar code could be used to calculate determinants with O(n^3) rather than exponential arithmetic complexity.
-Martin