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/Vector.hs | |
parent | 6058e1b17c005be1ea95ebb7d98d9fd15bb538d2 (diff) |
fix zipVector name to zipVectorWith
Diffstat (limited to 'lib/Data/Packed/Vector.hs')
-rw-r--r-- | lib/Data/Packed/Vector.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Data/Packed/Vector.hs b/lib/Data/Packed/Vector.hs index 81dfa37..a526caa 100644 --- a/lib/Data/Packed/Vector.hs +++ b/lib/Data/Packed/Vector.hs | |||
@@ -26,7 +26,7 @@ module Data.Packed.Vector ( | |||
26 | -- vectorFMax, vectorFMin, vectorFMaxIndex, vectorFMinIndex, | 26 | -- vectorFMax, vectorFMin, vectorFMaxIndex, vectorFMinIndex, |
27 | -- vectorMax, vectorMin, | 27 | -- vectorMax, vectorMin, |
28 | vectorMaxIndex, vectorMinIndex, | 28 | vectorMaxIndex, vectorMinIndex, |
29 | mapVector, zipVector, unzipVector, unzipVectorWith, | 29 | mapVector, zipVector, zipVectorWith, unzipVector, unzipVectorWith, |
30 | mapVectorM, mapVectorM_, | 30 | mapVectorM, mapVectorM_, |
31 | fscanfVector, fprintfVector, freadVector, fwriteVector, | 31 | fscanfVector, fprintfVector, freadVector, fwriteVector, |
32 | foldLoop, foldVector, foldVectorG | 32 | foldLoop, foldVector, foldVectorG |
@@ -114,6 +114,10 @@ buildVector len f = | |||
114 | fromList $ map f [0 .. (len - 1)] | 114 | fromList $ map f [0 .. (len - 1)] |
115 | 115 | ||
116 | 116 | ||
117 | -- | zip for Vectors | ||
118 | zipVector :: (Storable a, Storable b, Storable (a,b)) => Vector a -> Vector b -> Vector (a,b) | ||
119 | zipVector = zipVectorWith (,) | ||
120 | |||
117 | -- | unzip for Vectors | 121 | -- | unzip for Vectors |
118 | unzipVector :: (Storable a, Storable b, Storable (a,b)) => Vector (a,b) -> (Vector a,Vector b) | 122 | unzipVector :: (Storable a, Storable b, Storable (a,b)) => Vector (a,b) -> (Vector a,Vector b) |
119 | unzipVector = unzipVectorWith id | 123 | unzipVector = unzipVectorWith id |