- 
Alfredo Di Napoli authoredThe previous code was sometimes yielding a matrix of NaN numbers as it was attempting the division of the input matrix with the diagonal, which would be 0 in case of an input matrix of 0, resulting in a division by 0 error. 96e57e41
