From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Temporary output when assigning into slices?
Date: Wed, 23 Jan 2013 21:26:08 +0000 (UTC)
Organization: Xoran Technologies
Lines: 14
Message-ID: <kdpkhg$p22$>
References: <kdpbb4$gtp$> <kdpg30$6gl$> <kdpja4$jnk$> <kdpk0k$mmi$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1358976368 25666 (23 Jan 2013 21:26:08 GMT)
NNTP-Posting-Date: Wed, 23 Jan 2013 21:26:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: comp.soft-sys.matlab:787250

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kdpk0k$mmi$>...
> "Matt J" wrote in message <kdpja4$jnk$>...
> > 
> > Don't you mean, that optimization cannot be carried out in the *latter* example? I can see for example why 
> > 
> >  A=B(1,idx)*C 
> > 
> > might have to extract B(1,idx) to a continguous memory block when C is a matrix. In that case the elements in B(1,idx) will be accessed many times.
> I'm talking about accessing memory of the result, meaning lhs.

If so,  why doesn't this apply to both examples? The LHS is the same in these examples.