Re: Index of array from mask
- From: dpb <none@xxxxxxx>
- Date: Wed, 30 Apr 2008 15:28:57 -0500
Paul van Delst wrote:
Michael Metcalf wrote:...."dpb" <none@xxxxxxx> wrote in message news:fvad2l$tmh$3@xxxxxxxxxxxThomas Koenig wrote:
I think he was looking for an intrinsic on the order of COUNT() or
MAXLOC() but that would return the locations of array elements meeting the
v = (/103,102,103,104,105/)....
a = 102
b = 105
write (*,*) pack((/(i,i=1,5)/), mask = v > 102 .and. v <105)
1 3 4
I tend to forget pack() far too often...sharp!
--
.
- References:
- Index of array from mask
- From: hiphop
- Re: Index of array from mask
- From: Thomas Koenig
- Re: Index of array from mask
- From: dpb
- Re: Index of array from mask
- From: Michael Metcalf
- Re: Index of array from mask
- From: Paul van Delst
- Index of array from mask
- Prev by Date: Re: Index of array from mask
- Next by Date: Derived Type Pointer Allocation Issue
- Previous by thread: Re: Index of array from mask
- Next by thread: reminder of Public Comments for Fortran 2008
- Index(es):
Relevant Pages
|
|