Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Segmentation violation due to MEX code
Date: Tue, 7 Jul 2009 08:41:02 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 16
Message-ID: <h2v1mu$oes$1@fred.mathworks.com>
References: <h2tkfd$l84$1@fred.mathworks.com> <5b6d0b68-60e9-41be-a22f-ea755e2db20d@r33g2000yqn.googlegroups.com> <0730bcf8-a935-44b6-b7ad-16430725fceb@d4g2000yqa.googlegroups.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246956062 25052 172.30.248.37 (7 Jul 2009 08:41:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 7 Jul 2009 08:41:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:553320


Rune Allnor <allnor@tele.ntnu.no> wrote in message <0730bcf8-a935-44b6-b7ad-16430725fceb@d4g2000yqa.googlegroups.com>...
> On 7 Jul, 07:29, "Bruno Luong" <b.lu...@fogale.findmycountry> wrote:
> > > What speed-ups do you achieve after these
> > > modifications?
> >
> > Elapsed time is 2.187960 seconds. % <- ACCUMARRAY
> > Elapsed time is 3.918172 seconds. % <- MEX, MSVS 6.0, compiled with -O
> >
> > codes attached bellow.
> 
> The test is invalid, as the routines produce different results.
> 

Yes ACCUMARRAY doing *MORE* than the C code.

Bruno