Next: , Previous: , Up: Internal Routines   [Contents][Index]

15.5.558 sieve

sieve( [data,] condition)

Returns a 1d array containing those elements of numerical variable data for which the corresponding element of condition is non-zero. If condition isn’t met anywhere, then scalar -1 is returned. If data is not specified, then the indices of non-zero elements of condition are returned (i.e. equivalent to sieve(indgen(long(condition)),condition)).

See also: match