Find a matrix and has LU factorization where is diagonal.