Fix any/all reduction in the case of row-major layout

Fix any/all reduction inefficiency in the case of row-major layout.

Merge request reports

Loading