diff options
Diffstat (limited to 'packages/base/src/Data/Packed/Vector.hs')
-rw-r--r-- | packages/base/src/Data/Packed/Vector.hs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/packages/base/src/Data/Packed/Vector.hs b/packages/base/src/Data/Packed/Vector.hs index 53fe563..31dcf47 100644 --- a/packages/base/src/Data/Packed/Vector.hs +++ b/packages/base/src/Data/Packed/Vector.hs | |||
@@ -17,17 +17,15 @@ | |||
17 | 17 | ||
18 | module Data.Packed.Vector ( | 18 | module Data.Packed.Vector ( |
19 | Vector, | 19 | Vector, |
20 | fromList, (|>), toList, buildVector, constant, | 20 | fromList, (|>), toList, buildVector, |
21 | dim, (@>), | 21 | dim, (@>), |
22 | subVector, takesV, vjoin, join, | 22 | subVector, takesV, vjoin, join, |
23 | mapVector, mapVectorWithIndex, zipVector, zipVectorWith, unzipVector, unzipVectorWith, | 23 | mapVector, mapVectorWithIndex, zipVector, zipVectorWith, unzipVector, unzipVectorWith, |
24 | mapVectorM, mapVectorM_, mapVectorWithIndexM, mapVectorWithIndexM_, | 24 | mapVectorM, mapVectorM_, mapVectorWithIndexM, mapVectorWithIndexM_, |
25 | foldLoop, foldVector, foldVectorG, foldVectorWithIndex, | 25 | foldLoop, foldVector, foldVectorG, foldVectorWithIndex |
26 | stepD, stepF, condD, condF, conjugateC, conjugateQ | ||
27 | ) where | 26 | ) where |
28 | 27 | ||
29 | import Data.Packed.Internal.Vector | 28 | import Data.Packed.Internal.Vector |
30 | import Data.Packed.Internal.Matrix | ||
31 | import Foreign.Storable | 29 | import Foreign.Storable |
32 | 30 | ||
33 | ------------------------------------------------------------------- | 31 | ------------------------------------------------------------------- |
@@ -95,13 +93,3 @@ unzipVector = unzipVectorWith id | |||
95 | join :: Storable t => [Vector t] -> Vector t | 93 | join :: Storable t => [Vector t] -> Vector t |
96 | join = vjoin | 94 | join = vjoin |
97 | 95 | ||
98 | {- | creates a vector with a given number of equal components: | ||
99 | |||
100 | @> constant 2 7 | ||
101 | 7 |> [2.0,2.0,2.0,2.0,2.0,2.0,2.0]@ | ||
102 | -} | ||
103 | constant :: Element a => a -> Int -> Vector a | ||
104 | -- constant x n = runSTVector (newVector x n) | ||
105 | constant = constantD-- about 2x faster | ||
106 | |||
107 | |||