% Set vector dimension
n = 5;

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

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

% Set a scalar to zero
c = 0;

% Compute the dot product
alpha = Apdot_unb_var2( c, a, b );

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

LinearAlgebraWiki: Apdot/FLAME@lab/DriverUnbVar2 (last edited 2007-05-31 17:48:00 by MarthaGanser)