On entry, | or . |
On entry, | or . |
On entry, | , or . |
On entry, | . |
On entry, | . |
Open in the MATLAB editor: f01zb_example
function f01zb_example fprintf('f01zb example results\n\n'); job = 'Pack'; uplo = 'U'; diag = 'N'; a = [ 1.1 + 1.1i, 1.2 + 1.2i, 1.3 + 1.3i, 1.4 + 1.4i; 0 + 0i, 2.2 + 2.2i, 2.3 + 2.3i, 2.4 + 2.4i; 0 + 0i, 0 + 0i, 3.3 + 3.3i, 3.4 + 3.4i; 0 + 0i, 0 + 0i, 0 + 0i, 4.4 + 4.4i]; b = complex(zeros(10, 1)); [A, ap, ifail] = f01zb(job, uplo, diag, a, b); disp('Unpacked Matrix A:'); disp(A); fprintf('\n'); disp('Packed Vector ap:'); disp(ap);
f01zb example results Unpacked Matrix A: 1.1000 + 1.1000i 1.2000 + 1.2000i 1.3000 + 1.3000i 1.4000 + 1.4000i 0.0000 + 0.0000i 2.2000 + 2.2000i 2.3000 + 2.3000i 2.4000 + 2.4000i 0.0000 + 0.0000i 0.0000 + 0.0000i 3.3000 + 3.3000i 3.4000 + 3.4000i 0.0000 + 0.0000i 0.0000 + 0.0000i 0.0000 + 0.0000i 4.4000 + 4.4000i Packed Vector ap: 1.1000 + 1.1000i 1.2000 + 1.2000i 2.2000 + 2.2000i 1.3000 + 1.3000i 2.3000 + 2.3000i 3.3000 + 3.3000i 1.4000 + 1.4000i 2.4000 + 2.4000i 3.4000 + 3.4000i 4.4000 + 4.4000i