diff options
Diffstat (limited to 'packages/base/src/Numeric/LinearAlgebra.hs')
-rw-r--r-- | packages/base/src/Numeric/LinearAlgebra.hs | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/packages/base/src/Numeric/LinearAlgebra.hs b/packages/base/src/Numeric/LinearAlgebra.hs index 549ebd0..9e9151e 100644 --- a/packages/base/src/Numeric/LinearAlgebra.hs +++ b/packages/base/src/Numeric/LinearAlgebra.hs | |||
@@ -13,7 +13,9 @@ module Numeric.LinearAlgebra ( | |||
13 | -- * Basic types and data processing | 13 | -- * Basic types and data processing |
14 | module Numeric.LinearAlgebra.Data, | 14 | module Numeric.LinearAlgebra.Data, |
15 | 15 | ||
16 | -- | The standard numeric classes are defined elementwise: | 16 | -- * Arithmetic and numeric classes |
17 | -- | | ||
18 | -- The standard numeric classes are defined elementwise: | ||
17 | -- | 19 | -- |
18 | -- >>> fromList [1,2,3] * fromList [3,0,-2 :: Double] | 20 | -- >>> fromList [1,2,3] * fromList [3,0,-2 :: Double] |
19 | -- fromList [3.0,0.0,-6.0] | 21 | -- fromList [3.0,0.0,-6.0] |
@@ -38,7 +40,7 @@ module Numeric.LinearAlgebra ( | |||
38 | -- * Matrix product | 40 | -- * Matrix product |
39 | (<.>), | 41 | (<.>), |
40 | 42 | ||
41 | -- | The overloaded multiplication operator may need type annotations to remove | 43 | -- | The overloaded multiplication operators may need type annotations to remove |
42 | -- ambiguity. In those cases we can also use the specific functions 'mXm', 'mXv', and 'dot'. | 44 | -- ambiguity. In those cases we can also use the specific functions 'mXm', 'mXv', and 'dot'. |
43 | -- | 45 | -- |
44 | -- The matrix x matrix product is also implemented in the "Data.Monoid" instance, where | 46 | -- The matrix x matrix product is also implemented in the "Data.Monoid" instance, where |
@@ -66,6 +68,7 @@ module Numeric.LinearAlgebra ( | |||
66 | linearSolveSVD, | 68 | linearSolveSVD, |
67 | luSolve, | 69 | luSolve, |
68 | cholSolve, | 70 | cholSolve, |
71 | cgSolve, | ||
69 | 72 | ||
70 | -- * Inverse and pseudoinverse | 73 | -- * Inverse and pseudoinverse |
71 | inv, pinv, pinvTol, | 74 | inv, pinv, pinvTol, |
@@ -126,7 +129,15 @@ module Numeric.LinearAlgebra ( | |||
126 | RandDist(..), randomVector, rand, randn, gaussianSample, uniformSample, | 129 | RandDist(..), randomVector, rand, randn, gaussianSample, uniformSample, |
127 | 130 | ||
128 | -- * Misc | 131 | -- * Misc |
129 | meanCov, peps, relativeError, haussholder, optimiseMult, dot, udot, mXm, mXv, smXv, (<>), (◇), Seed, checkT | 132 | meanCov, peps, relativeError, haussholder, optimiseMult, dot, udot, mXm, mXv, smXv, (<>), (◇), Seed, checkT, |
133 | -- * Auxiliary classes | ||
134 | Element, Container, Product, Contraction, LSDiv, | ||
135 | Complexable(), RealElement(), | ||
136 | RealOf, ComplexOf, SingleOf, DoubleOf, | ||
137 | IndexOf, | ||
138 | Field, Normed, | ||
139 | CGMat, Transposable | ||
140 | |||
130 | ) where | 141 | ) where |
131 | 142 | ||
132 | import Numeric.LinearAlgebra.Data | 143 | import Numeric.LinearAlgebra.Data |
@@ -137,5 +148,7 @@ import Numeric.Container | |||
137 | import Numeric.LinearAlgebra.Algorithms | 148 | import Numeric.LinearAlgebra.Algorithms |
138 | import Numeric.LinearAlgebra.Util | 149 | import Numeric.LinearAlgebra.Util |
139 | import Numeric.LinearAlgebra.Random | 150 | import Numeric.LinearAlgebra.Random |
140 | import Data.Packed.Internal.Sparse(smXv) | 151 | import Numeric.Sparse(smXv) |
152 | import Numeric.LinearAlgebra.Util.CG(cgSolve) | ||
153 | import Numeric.LinearAlgebra.Util.CG(CGMat) | ||
141 | 154 | ||