Changes between Version 24 and Version 25 of DataParallel/Replicate
 Timestamp:
 Aug 9, 2011 11:10:48 AM (5 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

DataParallel/Replicate
v24 v25 3 3 == The problem == 4 4 5 The vectorisation transformation lifts scalar computations into vector space. In the course of this lifting, scalar constants are duplicated to fill an array, using the function 'replicateP'. Array computations are lifted in a similar manner, which leads to array constants being replicated to form arrays of arrays, which are represented as a segmented arrays. A simple example is our 'smvm' example code:5 The vectorisation transformation lifts scalar computations into vector space. In the course of this lifting, scalar constants are duplicated to fill an array, using the function `replicateP`. Array computations are lifted in a similar manner, which leads to array constants being replicated to form arrays of arrays, which are represented as a segmented arrays. A simple example is our 'smvm' example code: 6 6 {{{ 7 7 smvm :: [:[: (Int, Double) :]:] > [:Double:] > [:Double:]