diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-09-20 08:39:33 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-09-20 08:39:33 +0000 |
commit | 9593058746aaf1f5afd9ce78c1dd5d64ef7b05a6 (patch) | |
tree | c109e502df2160cef7c95272478a78dc3c8bcc75 /lib/Data | |
parent | 0fc87fd99db80b81521a51c8abf4b8b151efb9da (diff) |
move deprecated funcs to Numeric.Container
Diffstat (limited to 'lib/Data')
-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 | ||