diff options
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 |