diff options
author | Vivian McPhail <haskell.vivian.mcphail@gmail.com> | 2010-08-27 04:38:35 +0000 |
---|---|---|
committer | Vivian McPhail <haskell.vivian.mcphail@gmail.com> | 2010-08-27 04:38:35 +0000 |
commit | 5e60b08d76e666643c795131bcbb18d196a39520 (patch) | |
tree | c1f699d05e196db4efba6b87ce793c8a326321eb /lib/Data/Packed/Internal/Vector.hs | |
parent | 6058e1b17c005be1ea95ebb7d98d9fd15bb538d2 (diff) |
fix zipVector name to zipVectorWith
Diffstat (limited to 'lib/Data/Packed/Internal/Vector.hs')
-rw-r--r-- | lib/Data/Packed/Internal/Vector.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Data/Packed/Internal/Vector.hs b/lib/Data/Packed/Internal/Vector.hs index c8cc2c2..be2fcbb 100644 --- a/lib/Data/Packed/Internal/Vector.hs +++ b/lib/Data/Packed/Internal/Vector.hs | |||
@@ -17,7 +17,7 @@ module Data.Packed.Internal.Vector ( | |||
17 | Vector, dim, | 17 | Vector, dim, |
18 | fromList, toList, (|>), | 18 | fromList, toList, (|>), |
19 | join, (@>), safe, at, at', subVector, takesV, | 19 | join, (@>), safe, at, at', subVector, takesV, |
20 | mapVector, zipVector, unzipVectorWith, | 20 | mapVector, zipVectorWith, unzipVectorWith, |
21 | mapVectorM, mapVectorM_, | 21 | mapVectorM, mapVectorM_, |
22 | foldVector, foldVectorG, foldLoop, | 22 | foldVector, foldVectorG, foldLoop, |
23 | createVector, vec, | 23 | createVector, vec, |
@@ -319,8 +319,8 @@ mapVector f v = unsafePerformIO $ do | |||
319 | {-# INLINE mapVector #-} | 319 | {-# INLINE mapVector #-} |
320 | 320 | ||
321 | -- | zipWith for Vectors | 321 | -- | zipWith for Vectors |
322 | zipVector :: (Storable a, Storable b, Storable c) => (a-> b -> c) -> Vector a -> Vector b -> Vector c | 322 | zipVectorWith :: (Storable a, Storable b, Storable c) => (a-> b -> c) -> Vector a -> Vector b -> Vector c |
323 | zipVector f u v = unsafePerformIO $ do | 323 | zipVectorWith f u v = unsafePerformIO $ do |
324 | let n = min (dim u) (dim v) | 324 | let n = min (dim u) (dim v) |
325 | w <- createVector n | 325 | w <- createVector n |
326 | unsafeWith u $ \pu -> | 326 | unsafeWith u $ \pu -> |
@@ -333,7 +333,7 @@ zipVector f u v = unsafePerformIO $ do | |||
333 | go (k-1) | 333 | go (k-1) |
334 | go (n -1) | 334 | go (n -1) |
335 | return w | 335 | return w |
336 | {-# INLINE zipVector #-} | 336 | {-# INLINE zipVectorWith #-} |
337 | 337 | ||
338 | -- | unzipWith for Vectors | 338 | -- | unzipWith for Vectors |
339 | unzipVectorWith :: (Storable (a,b), Storable c, Storable d) | 339 | unzipVectorWith :: (Storable (a,b), Storable c, Storable d) |