Support row and column wise reductions in piecewise nodes.

This enables the reduction combination of 1D and 2D piece wise nodes if they have a common dimension size and argument. This reduces the number of reads from global memory and reduces register usage in kernels by eliminating reads that are not necessary. This also refactors constant and variable detection to clean up the interface.

Merge request reports

Loading