in reply to Re: Dot product of three matrices
in thread Dot product of three matrices

I think by "three matrices" OP meant "two vectors" .. it's just that instead of having $Ax,$Ay,$Az and $Bx, $By, $Bz, OP is instead passing [$Ax, $Bx], [$Ay,$By], [$Az,$Bz] to his sub.

Replies are listed 'Best First'.
Re^3: Dot product of three matrices
by Jaap (Curate) on Aug 02, 2005 at 08:00 UTC
    Is he?
    $sum += $$x[$i] * $$y[$i] * $$z[$i];
    The above code implies bad things but he is in fact calculating the dot product of 3 vectors that are 2D. To sum it up: not the clearest code ever :-)