function out=diagDom(A); % vrne 1 ce je matrika A diagonalno dominantna po vrsticah in 0 sicer n=length(A); out=1; for i=1:n; if (sum(abs(A(i,:))))>2*abs(A(i,i)) out=0; return; end end