Open in the MATLAB editor: f07hd_example
function f07hd_example fprintf('f07hd example results\n\n'); % Symmetric A (one lower/upper off-diagonal) in banded form uplo = 'Lower'; kd = int64(1); n = int64(4); ab = [5.49, 5.63, 2.60, 5.17; 2.68, -2.39, -2.22, 0.00]; % Factorize [abf, info] = f07hd( ... uplo, kd, ab); ku = int64(0); [ifail] = x04ce( ... n, n, kd, ku, abf, 'Cholesky factor');
f07hd example results Cholesky factor 1 2 3 4 1 2.3431 2 1.1438 2.0789 3 -1.1497 1.1306 4 -1.9635 1.1465