Open in the MATLAB editor: f07hr_example
function f07hr_example fprintf('f07hr example results\n\n'); uplo = 'L'; kd = int64(1); n = int64(4); ab = [ 9.39 + 0i, 1.69 + 0i, 2.65 + 0i, 2.17 + 0i; 1.08 - 1.73i, -0.04 + 0.29i, -0.33 + 2.24i 0 + 0i]; % Factorize [abf, info] = f07hr( ... uplo, kd, ab); ku = int64(0); [ifail] = x04de( ... n, n, kd, ku, abf, 'Cholesky factor');
f07hr example results Cholesky factor 1 2 3 4 1 3.0643 0.0000 2 0.3524 1.1167 -0.5646 0.0000 3 -0.0358 1.6066 0.2597 0.0000 4 -0.2054 0.4289 1.3942 0.0000