Basic Examples (3)
This folds an input list with the Plus operator and initial value 0:
The above is equivalent to Fold:
operates on input CUDAMemory:
This folds the CUDAMemory as before:
Note that the output type is the same as the input—that is, if the input is a Real valued list, then the output is a real number.
Compared to Fold, only a few operations are supported by :