Changes between Version 39 and Version 40 of DataParallel/Regular


Ignore:
Timestamp:
Jan 20, 2010 12:49:31 PM (4 years ago)
Author:
gckeller
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DataParallel/Regular

    v39 v40  
    33The library provides a layer on top of DPH unlifted arrays to support multi-dimensional arrays, and shape polymorphic  
    44operations for fast sequential and parallel execution. The interface for delayed arrays is similar, but in contrast  
    5 to operations on the former, any operation on a delayed array is not evaluated. To force evaluation, the programmer 
    6 has to explicitly convert them to a strict array.  
    7  
    8 The current implementation of the library exposes some implementation details the user of the library shouldn't  
     5to operations on the former, any operation on a delayed array is only actually evaluated when elements are accessed outside the DArray framework. 
     6 
     7The current implementation of the library exposes some implementation details the user shouldn't  
    98have to worry about. Once the design of the library is finalised, most of these will be hidden by distinguishing  
    109between internal types and representation types. 
     
    241240select:: (U.Elt e, Shape dim, Shape dim') => Array dim e -> SelectIndex dim dim'  -> Array dim' e 
    242241}}} 
     242 
     243 
     244Even though the index type is well suited to express the relationship 
     245between the selector/multiplicator and the dimensionality of the 
     246argument and the result array, it is inconvenient to use, as the 
     247examples demonstrate. We therefore do need to add another layer to 
     248improve the usability of the library.  
     249 
     250 
     251 
    243252Example: 
    244253{{{ 
     
    278287replicates each element of an array `n` times (similarly to `map (replicate n)` on lists). 
    279288 
    280  
    281 Even though the index type is well suited to express the relationship 
    282 between the selector/multiplicator and the dimensionality of the 
    283 argument and the result array, it is inconvenient to use, as the 
    284 examples demonstrate. We therefore do need to add another layer to 
    285 improve the usability of the library. 
    286289 
    287290Note that the library provides no way to statically check the pre- and 
     
    454457=== Wave computations === 
    455458 
    456 =