diff options
author | Vivian McPhail <haskell.vivian.mcphail@gmail.com> | 2010-07-07 09:30:56 +0000 |
---|---|---|
committer | Vivian McPhail <haskell.vivian.mcphail@gmail.com> | 2010-07-07 09:30:56 +0000 |
commit | 9eba8eaa9bd25377f10fd5a62cc6f8771824a0cf (patch) | |
tree | 1007ebe02dd51a7e97fe91fd50e4a0f99493f364 /lib/Data/Packed/Vector.hs | |
parent | 0bcf8cb0860177376cdb04e54761432ccbe63bda (diff) |
rerename minIdx/maxIdx and deprecate vectorMinIdx
Diffstat (limited to 'lib/Data/Packed/Vector.hs')
-rw-r--r-- | lib/Data/Packed/Vector.hs | 6 |
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 | |||
31 | import Numeric.GSL.Vector | 31 | import Numeric.GSL.Vector |
32 | -- import Data.Packed.ST | 32 | -- import Data.Packed.ST |
33 | 33 | ||
34 | |||
34 | import Data.Binary | 35 | import Data.Binary |
35 | import Foreign.Storable | 36 | import Foreign.Storable |
36 | import Control.Monad(replicateM) | 37 | import Control.Monad(replicateM) |
@@ -101,13 +102,16 @@ vectorMax = toScalarR Max | |||
101 | 102 | ||
102 | vectorMin :: Vector Double -> Double | 103 | vectorMin :: Vector Double -> Double |
103 | vectorMin = toScalarR Min | 104 | vectorMin = toScalarR Min |
105 | -} | ||
104 | 106 | ||
107 | {-# DEPRECATED vectorMaxIndex "use minIdx" #-} | ||
105 | vectorMaxIndex :: Vector Double -> Int | 108 | vectorMaxIndex :: Vector Double -> Int |
106 | vectorMaxIndex = round . toScalarR MaxIdx | 109 | vectorMaxIndex = round . toScalarR MaxIdx |
107 | 110 | ||
111 | {-# DEPRECATED vectorMinIndex "use maxIdx" #-} | ||
108 | vectorMinIndex :: Vector Double -> Int | 112 | vectorMinIndex :: Vector Double -> Int |
109 | vectorMinIndex = round . toScalarR MinIdx | 113 | vectorMinIndex = 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 | ||