summaryrefslogtreecommitdiff
path: root/packages/base/src
diff options
context:
space:
mode:
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 25module Internal.Container where
26module Data.Packed.Numeric ( 26
27 -- * Basic functions 27import Internal.Tools
28 module Data.Packed, 28import Internal.Vector
29 Konst(..), Build(..), 29import Internal.Matrix
30 linspace, 30import Internal.Element
31 diag, ident, 31import 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
70import Data.Packed
71import Data.Packed.Internal(conformMs)
72import Data.Packed.Internal.Numeric
73import Data.Complex 32import Data.Complex
74import Numeric.LinearAlgebra.Algorithms(Field,linearSolveSVD) 33import Internal.Algorithms(Field,linearSolveSVD)
75import Data.Packed.IO 34import Data.Vector.Storable(fromList)
76import Numeric.LinearAlgebra.Random
77 35
78------------------------------------------------------------------ 36------------------------------------------------------------------
79 37