On Tuesday, October 6, 2015 at 12:29:04 PM UTC-4, Christoph Ortner wrote: > > a *= b is equivalent to a = a * b, which allocates a temporary variable I > think? >
A * A only allocates memory on the heap if A is an array or something other heap-allocated datatype. For A[i] *= B[i] where A[i] and B[i] are small scalar types like Float64, no temporary is allocated, the compiler just puts the result in a register.
