None.
Open in the MATLAB editor: f16eh_example
function f16eh_example fprintf('f16eh example results\n\n'); % real vectors x and y; n = int64(5); x = [-4 2.1 3.7 4.5 -6.0]; y = [-3 -2.4 6.4 -5.0 -5.1]; % w = 3x - y; alpha = 3; beta = -1; incx = int64(1); incy = incx; incw = incx; [w] = f16eh(n, alpha, x, incx, beta, y, incy, incw); fprintf('x = '); fprintf('%5.1f',x); fprintf('\ny = '); fprintf('%5.1f',y); fprintf('\n%4.1f x %+4.1f y = ',alpha,beta); fprintf('%7.1f',w); fprintf('\n');
f16eh example results x = -4.0 2.1 3.7 4.5 -6.0 y = -3.0 -2.4 6.4 -5.0 -5.1 3.0 x -1.0 y = -9.0 8.7 4.7 18.5 -12.9