Changes between Version 46 and Version 47 of DataParallel/Regular


Ignore:
Timestamp:
Feb 1, 2010 5:10:30 AM (4 years ago)
Author:
gckeller
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DataParallel/Regular

    v46 v47  
    173173we will see shortly, this can be easily done using other functions in combination with `fold`. 
    174174 
    175  
     175Related to  `fold`, we have `scan`: 
     176{{{ 
     177scan :: (U.Elt e, A.Shape dim) =>  
     178 (e -> e-> e) -> e -> DArray dim   e  -> Array dim e 
     179}}} 
     180Note that `scan` returns a value of type `Array`, not `DArray`: this means that, if we apply scan to an array and access one of its elements, the whole array will be created. 
    176181 
    177182