diff options
Diffstat (limited to 'lib/Data/Packed/Vector.hs')
-rw-r--r-- | lib/Data/Packed/Vector.hs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/lib/Data/Packed/Vector.hs b/lib/Data/Packed/Vector.hs index 253f2fa..49448b2 100644 --- a/lib/Data/Packed/Vector.hs +++ b/lib/Data/Packed/Vector.hs | |||
@@ -18,14 +18,6 @@ module Data.Packed.Vector ( | |||
18 | fromList, (|>), toList, buildVector, | 18 | fromList, (|>), toList, buildVector, |
19 | dim, (@>), | 19 | dim, (@>), |
20 | subVector, takesV, join, | 20 | subVector, takesV, join, |
21 | -- moved to Numeric.LinearAlgebra.Linear | ||
22 | -- constant, linspace, | ||
23 | -- moved to Data.Packed.Matrix | ||
24 | -- vecdisp, | ||
25 | -- moved to Numeric.LinearAlgebra.Linear typeclass | ||
26 | -- vectorFMax, vectorFMin, vectorFMaxIndex, vectorFMinIndex, | ||
27 | -- vectorMax, vectorMin, | ||
28 | vectorMaxIndex, vectorMinIndex, | ||
29 | mapVector, zipVector, zipVectorWith, unzipVector, unzipVectorWith, | 21 | mapVector, zipVector, zipVectorWith, unzipVector, unzipVectorWith, |
30 | mapVectorM, mapVectorM_, mapVectorWithIndexM, mapVectorWithIndexM_, | 22 | mapVectorM, mapVectorM_, mapVectorWithIndexM, mapVectorWithIndexM_, |
31 | fscanfVector, fprintfVector, freadVector, fwriteVector, | 23 | fscanfVector, fprintfVector, freadVector, fwriteVector, |
@@ -33,9 +25,6 @@ module Data.Packed.Vector ( | |||
33 | ) where | 25 | ) where |
34 | 26 | ||
35 | import Data.Packed.Internal.Vector | 27 | import Data.Packed.Internal.Vector |
36 | import Numeric.GSL.Vector | ||
37 | -- import Data.Packed.ST | ||
38 | |||
39 | import Data.Binary | 28 | import Data.Binary |
40 | import Foreign.Storable | 29 | import Foreign.Storable |
41 | import Control.Monad(replicateM) | 30 | import Control.Monad(replicateM) |
@@ -72,35 +61,6 @@ instance (Binary a, Storable a) => Binary (Vector a) where | |||
72 | 61 | ||
73 | ------------------------------------------------------------------- | 62 | ------------------------------------------------------------------- |
74 | 63 | ||
75 | {- | ||
76 | vectorFMax :: Vector Float -> Float | ||
77 | vectorFMax = toScalarF Max | ||
78 | |||
79 | vectorFMin :: Vector Float -> Float | ||
80 | vectorFMin = toScalarF Min | ||
81 | |||
82 | vectorFMaxIndex :: Vector Float -> Int | ||
83 | vectorFMaxIndex = round . toScalarF MaxIdx | ||
84 | |||
85 | vectorFMinIndex :: Vector Float -> Int | ||
86 | vectorFMinIndex = round . toScalarF MinIdx | ||
87 | |||
88 | vectorMax :: Vector Double -> Double | ||
89 | vectorMax = toScalarR Max | ||
90 | |||
91 | vectorMin :: Vector Double -> Double | ||
92 | vectorMin = toScalarR Min | ||
93 | -} | ||
94 | |||
95 | {-# DEPRECATED vectorMaxIndex "use minIdx" #-} | ||
96 | vectorMaxIndex :: Vector Double -> Int | ||
97 | vectorMaxIndex = round . toScalarR MaxIdx | ||
98 | |||
99 | {-# DEPRECATED vectorMinIndex "use maxIdx" #-} | ||
100 | vectorMinIndex :: Vector Double -> Int | ||
101 | vectorMinIndex = round . toScalarR MinIdx | ||
102 | |||
103 | |||
104 | {- | creates a Vector of the specified length using the supplied function to | 64 | {- | creates a Vector of the specified length using the supplied function to |
105 | to map the index to the value at that index. | 65 | to map the index to the value at that index. |
106 | 66 | ||