diff options
Diffstat (limited to 'packages/base/src')
-rw-r--r-- | packages/base/src/Internal/Container.hs (renamed from packages/base/src/Data/Packed/Numeric.hs) | 64 |
1 files changed, 11 insertions, 53 deletions
diff --git a/packages/base/src/Data/Packed/Numeric.hs b/packages/base/src/Internal/Container.hs index 7d77b19..216e31e 100644 --- a/packages/base/src/Data/Packed/Numeric.hs +++ b/packages/base/src/Internal/Container.hs | |||
@@ -6,7 +6,7 @@ | |||
6 | 6 | ||
7 | ----------------------------------------------------------------------------- | 7 | ----------------------------------------------------------------------------- |
8 | -- | | 8 | -- | |
9 | -- Module : Data.Packed.Numeric | 9 | -- Module : Internal.Container |
10 | -- Copyright : (c) Alberto Ruiz 2010-14 | 10 | -- Copyright : (c) Alberto Ruiz 2010-14 |
11 | -- License : BSD3 | 11 | -- License : BSD3 |
12 | -- Maintainer : Alberto Ruiz | 12 | -- Maintainer : Alberto Ruiz |
@@ -21,59 +21,17 @@ | |||
21 | -- numeric Haskell classes provided by "Numeric.LinearAlgebra". | 21 | -- numeric Haskell classes provided by "Numeric.LinearAlgebra". |
22 | -- | 22 | -- |
23 | ----------------------------------------------------------------------------- | 23 | ----------------------------------------------------------------------------- |
24 | {-# OPTIONS_HADDOCK hide #-} | 24 | |
25 | 25 | module Internal.Container where | |
26 | module Data.Packed.Numeric ( | 26 | |
27 | -- * Basic functions | 27 | import Internal.Tools |
28 | module Data.Packed, | 28 | import Internal.Vector |
29 | Konst(..), Build(..), | 29 | import Internal.Matrix |
30 | linspace, | 30 | import Internal.Element |
31 | diag, ident, | 31 | import Internal.Numeric |
32 | ctrans, | ||
33 | -- * Generic operations | ||
34 | Container(..), Numeric, Extractor(..), (??), range, idxs, I, remap, | ||
35 | -- add, mul, sub, divide, equal, scaleRecip, addConstant, | ||
36 | scalar, conj, scale, arctan2, cmap, cmod, | ||
37 | atIndex, minIndex, maxIndex, minElement, maxElement, | ||
38 | sumElements, prodElements, | ||
39 | step, cond, find, assoc, accum, ccompare, cselect, | ||
40 | Transposable(..), Linear(..), | ||
41 | -- * Matrix product | ||
42 | Product(..), udot, dot, (<ยท>), (#>), (<#), app, | ||
43 | Mul(..), | ||
44 | (<.>), | ||
45 | optimiseMult, | ||
46 | mXm,mXv,vXm,LSDiv,(<\>), | ||
47 | outer, kronecker, | ||
48 | -- * Random numbers | ||
49 | RandDist(..), | ||
50 | randomVector, | ||
51 | gaussianSample, | ||
52 | uniformSample, | ||
53 | meanCov, | ||
54 | -- * sorting | ||
55 | sortVector, sortIndex, | ||
56 | -- * Element conversion | ||
57 | Convert(..), | ||
58 | Complexable(), | ||
59 | RealElement(), | ||
60 | RealOf, ComplexOf, SingleOf, DoubleOf, | ||
61 | roundVector,fromInt,toInt, | ||
62 | IndexOf, | ||
63 | module Data.Complex, | ||
64 | -- * IO | ||
65 | module Data.Packed.IO, | ||
66 | -- * Misc | ||
67 | Testable(..) | ||
68 | ) where | ||
69 | |||
70 | import Data.Packed | ||
71 | import Data.Packed.Internal(conformMs) | ||
72 | import Data.Packed.Internal.Numeric | ||
73 | import Data.Complex | 32 | import Data.Complex |
74 | import Numeric.LinearAlgebra.Algorithms(Field,linearSolveSVD) | 33 | import Internal.Algorithms(Field,linearSolveSVD) |
75 | import Data.Packed.IO | 34 | import Data.Vector.Storable(fromList) |
76 | import Numeric.LinearAlgebra.Random | ||
77 | 35 | ||
78 | ------------------------------------------------------------------ | 36 | ------------------------------------------------------------------ |
79 | 37 | ||