check for zero diagonal elements in delta matrix