diff options
Diffstat (limited to 'packages/base/src/Numeric/LinearAlgebra.hs')
-rw-r--r-- | packages/base/src/Numeric/LinearAlgebra.hs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/base/src/Numeric/LinearAlgebra.hs b/packages/base/src/Numeric/LinearAlgebra.hs index c97f415..0f8efa4 100644 --- a/packages/base/src/Numeric/LinearAlgebra.hs +++ b/packages/base/src/Numeric/LinearAlgebra.hs | |||
@@ -1,3 +1,5 @@ | |||
1 | {-# LANGUAGE FlexibleContexts #-} | ||
2 | |||
1 | ----------------------------------------------------------------------------- | 3 | ----------------------------------------------------------------------------- |
2 | {- | | 4 | {- | |
3 | Module : Numeric.LinearAlgebra | 5 | Module : Numeric.LinearAlgebra |
@@ -119,7 +121,7 @@ module Numeric.LinearAlgebra ( | |||
119 | schur, | 121 | schur, |
120 | 122 | ||
121 | -- * LU | 123 | -- * LU |
122 | lu, luPacked, | 124 | lu, luPacked, luFact, luPacked', |
123 | 125 | ||
124 | -- * Matrix functions | 126 | -- * Matrix functions |
125 | expm, | 127 | expm, |
@@ -134,7 +136,7 @@ module Numeric.LinearAlgebra ( | |||
134 | Seed, RandDist(..), randomVector, rand, randn, gaussianSample, uniformSample, | 136 | Seed, RandDist(..), randomVector, rand, randn, gaussianSample, uniformSample, |
135 | 137 | ||
136 | -- * Misc | 138 | -- * Misc |
137 | meanCov, rowOuters, pairwiseD2, unitary, peps, relativeError, haussholder, optimiseMult, udot, nullspaceSVD, orthSVD, ranksv, gaussElim, gaussElim_1, gaussElim_2, | 139 | meanCov, rowOuters, pairwiseD2, unitary, peps, relativeError, haussholder, optimiseMult, udot, nullspaceSVD, orthSVD, ranksv, gaussElim, luST, magnit, |
138 | ℝ,ℂ,iC, | 140 | ℝ,ℂ,iC, |
139 | -- * Auxiliary classes | 141 | -- * Auxiliary classes |
140 | Element, Container, Product, Numeric, LSDiv, | 142 | Element, Container, Product, Numeric, LSDiv, |
@@ -142,7 +144,6 @@ module Numeric.LinearAlgebra ( | |||
142 | RealOf, ComplexOf, SingleOf, DoubleOf, | 144 | RealOf, ComplexOf, SingleOf, DoubleOf, |
143 | IndexOf, | 145 | IndexOf, |
144 | Field, | 146 | Field, |
145 | -- Normed, | ||
146 | Transposable, | 147 | Transposable, |
147 | CGState(..), | 148 | CGState(..), |
148 | Testable(..) | 149 | Testable(..) |
@@ -155,13 +156,14 @@ import Numeric.Vector() | |||
155 | import Internal.Matrix | 156 | import Internal.Matrix |
156 | import Internal.Container hiding ((<>)) | 157 | import Internal.Container hiding ((<>)) |
157 | import Internal.Numeric hiding (mul) | 158 | import Internal.Numeric hiding (mul) |
158 | import Internal.Algorithms hiding (linearSolve,Normed,orth) | 159 | import Internal.Algorithms hiding (linearSolve,Normed,orth,luPacked') |
159 | import qualified Internal.Algorithms as A | 160 | import qualified Internal.Algorithms as A |
160 | import Internal.Util | 161 | import Internal.Util |
161 | import Internal.Random | 162 | import Internal.Random |
162 | import Internal.Sparse((!#>)) | 163 | import Internal.Sparse((!#>)) |
163 | import Internal.CG | 164 | import Internal.CG |
164 | import Internal.Conversion | 165 | import Internal.Conversion |
166 | import Internal.ST(mutable) | ||
165 | 167 | ||
166 | {- | infix synonym of 'mul' | 168 | {- | infix synonym of 'mul' |
167 | 169 | ||
@@ -236,3 +238,5 @@ nullspace m = nullspaceSVD (Left (1*eps)) m (rightSV m) | |||
236 | -- | return an orthonormal basis of the range space of a matrix. See also 'orthSVD'. | 238 | -- | return an orthonormal basis of the range space of a matrix. See also 'orthSVD'. |
237 | orth m = orthSVD (Left (1*eps)) m (leftSV m) | 239 | orth m = orthSVD (Left (1*eps)) m (leftSV m) |
238 | 240 | ||
241 | luPacked' x = mutable (luST (magnit 0)) x | ||
242 | |||