There was some crap put into the file by an unknown programmer. Maybe the right thing to do is to check whether the diagonal terms are 0.0 or at least smaller than some very small number. Or whatever. The real question I think should be what should be done so that the program works if possible and you get the right answer.