Open clvcooke opened 9 years ago
Should this and determinant be combined maybe? It'd be easy/interesting/nice?? to implement them recursively calling each other.
I just finished writing the cofactor matrix function. It employs the determinant matrix of course but it's not recursive
It probably is recursive if its working, just not directly (more like cof calls det calls cof calls det....), as you need the determinant to get a cofactor matrix, and the cofactor matrix to get a determinant.
Add a function to the Matrix class which returns its cofactor Matrix for a given row or column. Assume that if the function is called with invalid parameters than the Zero Matrix is returned instead.