Open in the MATLAB editor: f07jr_example
function f07jr_example fprintf('f07jr example results\n\n'); % Hermitian tridiagonal A stored as two diagonals d = [ 16 41 46 21]; e = [ 16 + 16i 18 - 9i 1 - 4i ]; % Factorize [df, ef, info] = f07jr( ... d, e); disp('Details of factorization'); disp('The diagonal elements of D'); disp(df); disp('Sub-diagonal elements of the Cholesky factor L'); disp(ef);
f07jr example results Details of factorization The diagonal elements of D 16 9 1 4 Sub-diagonal elements of the Cholesky factor L 1.0000 + 1.0000i 2.0000 - 1.0000i 1.0000 - 4.0000i