Skip to content
Snippets Groups Projects
Commit 81fa7d08 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: extend Pstream gather templates to support combine or assign operation

- eliminates nearly identical code between 'gather' and 'combineGather'

  * Normal gather updates by assigning the result of the binary operation.
  * Combine gather updates by using a binary operator that modifies
    its first parameter in-place

  By-product of this refactoring are these new variants:

      listGather(), listGatherReduce()
      mapGather(), mapGatherReduce()

  that mirror the previously existing ones

      listCombineGather(), listCombineReduce()
      mapCombineGather(), mapCombineReduce()

  except that they use the 'regular' binary operator
parent 0ce5053c
Branches
No related tags found
1 merge request!727Additional refinements for Pstream and minor restructuring of combine vs reduce operations
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment