diff options
author | Alberto Ruiz <aruiz@um.es> | 2014-05-16 14:13:49 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2014-05-16 14:13:49 +0200 |
commit | 51f4cc7b4b301142b8df73568ffaa448f9e6dd50 (patch) | |
tree | 7f9b9a26344a23a0d1e3fb6e4105fe968465cd2a /packages/hmatrix/src/Numeric/HMatrix | |
parent | 1838c4248679b7476bb8716a76171712dc3cd335 (diff) |
license changes, reexport modules
Diffstat (limited to 'packages/hmatrix/src/Numeric/HMatrix')
-rw-r--r-- | packages/hmatrix/src/Numeric/HMatrix/Data.hs | 70 | ||||
-rw-r--r-- | packages/hmatrix/src/Numeric/HMatrix/Devel.hs | 69 |
2 files changed, 0 insertions, 139 deletions
diff --git a/packages/hmatrix/src/Numeric/HMatrix/Data.hs b/packages/hmatrix/src/Numeric/HMatrix/Data.hs deleted file mode 100644 index 5d7ce4f..0000000 --- a/packages/hmatrix/src/Numeric/HMatrix/Data.hs +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | -------------------------------------------------------------------------------- | ||
2 | {- | | ||
3 | Module : Numeric.HMatrix.Data | ||
4 | Copyright : (c) Alberto Ruiz 2014 | ||
5 | License : GPL | ||
6 | |||
7 | Maintainer : Alberto Ruiz | ||
8 | Stability : provisional | ||
9 | |||
10 | Basic data processing. | ||
11 | |||
12 | -} | ||
13 | -------------------------------------------------------------------------------- | ||
14 | |||
15 | module Numeric.HMatrix.Data( | ||
16 | |||
17 | -- * Vector | ||
18 | -- | 1D arrays are storable vectors from the vector package. | ||
19 | |||
20 | Vector, (|>), dim, (@>), | ||
21 | |||
22 | -- * Matrix | ||
23 | Matrix, (><), size, (@@>), trans, ctrans, | ||
24 | |||
25 | -- * Construction | ||
26 | scalar, konst, build, assoc, accum, linspace, -- ones, zeros, | ||
27 | |||
28 | -- * Diagonal | ||
29 | ident, diag, diagl, diagRect, takeDiag, | ||
30 | |||
31 | -- * Data manipulation | ||
32 | fromList, toList, subVector, takesV, vjoin, | ||
33 | flatten, reshape, asRow, asColumn, row, col, | ||
34 | fromRows, toRows, fromColumns, toColumns, fromLists, toLists, fromArray2D, | ||
35 | takeRows, dropRows, takeColumns, dropColumns, subMatrix, (?), (¿), fliprl, flipud, | ||
36 | |||
37 | -- * Block matrix | ||
38 | fromBlocks, (¦), (——), diagBlock, repmat, toBlocks, toBlocksEvery, | ||
39 | |||
40 | -- * Mapping functions | ||
41 | conj, cmap, step, cond, | ||
42 | |||
43 | -- * Find elements | ||
44 | find, maxIndex, minIndex, maxElement, minElement, atIndex, | ||
45 | |||
46 | -- * IO | ||
47 | disp, dispf, disps, dispcf, latexFormat, format, | ||
48 | loadMatrix, saveMatrix, fromFile, fileDimensions, | ||
49 | readMatrix, | ||
50 | fscanfVector, fprintfVector, freadVector, fwriteVector, | ||
51 | |||
52 | -- * Conversion | ||
53 | Convert(..), | ||
54 | |||
55 | -- * Misc | ||
56 | arctan2, | ||
57 | rows, cols, | ||
58 | separable, | ||
59 | |||
60 | module Data.Complex | ||
61 | |||
62 | ) where | ||
63 | |||
64 | import Data.Packed.Vector | ||
65 | import Data.Packed.Matrix | ||
66 | import Numeric.Container | ||
67 | import Numeric.IO | ||
68 | import Numeric.LinearAlgebra.Util | ||
69 | import Data.Complex | ||
70 | |||
diff --git a/packages/hmatrix/src/Numeric/HMatrix/Devel.hs b/packages/hmatrix/src/Numeric/HMatrix/Devel.hs deleted file mode 100644 index b921f44..0000000 --- a/packages/hmatrix/src/Numeric/HMatrix/Devel.hs +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | -------------------------------------------------------------------------------- | ||
2 | {- | | ||
3 | Module : Numeric.HMatrix.Devel | ||
4 | Copyright : (c) Alberto Ruiz 2014 | ||
5 | License : GPL | ||
6 | |||
7 | Maintainer : Alberto Ruiz | ||
8 | Stability : provisional | ||
9 | |||
10 | The library can be easily extended using the tools in this module. | ||
11 | |||
12 | -} | ||
13 | -------------------------------------------------------------------------------- | ||
14 | |||
15 | module Numeric.HMatrix.Devel( | ||
16 | -- * FFI helpers | ||
17 | -- | Sample usage, to upload a perspective matrix to a shader. | ||
18 | -- | ||
19 | -- @ glUniformMatrix4fv 0 1 (fromIntegral gl_TRUE) \`appMatrix\` perspective 0.01 100 (pi\/2) (4\/3) | ||
20 | -- @ | ||
21 | module Data.Packed.Foreign, | ||
22 | |||
23 | -- * FFI tools | ||
24 | -- | Illustrative usage examples can be found | ||
25 | -- in the @examples\/devel@ folder included in the package. | ||
26 | module Data.Packed.Development, | ||
27 | |||
28 | -- * ST | ||
29 | -- | In-place manipulation inside the ST monad. | ||
30 | -- See examples\/inplace.hs in the distribution. | ||
31 | |||
32 | -- ** Mutable Vectors | ||
33 | STVector, newVector, thawVector, freezeVector, runSTVector, | ||
34 | readVector, writeVector, modifyVector, liftSTVector, | ||
35 | -- ** Mutable Matrices | ||
36 | STMatrix, newMatrix, thawMatrix, freezeMatrix, runSTMatrix, | ||
37 | readMatrix, writeMatrix, modifyMatrix, liftSTMatrix, | ||
38 | -- ** Unsafe functions | ||
39 | newUndefinedVector, | ||
40 | unsafeReadVector, unsafeWriteVector, | ||
41 | unsafeThawVector, unsafeFreezeVector, | ||
42 | newUndefinedMatrix, | ||
43 | unsafeReadMatrix, unsafeWriteMatrix, | ||
44 | unsafeThawMatrix, unsafeFreezeMatrix, | ||
45 | |||
46 | -- * Special maps and zips | ||
47 | mapVectorWithIndex, zipVector, zipVectorWith, unzipVector, unzipVectorWith, | ||
48 | mapVectorM, mapVectorM_, mapVectorWithIndexM, mapVectorWithIndexM_, | ||
49 | foldLoop, foldVector, foldVectorG, foldVectorWithIndex, | ||
50 | mapMatrixWithIndex, mapMatrixWithIndexM, mapMatrixWithIndexM_, | ||
51 | liftMatrix, liftMatrix2, liftMatrix2Auto, | ||
52 | |||
53 | -- * Auxiliary classes | ||
54 | Element, Container, Product, Contraction, LSDiv, | ||
55 | Complexable(), RealElement(), | ||
56 | RealOf, ComplexOf, SingleOf, DoubleOf, | ||
57 | IndexOf, | ||
58 | Field, Normed | ||
59 | ) where | ||
60 | |||
61 | import Data.Packed.Foreign | ||
62 | import Data.Packed.Development | ||
63 | import Data.Packed.ST | ||
64 | import Numeric.Container(Container,Contraction,LSDiv,Product, | ||
65 | Complexable(),RealElement(), | ||
66 | RealOf, ComplexOf, SingleOf, DoubleOf, IndexOf) | ||
67 | import Data.Packed | ||
68 | import Numeric.LinearAlgebra.Algorithms(Field,Normed) | ||
69 | |||