Matlab code for computing Jordan matrix. Only supports matrices that have integers eigenvalues. Pass tolerans for integer check
Tested on: A = [-1 0 1 0 -1 1; 5 0 -2 -2 3 -2; 1 0 0 0 1 -1; -7 0 2 2 -5 6; 4 0 -3 0 4 -2; 3 0 -2 0 3 -1] tol = eps*10^14