diff options
Diffstat (limited to 'packages/hmatrix/src/Numeric/HMatrix.hs')
-rw-r--r-- | packages/hmatrix/src/Numeric/HMatrix.hs | 139 |
1 files changed, 0 insertions, 139 deletions
diff --git a/packages/hmatrix/src/Numeric/HMatrix.hs b/packages/hmatrix/src/Numeric/HMatrix.hs deleted file mode 100644 index fcd3e02..0000000 --- a/packages/hmatrix/src/Numeric/HMatrix.hs +++ /dev/null | |||
@@ -1,139 +0,0 @@ | |||
1 | ----------------------------------------------------------------------------- | ||
2 | {- | | ||
3 | Module : Numeric.HMatrix | ||
4 | Copyright : (c) Alberto Ruiz 2006-14 | ||
5 | License : GPL | ||
6 | |||
7 | Maintainer : Alberto Ruiz | ||
8 | Stability : provisional | ||
9 | |||
10 | This module reexports the most common Linear Algebra functions. | ||
11 | |||
12 | -} | ||
13 | ----------------------------------------------------------------------------- | ||
14 | module Numeric.HMatrix ( | ||
15 | |||
16 | -- * Basic types and data processing | ||
17 | module Numeric.HMatrix.Data, | ||
18 | |||
19 | -- | The standard numeric classes are defined elementwise: | ||
20 | -- | ||
21 | -- >>> fromList [1,2,3] * fromList [3,0,-2 :: Double] | ||
22 | -- fromList [3.0,0.0,-6.0] | ||
23 | -- | ||
24 | -- >>> (3><3) [1..9] * ident 3 :: Matrix Double | ||
25 | -- (3><3) | ||
26 | -- [ 1.0, 0.0, 0.0 | ||
27 | -- , 0.0, 5.0, 0.0 | ||
28 | -- , 0.0, 0.0, 9.0 ] | ||
29 | -- | ||
30 | -- In arithmetic operations single-element vectors and matrices | ||
31 | -- (created from numeric literals or using 'scalar') automatically | ||
32 | -- expand to match the dimensions of the other operand: | ||
33 | -- | ||
34 | -- >>> 5 + 2*ident 3 :: Matrix Double | ||
35 | -- (3><3) | ||
36 | -- [ 7.0, 5.0, 5.0 | ||
37 | -- , 5.0, 7.0, 5.0 | ||
38 | -- , 5.0, 5.0, 7.0 ] | ||
39 | -- | ||
40 | |||
41 | -- * Products | ||
42 | (<.>), | ||
43 | |||
44 | -- | The matrix product is also implemented in the "Data.Monoid" instance for Matrix, where | ||
45 | -- single-element matrices (created from numeric literals or using 'scalar') | ||
46 | -- are used for scaling. | ||
47 | -- | ||
48 | -- >>> let m = (2><3)[1..] :: Matrix Double | ||
49 | -- >>> m <> 2 <> diagl[0.5,1,0] | ||
50 | -- (2><3) | ||
51 | -- [ 1.0, 4.0, 0.0 | ||
52 | -- , 4.0, 10.0, 0.0 ] | ||
53 | -- | ||
54 | -- mconcat uses 'optimiseMult' to get the optimal association order. | ||
55 | |||
56 | (◇), | ||
57 | outer, kronecker, cross, | ||
58 | scale, | ||
59 | sumElements, prodElements, absSum, | ||
60 | |||
61 | -- * Linear Systems | ||
62 | (<\>), | ||
63 | linearSolve, | ||
64 | linearSolveLS, | ||
65 | linearSolveSVD, | ||
66 | luSolve, | ||
67 | cholSolve, | ||
68 | |||
69 | -- * Inverse and pseudoinverse | ||
70 | inv, pinv, pinvTol, | ||
71 | |||
72 | -- * Determinant and rank | ||
73 | rcond, rank, ranksv, | ||
74 | det, invlndet, | ||
75 | |||
76 | -- * Singular value decomposition | ||
77 | svd, | ||
78 | fullSVD, | ||
79 | thinSVD, | ||
80 | compactSVD, | ||
81 | singularValues, | ||
82 | leftSV, rightSV, | ||
83 | |||
84 | -- * Eigensystems | ||
85 | eig, eigSH, eigSH', | ||
86 | eigenvalues, eigenvaluesSH, eigenvaluesSH', | ||
87 | geigSH', | ||
88 | |||
89 | -- * QR | ||
90 | qr, rq, qrRaw, qrgr, | ||
91 | |||
92 | -- * Cholesky | ||
93 | chol, cholSH, mbCholSH, | ||
94 | |||
95 | -- * Hessenberg | ||
96 | hess, | ||
97 | |||
98 | -- * Schur | ||
99 | schur, | ||
100 | |||
101 | -- * LU | ||
102 | lu, luPacked, | ||
103 | |||
104 | -- * Matrix functions | ||
105 | expm, | ||
106 | sqrtm, | ||
107 | matFunc, | ||
108 | |||
109 | -- * Nullspace | ||
110 | nullspacePrec, | ||
111 | nullVector, | ||
112 | nullspaceSVD, | ||
113 | null1, null1sym, | ||
114 | |||
115 | orth, | ||
116 | |||
117 | -- * Norms | ||
118 | norm1, norm2, normInf, pnorm, NormType(..), | ||
119 | |||
120 | -- * Correlation and Convolution | ||
121 | corr, conv, corrMin, corr2, conv2, | ||
122 | |||
123 | -- * Random arrays | ||
124 | rand, randn, RandDist(..), randomVector, gaussianSample, uniformSample, | ||
125 | |||
126 | -- * Misc | ||
127 | meanCov, peps, relativeError, haussholder, optimiseMult, udot | ||
128 | ) where | ||
129 | |||
130 | import Numeric.HMatrix.Data | ||
131 | |||
132 | --import Numeric.Matrix() | ||
133 | --import Numeric.Vector() | ||
134 | import Numeric.Container | ||
135 | import Numeric.LinearAlgebra.Algorithms | ||
136 | import Numeric.LinearAlgebra.Util | ||
137 | import Numeric.Random | ||
138 | |||
139 | |||