Changes between Version 4 and Version 6 of Ticket #22
- Timestamp:
- 08/09/10 13:54:49 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22
- Property status changed from new to assigned
-
Ticket #22 – description
v4 v6 4 4 5 5 {{{ 6 foo :: Vector Word32 -> Acc ( Scalar Word32)6 foo :: Vector Word32 -> Acc (Vector Word32) 7 7 foo xs 8 8 = let 9 9 xs' = use xs 10 10 in 11 Prelude. snd$ Acc.scanl const (xs' Acc.! constant 4) xs'11 Prelude.fst $ Acc.scanl const (xs' Acc.! constant 4) xs' 12 12 13 13 main :: IO () … … 21 21 22 22 {{{ 23 Array () [4]23 Array 10 [4,4,4,4,4,4,4,4,4,4] 24 24 }}} 25 25 … … 27 27 28 28 {{{ 29 Array () [0]29 Array 10 [0,0,0,0,0,0,0,0,0,0] 30 30 }}}
