summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Vector.hs
diff options
context:
space:
mode:
authorVivian McPhail <haskell.vivian.mcphail@gmail.com>2010-07-07 09:30:56 +0000
committerVivian McPhail <haskell.vivian.mcphail@gmail.com>2010-07-07 09:30:56 +0000
commit9eba8eaa9bd25377f10fd5a62cc6f8771824a0cf (patch)
tree1007ebe02dd51a7e97fe91fd50e4a0f99493f364 /lib/Data/Packed/Vector.hs
parent0bcf8cb0860177376cdb04e54761432ccbe63bda (diff)
rerename minIdx/maxIdx and deprecate vectorMinIdx
Diffstat (limited to 'lib/Data/Packed/Vector.hs')
-rw-r--r--lib/Data/Packed/Vector.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Data/Packed/Vector.hs b/lib/Data/Packed/Vector.hs
index 62fc8af..bb89506 100644
--- a/lib/Data/Packed/Vector.hs
+++ b/lib/Data/Packed/Vector.hs
@@ -31,6 +31,7 @@ import Data.Packed.Internal
31import Numeric.GSL.Vector 31import Numeric.GSL.Vector
32-- import Data.Packed.ST 32-- import Data.Packed.ST
33 33
34
34import Data.Binary 35import Data.Binary
35import Foreign.Storable 36import Foreign.Storable
36import Control.Monad(replicateM) 37import Control.Monad(replicateM)
@@ -101,13 +102,16 @@ vectorMax = toScalarR Max
101 102
102vectorMin :: Vector Double -> Double 103vectorMin :: Vector Double -> Double
103vectorMin = toScalarR Min 104vectorMin = toScalarR Min
105-}
104 106
107{-# DEPRECATED vectorMaxIndex "use minIdx" #-}
105vectorMaxIndex :: Vector Double -> Int 108vectorMaxIndex :: Vector Double -> Int
106vectorMaxIndex = round . toScalarR MaxIdx 109vectorMaxIndex = round . toScalarR MaxIdx
107 110
111{-# DEPRECATED vectorMinIndex "use maxIdx" #-}
108vectorMinIndex :: Vector Double -> Int 112vectorMinIndex :: Vector Double -> Int
109vectorMinIndex = round . toScalarR MinIdx 113vectorMinIndex = round . toScalarR MinIdx
110-} 114
111 115
112{- | creates a vector with a given number of equal components: 116{- | creates a vector with a given number of equal components:
113 117