I've been working on a matrix class and I ran into a problem in writing my matrix class. I keep getting 0 as a determinant and with some debugging, I found that I was losing allocated data or something similar. This algorithm I'm pretty sure works because I used this same algorithm in a function I made in python. http://stackoverflow.com/questions/21220504/matrix-determinant-algorithm-c That's where I found the algorithm. If you need my full class I can provide it but I figured this would be easier to look at.