summaryrefslogtreecommitdiff
path: root/lib/Data
diff options
context:
space:
mode:
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