39
Combining Arrays of Different Ranks
•An apparent limitation of ZPL (so far) is: Only arrays of like rank can be combined
–Element-wise operators combine corresponding elements: [R] A := B+C;
–Sometimes combining arrays of different rank is needed. E.g. Scale the elements of each row by the row maximum
•Find the row maximum:  2 dimension reduced to 1 dimension
•Divide each element of the row by its row max: 1 dimension applied to 2 dimensions
Ü
Ü
¸
Two cases