Changes between Version 4 and Version 5 of DataParallel/Regular


Ignore:
Timestamp:
May 13, 2009 8:12:46 AM (6 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DataParallel/Regular

    v4 v5  
    5454=== Creating Arrays === 
    5555 
    56 A new arrays can be created from flat parallel arrays  
     56A new array can be created from a flat parallel array 
    5757{{{ 
    5858fromNArray:: U.Elt r => U.Array r -> Array DIM1 r 
    5959}}} 
     60'''SLPJ: what is U?  What is U.Array?''' 
    6061and from scalar values: 
    6162{{{ 
     
    6768bpermuteR:: Array dim e -> Shape dim' -> (Shape dim' -> Shape dim) -> Array dim' 
    6869}}} 
    69 For example, transposition of a two dimensional array can be defined in terms of mkArray as follows: 
     70'''SLPJ: I'd call it `reshape` like APL.''' 
     71For example, transposition of a two dimensional array can be defined in terms of mkArray as follows '''SLPJ: in terms of `bpermuteR` perhaps?''': 
    7072{{{ 
    7173transpose:: Array DIM2 a -> Array DIM2 a 
     
    7375  where (n,m) = shape arr 
    7476}}} 
     77'''SLPJ: presumably `shape :: Array dim a -> Shape dim`?'''. 
    7578Or cutting a 3 x 3 tile starting at indices (0,0) out of a two dimensional matrix: 
    7679{{{