An array expression that contains an infix operator and two arrays results in an array with identical bounds, with each element reflecting the result of the operation performed on the corresponding elements of the original arrays. For example:
Array A | * | Array B | = | Result | ||||||
---|---|---|---|---|---|---|---|---|---|---|
1 | 2 | -3 | 2 | 3 | 4 | 2 | 6 | -12 | ||
4 | 5 | 6 | 5 | 6 | 7 | 20 | 30 | 42 |
This is not the same as mathematical matrix multiplication.