Also trapped some Nan matrices in diagonaliseSvd.