Opened 10 years ago

Last modified 9 years ago

#41 new enhancement

Generalise foldS worker to have a different accumulator type

Reported by: Ben Lippmeier Owned by:
Priority: normal Milestone:
Component: repa Version: 3.2.2
Keywords: Cc:

Description

With

foldS :: (Elt a, V.Unbox a)
      => M.IOVector a   -- ^ vector to write elements into
      -> (Int# -> a)    -- ^ function to get an element from the given index
      -> (a -> a -> a)  -- ^ binary associative combination function
      -> a              -- ^ starting value (typically an identity)
      -> Int#           -- ^ inner dimension (length to fold over)
      -> IO ()

the worker could really have type (a -> b -> b) in the sequential case.

Change History (2)

comment:1 Changed 9 years ago by Ben Lippmeier

Milestone: 4.0.0

comment:2 Changed 9 years ago by Ben Lippmeier

Component: libraryrepa
Note: See TracTickets for help on using tickets.