Changes between Version 17 and Version 18 of DataParallel/Replicate


Ignore:
Timestamp:
Aug 7, 2011 12:38:40 PM (4 years ago)
Author:
chak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DataParallel/Replicate

    v17 v18  
    108108  = unconcatPA xss (fl (expandPA xss env) (concatPA xss)) 
    109109}}} 
    110 In both cases, we replicate the environment of a closure before we apply the lifted version of the function represented by the closure. 
     110In both cases, we replicate the environment of a closure before we apply the lifted version of the function represented by the closure.  This is important as it guarantees that the consumer of these occurrences of `replicatePA` and `expandPA` process (topmost) segment structure in a homomorphic manner (after all, we are implementing a `map` function here)! 
    111111 
    112112The idea behind Plan A is that `replicatePA` and `expandPA` produce a segmented array that encodes the replication without unnecessarily copying data and that the consumer —the lifted function `fl`— processes segmented arrays with encoded replication in a special manner.