View Single Post
 There's probably a better solution, but from what I can see, if the rank is n, then it should be right invertible, and thus AA^T should exist and be invertible. So the determinant of AA^T could perhaps fit the bill?