Tridiagonal checking.