% Set vector dimension
n = 5;

% Create a random vector a
x = rand( n, 1 );

% Create a random vector b
y = rand( n, 1 );

% Set a scalar to zero
c = 0;

% Compute the dot product
alpha_out = Apdot_unb_var1( c, x, y );

disp("x = "), disp(a);
disp("y ="), disp(b);
disp("alpha_out ="), disp(alpha_out); 


LinearAlgebraWiki: Apdot/FLAME@lab/DriverUnbVar1 (last edited 2008-08-03 16:15:46 by MarthaGanser)