Opened 5 years ago

Last modified 4 years ago

#41 new enhancement

Generalise foldS worker to have a different accumulator type

Reported by: benl 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 4 years ago by benl

  • Milestone 4.0.0 deleted

comment:2 Changed 4 years ago by benl

  • Component changed from library to repa
Note: See TracTickets for help on using tickets.