summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2015-04-10 09:57:57 +0200
committerAlberto Ruiz <aruiz@um.es>2015-04-10 09:57:57 +0200
commit4dc1ef825642ef4ecf86095c08b933cffe59f855 (patch)
treef78adf4e0681a3a1f4bb45f4745fcd725f301b69
parent8a0c34ed00dd734b9dccd6c7582a370d39ceb89a (diff)
added module HMatrix.Util
-rw-r--r--packages/base/hmatrix.cabal3
-rw-r--r--packages/base/src/Numeric/LinearAlgebra/HMatrix/Util.hs27
2 files changed, 29 insertions, 1 deletions
diff --git a/packages/base/hmatrix.cabal b/packages/base/hmatrix.cabal
index 350023f..01699f2 100644
--- a/packages/base/hmatrix.cabal
+++ b/packages/base/hmatrix.cabal
@@ -55,7 +55,7 @@ library
55 Numeric.LinearAlgebra.Data 55 Numeric.LinearAlgebra.Data
56 Numeric.LinearAlgebra.HMatrix 56 Numeric.LinearAlgebra.HMatrix
57 Numeric.LinearAlgebra.Static 57 Numeric.LinearAlgebra.Static
58 Numeric.LinearAlgebra.Util 58 Numeric.LinearAlgebra.HMatrix.Util
59 59
60 other-modules: Data.Packed, 60 other-modules: Data.Packed,
61 Data.Packed.Vector 61 Data.Packed.Vector
@@ -85,6 +85,7 @@ library
85 Numeric.Conversion 85 Numeric.Conversion
86 Numeric.Sparse 86 Numeric.Sparse
87 Numeric.LinearAlgebra.Static.Internal 87 Numeric.LinearAlgebra.Static.Internal
88 Numeric.LinearAlgebra.Util
88 89
89 C-sources: src/C/lapack-aux.c 90 C-sources: src/C/lapack-aux.c
90 src/C/vector-aux.c 91 src/C/vector-aux.c
diff --git a/packages/base/src/Numeric/LinearAlgebra/HMatrix/Util.hs b/packages/base/src/Numeric/LinearAlgebra/HMatrix/Util.hs
new file mode 100644
index 0000000..078a748
--- /dev/null
+++ b/packages/base/src/Numeric/LinearAlgebra/HMatrix/Util.hs
@@ -0,0 +1,27 @@
1-----------------------------------------------------------------------------
2{- |
3Module : Numeric.LinearAlgebra.HMatrix.Util
4Copyright : (c) Alberto Ruiz 2015
5License : BSD3
6Maintainer : Alberto Ruiz
7Stability : provisional
8
9-}
10-----------------------------------------------------------------------------
11
12module Numeric.LinearAlgebra.HMatrix.Util(
13 -- * Tools for the Kronecker product
14 --
15 -- | (see A. Fusiello, A matter of notation: Several uses of the Kronecker product in
16 -- 3d computer vision, Pattern Recognition Letters 28 (15) (2007) 2127-2132)
17
18 --
19 -- | @`vec` (a \<> x \<> b) == ('trans' b ` 'kronecker' ` a) \<> 'vec' x@
20 vec,
21 vech,
22 dup,
23 vtrans
24) where
25
26import Numeric.LinearAlgebra.Util
27