assistant= zeros(N,1);d = zeros(N,1);for i = 1:Nfor j = 1:Nif i ~= jt(i) = t(i) + A(i,j);endendd(i) = A(i,i) - t(i);end