None.
Open in the MATLAB editor: f16gh_example
function f16gh_example fprintf('f16gh example results\n\n'); n = int64(3); x = [ -4 + 2.1i 3.7 + 4.5i -6 + 1.2i]; y = [ -3 - 2.4i 6.4 - 5.0i -5.1 + 0.0i]; % z = alpha*x +beta*y; alpha = 3 + 2i; beta = 0 - 1i; fprintf('w = alpha*x + beta*y\n'); fprintf('alpha = %5.1f%+5.1fi beta = %5.1f%+5.1fi\n', ... real(alpha), imag(alpha), real(beta), imag(beta)); incx = int64(1); incy = int64(1); incw = int64(1); [w] = f16gh( ... n, alpha, x, incx, beta, y, incy, incw); disp(' x y w'); disp([x; y; w']');
f16gh example results w = alpha*x + beta*y alpha = 3.0 +2.0i beta = 0.0 -1.0i x y w -4.0000 - 2.1000i -3.0000 + 2.4000i -18.6000 + 1.3000i 3.7000 - 4.5000i 6.4000 + 5.0000i -2.9000 +14.5000i -6.0000 - 1.2000i -5.1000 + 0.0000i -20.4000 - 3.3000i