None.
Open in the MATLAB editor: f11mg_example
function f11mg_example fprintf('f11mg example results\n\n'); % Sparse matrix A n = int64(5); a = [ 2; 4; 1; -2; 1; 1; -1; 1; 1; 2; 3]; icolzp = [int64(1); 3; 5; 7; 9; 12]; irowix = [int64(1); 3; 1; 5; 2; 3; 2; 4; 3; 4; 5]; nz = icolzp(n+1) - 1; % Calculate COLAMD permutation spec = 'M'; iprm = zeros(7*n, 1, 'int64'); [iprm, ifail] = f11md( ... spec, n, icolzp, irowix, iprm); % Factorise thresh = 1; nzlmx = int64(8*nz); nzlumx = int64(8*nz); nzumx = int64(8*nz); [iprm, nzlumx, il, lval, iu, uval, nnzl, nnzu, flop, ifail] = ... f11me( ... n, irowix, a, iprm, thresh, nzlmx, nzlumx, nzumx); % Calculate Norm norm_p = '1'; [anorm, ifail] = f11ml( ... norm_p, n, icolzp, irowix, a); % Calculate condition number [rcond, ifail] = f11mg( ... norm_p, n, il, lval, iu, uval, anorm); fprintf('Norm = %7.3f\n', anorm); fprintf('Condition number = %7.3f\n', 1/rcond);
f11mg example results Norm = 6.000 Condition number = 20.250