- morph-reduce op m #!optional axes keepdims? frame-rankprocedure
Reduce morphism along specified axes. Operations: 'sum, 'mean, 'max, 'min, 'prod. With a frame-rank above 0, the leading frame-rank axes form a frame, and each cell is reduced exactly as it would be on its own (see Frame Lifting below): (morph-reduce 'sum m '(2) #f 1) maps [F M N] to [F M], the row sums of each [M N] cell.
The scans morph-scan, morph-cumsum and morph-cumprod are described in the Scans section below.