Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
References: <kdpbb4$gtp$1@newscl01ah.mathworks.com> <kdpg30$6gl$1@newscl01ah.mathworks.com> <kdpja4$jnk$1@newscl01ah.mathworks.com> <kdpk0k$mmi$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1358976368 25666 172.30.248.37 (23 Jan 2013 21:26:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 23 Jan 2013 21:26:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:787250

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kdpk0k$mmi$1@newscl01ah.mathworks.com>...
> "Matt J" wrote in message <kdpja4$jnk$1@newscl01ah.mathworks.com>...
> 
> > 
> > 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.