Order of linear algebra operations in Julia

Viewed 118

If I have a command y = A*B*x where A & B are large matrices and x & y are vectors, will Julia preform y = ((A*B)*x) or y = (A*(B*x))?

The second option should be the best as it only has to allocate an extra vector rather than a large matrix.

1 Answers
Related