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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a37:8044:: with SMTP id b65mr6645143qkd.238.1585684444088; Tue, 31 Mar 2020 12:54:04 -0700 (PDT) X-Received: by 2002:a4a:b91a:: with SMTP id x26mr4374622ooo.2.1585684443782; Tue, 31 Mar 2020 12:54:03 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 31 Mar 2020 12:54:03 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=146.5.2.231; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 146.5.2.231 References: <6c2c0e35-af07-4169-8be5-464ec7fd0fd5@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GNAT vs Matlab - operation on multidimensional complex matrices From: Shark8 Injection-Date: Tue, 31 Mar 2020 19:54:04 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:58262 Date: 2020-03-31T12:54:03-07:00 List-Id: On Tuesday, March 31, 2020 at 1:20:45 PM UTC-6, Simon Wright wrote: > Shark8 writes: > > > Ok then; the following should have convention Fortran IIRC: > > > > type tCubeReal is array (1..NumChannels, 1..NumAngles, 1..NumRanges) of mReal > > with Convention => Fortran; > > I wondered about this; the code ran considerably slower with Convention > => Fortran. Interesting / unexpected. I wonder... could it be that the CPU is itself optimized for row-major access? It also looks like the For/Of loop takes longer than indexes on nested-for.