Changes between Version 28 and Version 29 of WikiStart


Ignore:
Timestamp:
Jun 10, 2011, 2:45:07 AM (13 years ago)
Author:
Ben Lippmeier
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v28 v29  
    2727Q: GHC complains:  `ghc.exe: could not execute opt`  what's up with that? [[br]]
    2828A: `opt` is the LLVM optimiser. You need to install [http://llvm.org/ LLVM].
     29
     30Q: How to I map a function across all slices in an array? [[br]]
     31A: This is not possible in general because we can't guarantee that the worker function will return a slice with the same shape as the original. If the slices only contain a few elements (up to six) then your best bet is to use an array of tuples and use the regular `map` function to apply the worker to all the tuples. This approach is limited to 6-tuples because that's the maximum the `Data.Vector` library currently supports, and `Repa` uses `Data.Vector` to store manifest arrays. See `http://repa.ouroborus.net/ticket/22` for discussion.
    2932
    3033Q: Where do I ask further questions? [[br]]