Given an RDD or grid-mapped values (with keys of the form (row, col)), compute a "partial-sum RDD", where each element's value is replaced with the sum of the values of all elements with keys from higher rows and columns.
Given an RDD or grid-mapped values (with keys of the form (row, col)), compute a "partial-sum RDD", where each element's value is replaced with the sum of the values of all elements with keys from higher rows and columns.
value type.
input RDD.
implicit Monoid exposing "addition" and identity for type V
.
a tuple consisting of the input RDD partitioned into a grid by its key (row, col) tuples, a "partial-sum" RDD as described above, and the maximum row- and column- values found.