diff options
author | Alberto Ruiz <aruiz@um.es> | 2015-06-05 16:43:45 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2015-06-05 16:43:45 +0200 |
commit | 11d7c37dc8b314338bc6382d80e74aaec2bb5620 (patch) | |
tree | 33d9d74c064ad2d9bbc4da0643404b85e41032c6 /packages | |
parent | 13856329ed09cd9f70f03363895545a6ca83374c (diff) |
move algorithms
Diffstat (limited to 'packages')
-rw-r--r-- | packages/base/src/Internal/Algorithms.hs (renamed from packages/base/src/Numeric/LinearAlgebra/Algorithms.hs) | 74 |
1 files changed, 11 insertions, 63 deletions
diff --git a/packages/base/src/Numeric/LinearAlgebra/Algorithms.hs b/packages/base/src/Internal/Algorithms.hs index 0e085c1..328af22 100644 --- a/packages/base/src/Numeric/LinearAlgebra/Algorithms.hs +++ b/packages/base/src/Internal/Algorithms.hs | |||
@@ -6,7 +6,7 @@ | |||
6 | 6 | ||
7 | ----------------------------------------------------------------------------- | 7 | ----------------------------------------------------------------------------- |
8 | {- | | 8 | {- | |
9 | Module : Numeric.LinearAlgebra.Algorithms | 9 | Module : Internal.Algorithms |
10 | Copyright : (c) Alberto Ruiz 2006-14 | 10 | Copyright : (c) Alberto Ruiz 2006-14 |
11 | License : BSD3 | 11 | License : BSD3 |
12 | Maintainer : Alberto Ruiz | 12 | Maintainer : Alberto Ruiz |
@@ -18,73 +18,21 @@ Specific functions for particular base types can also be explicitly | |||
18 | imported from "Numeric.LinearAlgebra.LAPACK". | 18 | imported from "Numeric.LinearAlgebra.LAPACK". |
19 | 19 | ||
20 | -} | 20 | -} |
21 | {-# OPTIONS_HADDOCK hide #-} | ||
22 | ----------------------------------------------------------------------------- | 21 | ----------------------------------------------------------------------------- |
23 | 22 | ||
24 | module Numeric.LinearAlgebra.Algorithms ( | 23 | module Internal.Algorithms where |
25 | -- * Supported types | 24 | |
26 | Field(), | 25 | import Internal.Vector |
27 | -- * Linear Systems | 26 | import Internal.Matrix |
28 | linearSolve, | 27 | import Internal.Element |
29 | mbLinearSolve, | 28 | import Internal.Conversion |
30 | luSolve, | 29 | import Internal.LAPACK as LAPACK |
31 | cholSolve, | ||
32 | linearSolveLS, | ||
33 | linearSolveSVD, | ||
34 | inv, pinv, pinvTol, | ||
35 | det, invlndet, | ||
36 | rank, rcond, | ||
37 | -- * Matrix factorizations | ||
38 | -- ** Singular value decomposition | ||
39 | svd, | ||
40 | fullSVD, | ||
41 | thinSVD, | ||
42 | compactSVD, | ||
43 | singularValues, | ||
44 | leftSV, rightSV, | ||
45 | -- ** Eigensystems | ||
46 | eig, eigSH, eigSH', | ||
47 | eigenvalues, eigenvaluesSH, eigenvaluesSH', | ||
48 | geigSH', | ||
49 | -- ** QR | ||
50 | qr, rq, qrRaw, qrgr, | ||
51 | -- ** Cholesky | ||
52 | chol, cholSH, mbCholSH, | ||
53 | -- ** Hessenberg | ||
54 | hess, | ||
55 | -- ** Schur | ||
56 | schur, | ||
57 | -- ** LU | ||
58 | lu, luPacked, | ||
59 | -- * Matrix functions | ||
60 | expm, | ||
61 | sqrtm, | ||
62 | matFunc, | ||
63 | -- * Nullspace | ||
64 | nullspacePrec, | ||
65 | nullVector, | ||
66 | nullspaceSVD, | ||
67 | orthSVD, | ||
68 | orth, | ||
69 | -- * Norms | ||
70 | Normed(..), NormType(..), | ||
71 | relativeError', relativeError, | ||
72 | -- * Misc | ||
73 | eps, peps, i, | ||
74 | -- * Util | ||
75 | haussholder, | ||
76 | unpackQR, unpackHess, | ||
77 | ranksv | ||
78 | ) where | ||
79 | |||
80 | |||
81 | import Data.Packed | ||
82 | import Numeric.LinearAlgebra.LAPACK as LAPACK | ||
83 | import Data.List(foldl1') | 30 | import Data.List(foldl1') |
84 | import Data.Array | 31 | import Data.Array |
85 | import Data.Packed.Internal.Numeric | 32 | import Internal.Numeric |
86 | import Data.Packed.Internal(shSize) | 33 | import Data.Vector.Storable(fromList) |
87 | 34 | ||
35 | -- :i mul | ||
88 | 36 | ||
89 | {- | Generic linear algebra functions for double precision real and complex matrices. | 37 | {- | Generic linear algebra functions for double precision real and complex matrices. |
90 | 38 | ||