Re: Array subsetting
- From: nospam@xxxxxxxxxxxxx (Richard E Maine)
- Date: Thu, 31 Aug 2006 08:19:39 -0700
<L.Spadavecchia@xxxxxxxxxxxxxx> wrote:
(I understand
all the arrays in the where statement must be of the same type?)
Others have pointed out the likely reason that you are getting stack
overflows and how to work around that.
Let me just note that the above statement about being the same type is
incorrect. There is no requirement even vaguely related to that. All the
arrays must be the same shape (well, I assume there's a requirement like
that; didn't bother to check, but it sure seems like there would be).
But type isn't an issue.
P.S. I might also note that it seems pretty darned inefficient for the
compiler to create a temporary array for something quite that simple.
For more complicated cases. It suggests to me that the compiler isn't
paying much attention to the efficiency of WHERE statements. Perhaps it
wasn't very high on their priority list.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain| experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.
- References:
- Array subsetting
- From: L . Spadavecchia
- Array subsetting
- Prev by Date: Re: Logical handling
- Next by Date: Re: problematic array assignment in double precision (ifort, windows)
- Previous by thread: Re: Array subsetting
- Next by thread: Array puzzle
- Index(es):
Relevant Pages
|