From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!w31g2000yqk.googlegroups.com!not-for-mail From: jonathan Newsgroups: comp.lang.ada Subject: Re: Copying rows in a two dimensional array. Date: Sun, 14 Feb 2010 08:16:06 -0800 (PST) Organization: http://groups.google.com Message-ID: <44a00a9c-da00-42c3-90fa-ab6f3c4237b8@w31g2000yqk.googlegroups.com> References: <4b6637a1$0$4586$4d3efbfe@news.sover.net> NNTP-Posting-Host: 143.117.23.62 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1266164167 21441 127.0.0.1 (14 Feb 2010 16:16:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 14 Feb 2010 16:16:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w31g2000yqk.googlegroups.com; posting-host=143.117.23.62; posting-account=Jzt5lQoAAAB4PhTgRLOPGuTLd_K1LY-C User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.16) Gecko/2009121609 Iceweasel/3.0.6 (Debian-3.0.6-3),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9216 Date: 2010-02-14T08:16:06-08:00 List-Id: On Feb 14, 1:54=A0am, Hibou57 (Yannick Duch=EAne) wrote: > Le Sun, 14 Feb 2010 01:42:13 +0100, jonathan a = =A0 > =E9crit: First example: we eigen-decompose an N x N =3D 2048 x 2048 matrix. The data storage matrix is M x M =3D (1024+Padding) x (1024+Padding) should be of course: First example: we eigen-decompose an N x N =3D 2048 x 2048 matrix. The data storage matrix is M x M =3D (2048+Padding) x (2048+Padding) > Do not know if you already know this document (as I remember I picked it = =A0 > up from some one thread at comp.lang.ada), I've talked about on the other= =A0 > fr.c.l.a :http://research.scee.net/files/presentations/gcapaustralia09/Pi= tfalls... > I had pointed about frames =A0#17, #18, #19 et #20, which contains good = =A0 > source of inspiration. Hope this could help you to figure a path. Yes, I remembered this, probably from an old post of yours. I wanted to cite it when when I posted earlier, but I could not find the site. This is not something you forget quickly (frames 17 and 18): 1980: RAM latency ~ 1 cycle 2009: RAM latency ~ 400+ cycles It's the heart of the matter, and it is just getting worse. Helps convince me anyway that I did not waste time on an unimportant matter! In numerical linear algebra the usual solution is to restructure matrices as a collection of blocks. That has a few of its own problems though. Minor footnote: I did some tests on Intel's new nehalem CPU's. Vastly improved performance on these multi-megabyte arrays. Problem not cured though. Don't know enough to say more about it. Thanks for the reminder. Jonathan