summaryrefslogtreecommitdiff
path: root/packages/base
diff options
context:
space:
mode:
Diffstat (limited to 'packages/base')
-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{- |
9Module : Numeric.LinearAlgebra.Algorithms 9Module : Internal.Algorithms
10Copyright : (c) Alberto Ruiz 2006-14 10Copyright : (c) Alberto Ruiz 2006-14
11License : BSD3 11License : BSD3
12Maintainer : Alberto Ruiz 12Maintainer : Alberto Ruiz
@@ -18,73 +18,21 @@ Specific functions for particular base types can also be explicitly
18imported from "Numeric.LinearAlgebra.LAPACK". 18imported from "Numeric.LinearAlgebra.LAPACK".
19 19
20-} 20-}
21{-# OPTIONS_HADDOCK hide #-}
22----------------------------------------------------------------------------- 21-----------------------------------------------------------------------------
23 22
24module Numeric.LinearAlgebra.Algorithms ( 23module Internal.Algorithms where
25-- * Supported types 24
26 Field(), 25import Internal.Vector
27-- * Linear Systems 26import Internal.Matrix
28 linearSolve, 27import Internal.Element
29 mbLinearSolve, 28import Internal.Conversion
30 luSolve, 29import 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
81import Data.Packed
82import Numeric.LinearAlgebra.LAPACK as LAPACK
83import Data.List(foldl1') 30import Data.List(foldl1')
84import Data.Array 31import Data.Array
85import Data.Packed.Internal.Numeric 32import Internal.Numeric
86import Data.Packed.Internal(shSize) 33import 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