Array Filter Expressions
The filtering capabilities described in the previous sections are those that are most often used. In some circumstances, you may want to create more general filter expressions. When you create a filter expression, you are creating a Fortran or C Boolean expression that TotalView evaluates for every element in the array or the array slice. For example, here is an expression that displays all array elements whose contents are greater than 0 and less than 50 or greater than 100 and less than 150.
($value > 0 && $value < 50) ||
($value > 100 && $value < 150)
As TotalView looks at array elements, it sets the $value special variable to the element's value. It then evaluates your expression. So, if your array had 15 elements, this expression would be evaluated 15 times.
Notice also the use of the && and || operators to joint parts of the Boolean expression together. You can use any of TotalView's standard operators. And, the way in which TotalView computes the results of an expression is identical to the way it computes values at an evaluation point. For more information, see Defining Evaluation Points.
Note: You cannot use any of the IEEE tag values described in Filtering for IEEE Values in these kind of expressions.