15
ZPL Detail (continued)
•
The unary global operation reduction (
<<
)
“reduces” an entire array to a single value
using an associative operator:
+<<
,
*<<
,
max<<
,
min<<
,
&<<
,
|<<
•
For example,
+<<
is summation (
S
) and
max<<
is global maximum
•
err := max<< abs(Temp - A);
Global sum was solved the first day with a tree
algorithm; global maximum was solved with the
tournament algorithm … primitive in ZPL