in reply to Re: Fast matrix multiplication
in thread Fast matrix multiplication

In PDL, '*' is for scalar multiplication, which automatically "broadcasts" up so that two ndarrays can be scalar-multiplied so the result is each of the six "slots" being the product of the two numbers. Matrix multiplication is the overload of the 'x' operator.
pdl> p $x = sequence(2,2) [ [0 1] [2 3] ] pdl> p $y = sequence(2,2) + 3 [ [3 4] [5 6] ] pdl> p $x * $y [ [ 0 4] [10 18] ] pdl> p $x x $y [ [ 5 6] [21 26] ]