Version 17 (modified by benl, 4 years ago)

--

Repa (REgular PArallel arrays)

Repa provides high performance, regular, multi-dimensional, shape polymorphic parallel arrays. All numeric data is stored unboxed. Functions written with the Repa combinators are automatically parallel provided you supply +RTS -Nwhatever on the command line when running the program.

Caveats

  • Repa currently depends on the head branch of GHC to get decent performance. If you compile it with 6.12 then it'll run, but the programs will be more than 10x slower than normal. It's been tested with GHC > 6.13.20100309.
  • For performance reasons, we don't do bounds checking when indexing arrays. Indexing outside an array will likely cause heap corruption.
  • Repa means "turnip" in Russian. If you don't like turnips then this library probably isn't for you.

Download

Repa is split up into a few packages to help control dependencies.

If you want the lot then just install the examples, and this will pull down the rest.

cabal install repa-examples

Report a bug

If you have a bug or feature request, please add a new ticket.
Note that for spam prevention you must first register (takes 10 sec) before you can add a ticket.

You can also send email to repa@ouroborus.net

Examples

Here is the output of some of the examples included in the repa-examples package:

fft2d-highpass Laplace
Error: Macro Image(WikiStart:lena-high2-thumb.jpg) failed
Attachment 'wiki:WikiStart: lena-high2-thumb.jpg' does not exist.
Error: Macro Image(WikiStart:pls-400x400-out-thumb.jpg) failed
Attachment 'wiki:WikiStart: pls-400x400-out-thumb.jpg' does not exist.
more info more info