Custom Query (35 matches)
Results (7 - 9 of 35)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #2 | fixed | Split core algorithms of examples into repa-algorithms package. | ||
| Description |
Especially the FFT algorithm, as it's generally useful. |
|||
| #16 | fixed | Split ByteString fns into a separate package. | ||
| Description |
to remove "fake" dependencies on the main library. |
|||
| #42 | fixed | Result of foldAllP isn't forced. | ||
| Description |
Report from Chris Reade:
That is why I expected this code to work without the explicit writeHeatMapBMP :: String
-> Array U DIM2 Double
-> IO()
writeHeatMapBMP filename arr
= do maxVal <- foldAllP max 0.0 arr
minVal <- foldAllP min 0.0 arr
arrImageOut <- minVal `seq` maxVal `seq`
computeP
$ R.map rgb8OfDouble
$ R.map (rampColorHotToCold minVal maxVal) arr
writeImageToBMP filename arrImageOut
The implementation of foldAllP should ensure that the result is evaluated before it returns. |
|||
Note: See TracQuery
for help on using queries.
