diff options
author | Alberto Ruiz <aruiz@um.es> | 2014-05-08 13:43:07 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2014-05-08 13:43:07 +0200 |
commit | 551cf7498c33bc0948bb4cb8444ae6f8af7278ea (patch) | |
tree | ec86ff73151746f5e13b83549ea5c60ed442764d /packages/hmatrix/src/Numeric/Container.hs | |
parent | 561a6c0e21bb77c21114ccbbd86d3af5ddb5a3f1 (diff) |
separation ok
Diffstat (limited to 'packages/hmatrix/src/Numeric/Container.hs')
-rw-r--r-- | packages/hmatrix/src/Numeric/Container.hs | 14 |
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 | ||
67 | import Data.Packed | 67 | import Data.Packed hiding (stepD, stepF, condD, condF, conjugateC, conjugateQ) |
68 | import Data.Packed.Internal(constantD) | ||
69 | import Numeric.ContainerBoot | 68 | import Numeric.ContainerBoot |
70 | import Numeric.Chain | 69 | import Numeric.Chain |
71 | import Numeric.IO | 70 | import 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 | ||
81 | 7 |> [2.0,2.0,2.0,2.0,2.0,2.0,2.0]@ | ||
82 | -} | ||
83 | constant :: Element a => a -> Int -> Vector a | ||
84 | -- constant x n = runSTVector (newVector x n) | ||
85 | constant = 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) |