Newsgroups: comp.lang.fortran
From: Dennis Wassel <dennis.was...@googlemail.com>
Date: Thu, 19 Jun 2008 01:16:34 -0700 (PDT)
Local: Thurs, Jun 19 2008 4:16 am
Subject: Re: Global array operations: a performance hit?
On 19 Jun., 00:00, glen herrmannsfeldt <g...@ugcs.caltech.edu> wrote:
> Dennis Wassel wrote: *Errrrrm* > (snip) > > Is (compiler) optimisation of array operations that much of a > If you do exactly the same thing in both cases, the compiler > Using vector subscripts as an example, say you have arrays X and Y, > DO I=1,N Am I getting something wrong? This won't work, consider for instance X = (2 1). Except for the special case X(I) >= I \forall I, this will produce garbage (and for permutations, that special case is only satisfied by the identity). Point is, I'm fairly sure you need temporaries here as well. > reorders Y based on the permutation, where you know that
> the values in X are unique. > Y=Y(X) > -- glen You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||