summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Vector.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Data/Packed/Vector.hs')
-rw-r--r--lib/Data/Packed/Vector.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Data/Packed/Vector.hs b/lib/Data/Packed/Vector.hs
index 4f25b6f..62fc8af 100644
--- a/lib/Data/Packed/Vector.hs
+++ b/lib/Data/Packed/Vector.hs
@@ -19,8 +19,9 @@ module Data.Packed.Vector (
19 subVector, takesV, join, 19 subVector, takesV, join,
20 constant, linspace, 20 constant, linspace,
21 vecdisp, 21 vecdisp,
22 vectorFMax, vectorFMin, vectorFMaxIndex, vectorFMinIndex, 22-- moved to Numeric.LinearAlgebra.Interface typeclass
23 vectorMax, vectorMin, vectorMaxIndex, vectorMinIndex, 23-- vectorFMax, vectorFMin, vectorFMaxIndex, vectorFMinIndex,
24-- vectorMax, vectorMin, vectorMaxIndex, vectorMinIndex,
24 mapVector, zipVector, 25 mapVector, zipVector,
25 fscanfVector, fprintfVector, freadVector, fwriteVector, 26 fscanfVector, fprintfVector, freadVector, fwriteVector,
26 foldLoop, foldVector, foldVectorG 27 foldLoop, foldVector, foldVectorG
@@ -82,6 +83,7 @@ linspace n (a,b) = add a $ scale s $ fromList [0 .. fromIntegral n-1]
82 add = vectorMapValR AddConstant 83 add = vectorMapValR AddConstant
83 s = (b-a)/fromIntegral (n-1) 84 s = (b-a)/fromIntegral (n-1)
84 85
86{-
85vectorFMax :: Vector Float -> Float 87vectorFMax :: Vector Float -> Float
86vectorFMax = toScalarF Max 88vectorFMax = toScalarF Max
87 89
@@ -105,6 +107,7 @@ vectorMaxIndex = round . toScalarR MaxIdx
105 107
106vectorMinIndex :: Vector Double -> Int 108vectorMinIndex :: Vector Double -> Int
107vectorMinIndex = round . toScalarR MinIdx 109vectorMinIndex = round . toScalarR MinIdx
110-}
108 111
109{- | creates a vector with a given number of equal components: 112{- | creates a vector with a given number of equal components:
110 113