diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-09-10 09:13:20 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-09-10 09:13:20 +0000 |
commit | 89651db9f2577ba42dbbb91c85565a12f34d0fb2 (patch) | |
tree | cf7c5d023c2fe4bda50a4428c2171bd2f9ef83a2 /lib/LAPACK.hs | |
parent | 631a32fbdc0d61f647d3217da86bcb1d552e5e5a (diff) |
simplified
Diffstat (limited to 'lib/LAPACK.hs')
-rw-r--r-- | lib/LAPACK.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/LAPACK.hs b/lib/LAPACK.hs index ba72681..2b92a2a 100644 --- a/lib/LAPACK.hs +++ b/lib/LAPACK.hs | |||
@@ -26,7 +26,8 @@ import Data.Packed.Internal.Vector | |||
26 | import Data.Packed.Internal.Matrix | 26 | import Data.Packed.Internal.Matrix |
27 | import Data.Packed.Vector | 27 | import Data.Packed.Vector |
28 | import Data.Packed.Matrix | 28 | import Data.Packed.Matrix |
29 | import LinearAlgebra.Linear(scale) | 29 | --import LinearAlgebra.Linear(scale) |
30 | import GSL.Vector(vectorMapValR, FunCodeSV(Scale)) | ||
30 | import Complex | 31 | import Complex |
31 | import Foreign | 32 | import Foreign |
32 | 33 | ||
@@ -146,8 +147,7 @@ fixeig [r] [v] = [comp v] | |||
146 | fixeig ((r1:+i1):(r2:+i2):r) (v1:v2:vs) | 147 | fixeig ((r1:+i1):(r2:+i2):r) (v1:v2:vs) |
147 | | r1 == r2 && i1 == (-i2) = toComplex (v1,v2) : toComplex (v1,scale (-1) v2) : fixeig r vs | 148 | | r1 == r2 && i1 == (-i2) = toComplex (v1,v2) : toComplex (v1,scale (-1) v2) : fixeig r vs |
148 | | otherwise = comp v1 : fixeig ((r2:+i2):r) (v2:vs) | 149 | | otherwise = comp v1 : fixeig ((r2:+i2):r) (v2:vs) |
149 | 150 | where scale = vectorMapValR Scale | |
150 | -- scale r v = fromList [r] `outer` v | ||
151 | 151 | ||
152 | ----------------------------------------------------------------------------- | 152 | ----------------------------------------------------------------------------- |
153 | foreign import ccall "LAPACK/lapack-aux.h eig_l_S" dsyev :: TMVM | 153 | foreign import ccall "LAPACK/lapack-aux.h eig_l_S" dsyev :: TMVM |