summaryrefslogtreecommitdiff
path: root/lib/Data
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2010-09-20 08:39:33 +0000
committerAlberto Ruiz <aruiz@um.es>2010-09-20 08:39:33 +0000
commit9593058746aaf1f5afd9ce78c1dd5d64ef7b05a6 (patch)
treec109e502df2160cef7c95272478a78dc3c8bcc75 /lib/Data
parent0fc87fd99db80b81521a51c8abf4b8b151efb9da (diff)
move deprecated funcs to Numeric.Container
Diffstat (limited to 'lib/Data')
-rw-r--r--lib/Data/Packed/Vector.hs40
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
35import Data.Packed.Internal.Vector 27import Data.Packed.Internal.Vector
36import Numeric.GSL.Vector
37-- import Data.Packed.ST
38
39import Data.Binary 28import Data.Binary
40import Foreign.Storable 29import Foreign.Storable
41import Control.Monad(replicateM) 30import Control.Monad(replicateM)
@@ -72,35 +61,6 @@ instance (Binary a, Storable a) => Binary (Vector a) where
72 61
73------------------------------------------------------------------- 62-------------------------------------------------------------------
74 63
75{-
76vectorFMax :: Vector Float -> Float
77vectorFMax = toScalarF Max
78
79vectorFMin :: Vector Float -> Float
80vectorFMin = toScalarF Min
81
82vectorFMaxIndex :: Vector Float -> Int
83vectorFMaxIndex = round . toScalarF MaxIdx
84
85vectorFMinIndex :: Vector Float -> Int
86vectorFMinIndex = round . toScalarF MinIdx
87
88vectorMax :: Vector Double -> Double
89vectorMax = toScalarR Max
90
91vectorMin :: Vector Double -> Double
92vectorMin = toScalarR Min
93-}
94
95{-# DEPRECATED vectorMaxIndex "use minIdx" #-}
96vectorMaxIndex :: Vector Double -> Int
97vectorMaxIndex = round . toScalarR MaxIdx
98
99{-# DEPRECATED vectorMinIndex "use maxIdx" #-}
100vectorMinIndex :: Vector Double -> Int
101vectorMinIndex = 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