diff options
Diffstat (limited to 'packages/base/src')
-rw-r--r-- | packages/base/src/Numeric/Container.hs | 6 | ||||
-rw-r--r-- | packages/base/src/Numeric/LinearAlgebra/Compat.hs | 25 | ||||
-rw-r--r-- | packages/base/src/Numeric/LinearAlgebra/Random.hs | 3 |
3 files changed, 33 insertions, 1 deletions
diff --git a/packages/base/src/Numeric/Container.hs b/packages/base/src/Numeric/Container.hs index c715dac..264a619 100644 --- a/packages/base/src/Numeric/Container.hs +++ b/packages/base/src/Numeric/Container.hs | |||
@@ -40,6 +40,11 @@ module Numeric.Container ( | |||
40 | optimiseMult, | 40 | optimiseMult, |
41 | mXm,mXv,vXm,LSDiv(..), | 41 | mXm,mXv,vXm,LSDiv(..), |
42 | outer, kronecker, | 42 | outer, kronecker, |
43 | -- * Random numbers | ||
44 | RandDist(..), | ||
45 | randomVector, | ||
46 | gaussianSample, | ||
47 | uniformSample, | ||
43 | -- * Element conversion | 48 | -- * Element conversion |
44 | Convert(..), | 49 | Convert(..), |
45 | Complexable(), | 50 | Complexable(), |
@@ -59,6 +64,7 @@ import Data.Complex | |||
59 | import Numeric.LinearAlgebra.Algorithms(Field,linearSolveSVD) | 64 | import Numeric.LinearAlgebra.Algorithms(Field,linearSolveSVD) |
60 | import Data.Monoid(Monoid(mconcat)) | 65 | import Data.Monoid(Monoid(mconcat)) |
61 | import Data.Packed.IO | 66 | import Data.Packed.IO |
67 | import Numeric.LinearAlgebra.Random | ||
62 | 68 | ||
63 | ------------------------------------------------------------------ | 69 | ------------------------------------------------------------------ |
64 | 70 | ||
diff --git a/packages/base/src/Numeric/LinearAlgebra/Compat.hs b/packages/base/src/Numeric/LinearAlgebra/Compat.hs new file mode 100644 index 0000000..7b43365 --- /dev/null +++ b/packages/base/src/Numeric/LinearAlgebra/Compat.hs | |||
@@ -0,0 +1,25 @@ | |||
1 | ----------------------------------------------------------------------------- | ||
2 | {- | | ||
3 | Module : Numeric.LinearAlgebra.Compat | ||
4 | Copyright : (c) Alberto Ruiz 2006-14 | ||
5 | License : BSD3 | ||
6 | Maintainer : Alberto Ruiz | ||
7 | Stability : provisional | ||
8 | |||
9 | -} | ||
10 | ----------------------------------------------------------------------------- | ||
11 | {-# OPTIONS_HADDOCK hide #-} | ||
12 | |||
13 | module Numeric.LinearAlgebra.Compat ( | ||
14 | module Numeric.Container, | ||
15 | module Numeric.LinearAlgebra.Algorithms, | ||
16 | meanCov | ||
17 | ) where | ||
18 | |||
19 | import Numeric.Container | ||
20 | import Numeric.LinearAlgebra.Algorithms | ||
21 | import Numeric.Matrix() | ||
22 | import Numeric.Vector() | ||
23 | import Numeric.LinearAlgebra.Util(meanCov) | ||
24 | |||
25 | |||
diff --git a/packages/base/src/Numeric/LinearAlgebra/Random.hs b/packages/base/src/Numeric/LinearAlgebra/Random.hs index 7afd658..b66988e 100644 --- a/packages/base/src/Numeric/LinearAlgebra/Random.hs +++ b/packages/base/src/Numeric/LinearAlgebra/Random.hs | |||
@@ -20,7 +20,8 @@ module Numeric.LinearAlgebra.Random ( | |||
20 | ) where | 20 | ) where |
21 | 21 | ||
22 | import Numeric.Vectorized | 22 | import Numeric.Vectorized |
23 | import Numeric.Container | 23 | import Data.Packed |
24 | import Data.Packed.Internal.Numeric | ||
24 | import Numeric.LinearAlgebra.Algorithms | 25 | import Numeric.LinearAlgebra.Algorithms |
25 | import System.Random(randomIO) | 26 | import System.Random(randomIO) |
26 | 27 | ||