From 9eba8eaa9bd25377f10fd5a62cc6f8771824a0cf Mon Sep 17 00:00:00 2001 From: Vivian McPhail Date: Wed, 7 Jul 2010 09:30:56 +0000 Subject: rerename minIdx/maxIdx and deprecate vectorMinIdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Data/Packed/Vector.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/Data/Packed/Vector.hs') 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 import Numeric.GSL.Vector -- import Data.Packed.ST + import Data.Binary import Foreign.Storable import Control.Monad(replicateM) @@ -101,13 +102,16 @@ vectorMax = toScalarR Max vectorMin :: Vector Double -> Double vectorMin = toScalarR Min +-} +{-# DEPRECATED vectorMaxIndex "use minIdx" #-} vectorMaxIndex :: Vector Double -> Int vectorMaxIndex = round . toScalarR MaxIdx +{-# DEPRECATED vectorMinIndex "use maxIdx" #-} vectorMinIndex :: Vector Double -> Int vectorMinIndex = round . toScalarR MinIdx --} + {- | creates a vector with a given number of equal components: -- cgit v1.2.3