Index of array from mask
- From: hiphop <ratel.gilles@xxxxxxx>
- Date: Wed, 30 Apr 2008 08:52:58 -0700 (PDT)
If I have a vector: V(10000)
I am interested get index where (V > a) .AND. (V < b)
How do you do in fortran 90/95?
example:
Suppose V = (/103,102,103,104,105/)
a = 102
b = 105
I am interested get index for (V > a ) .AND. (V < b) ==> answer:
1,3, 4
.
- Follow-Ups:
- Re: Index of array from mask
- From: Thomas Koenig
- Re: Index of array from mask
- Prev by Date: Re: Fortran templates
- Next by Date: reminder of Public Comments for Fortran 2008
- Previous by thread: Allocatable arrays in derived types
- Next by thread: Re: Index of array from mask
- Index(es):