Simplifying Array Display
Because arrays frequently have large amounts of data, TotalView provides a variety of ways to simplify their display, including slicing and filtering, and a special viewer, the Array Viewer.
Slicing and Filtering
The top Variable Window of Figure 4 shows a basic slice operation that displays array elements at positions named by the slice. In this case, TotalView is displaying elements 6 through 10 in each of the array’s two dimensions.
The other Variable Window combines a filter with a slice to display data according to some criteria. Here, the filter shows only elements with a value greater than 300.
 
Figure 4 – Slicing and Filtering Arrays
 
RELATED TOPICS 
 
Arrays in general
Filtering in arrays
Array slices
The Array Viewer
Use the Array Viewer (from the Variable Window’s Tools > Array Viewer command) for another graphical view of data in a multi-dimensional array, Figure 5. Think of this as viewing a “plane” of two-dimensional data in your array.
 
Figure 5 – Array Viewer
The Array Viewer initially displays a slice of data based on values entered in the Variable Window. You can change the displayed data by modifying the Expression, Type, or Slice controls.
You can also see the shape of the data using the Visualizer, introduced in this chapter in The Array Visualizer”.
 
RELATED TOPICS 
 
The Array Viewer