Changes between Version 28 and Version 29 of WikiStart
- Timestamp:
- Jun 10, 2011, 2:45:07 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v28 v29 27 27 Q: GHC complains: `ghc.exe: could not execute opt` what's up with that? [[br]] 28 28 A: `opt` is the LLVM optimiser. You need to install [http://llvm.org/ LLVM]. 29 30 Q: How to I map a function across all slices in an array? [[br]] 31 A: 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. 29 32 30 33 Q: Where do I ask further questions? [[br]]