summaryrefslogtreecommitdiff
path: root/packages/hmatrix/src/Numeric/Container.hs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/hmatrix/src/Numeric/Container.hs')
-rw-r--r--packages/hmatrix/src/Numeric/Container.hs14
1 files changed, 2 insertions, 12 deletions
diff --git a/packages/hmatrix/src/Numeric/Container.hs b/packages/hmatrix/src/Numeric/Container.hs
index ff649b7..3a8dd94 100644
--- a/packages/hmatrix/src/Numeric/Container.hs
+++ b/packages/hmatrix/src/Numeric/Container.hs
@@ -30,7 +30,7 @@ module Numeric.Container (
30 -- * Basic functions 30 -- * Basic functions
31 module Data.Packed, 31 module Data.Packed,
32 konst, build, 32 konst, build,
33 constant, linspace, 33 linspace,
34 diag, ident, 34 diag, ident,
35 ctrans, 35 ctrans,
36 -- * Generic operations 36 -- * Generic operations
@@ -64,8 +64,7 @@ module Numeric.Container (
64 fscanfVector, fprintfVector, freadVector, fwriteVector, 64 fscanfVector, fprintfVector, freadVector, fwriteVector,
65) where 65) where
66 66
67import Data.Packed 67import Data.Packed hiding (stepD, stepF, condD, condF, conjugateC, conjugateQ)
68import Data.Packed.Internal(constantD)
69import Numeric.ContainerBoot 68import Numeric.ContainerBoot
70import Numeric.Chain 69import Numeric.Chain
71import Numeric.IO 70import Numeric.IO
@@ -75,15 +74,6 @@ import Numeric.Random
75 74
76------------------------------------------------------------------ 75------------------------------------------------------------------
77 76
78{- | creates a vector with a given number of equal components:
79
80@> constant 2 7
817 |> [2.0,2.0,2.0,2.0,2.0,2.0,2.0]@
82-}
83constant :: Element a => a -> Int -> Vector a
84-- constant x n = runSTVector (newVector x n)
85constant = constantD-- about 2x faster
86
87{- | Creates a real vector containing a range of values: 77{- | Creates a real vector containing a range of values:
88 78
89>>> linspace 5 (-3,7::Double) 79>>> linspace 5 (-3,7::Double)