Assigning in-place and creating temporaries are actually totally orthogonal.
One is concerned with mutating J. This is contrasted with writing, J = K * M The other is concerned with the way that K * M gets computed before any assignment operation or mutation can occur. This is contrasted with something like A_mul_B. -- John Sent from my iPhone > On Dec 14, 2014, at 7:48 PM, Petr Krysl <[email protected]> wrote: > > Hello everybody, > > I hope someone knows this: What is the use of writing > > J[:,:] = K*M > > where all of these quantities are matrices? I thought I'd seen somewhere that > it was assigning to the matrix "in-place" instead of creating a temporary. > Is that so? > I couldn't find it in the documentation for 0.3. > > Thanks, > > Petr
