diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-03-30 07:12:50 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-03-30 07:12:50 +0000 |
commit | 80f6ea4a8b1c5fb0bcd68f8d934364fd9c9b4780 (patch) | |
tree | 325d2bf75618cf56edc68170f3da99f423fdc53c /lib/Numeric/LinearAlgebra/Tests | |
parent | bc5cb922434daef2e4e1dd910479d2c4af37b44c (diff) |
flag -f-dd
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Tests/Properties.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests/Properties.hs b/lib/Numeric/LinearAlgebra/Tests/Properties.hs index 6d176fa..618094b 100644 --- a/lib/Numeric/LinearAlgebra/Tests/Properties.hs +++ b/lib/Numeric/LinearAlgebra/Tests/Properties.hs | |||
@@ -29,7 +29,7 @@ module Numeric.LinearAlgebra.Tests.Properties ( | |||
29 | pinvProp, | 29 | pinvProp, |
30 | detProp, | 30 | detProp, |
31 | nullspaceProp, | 31 | nullspaceProp, |
32 | svdProp1, svdProp1a, svdProp2, svdProp3, svdProp4, | 32 | svdProp1, svdProp1a, svdProp1b, svdProp2, svdProp3, svdProp4, |
33 | svdProp5a, svdProp5b, svdProp6a, svdProp6b, svdProp7, | 33 | svdProp5a, svdProp5b, svdProp6a, svdProp6b, svdProp7, |
34 | eigProp, eigSHProp, eigProp2, eigSHProp2, | 34 | eigProp, eigSHProp, eigProp2, eigSHProp2, |
35 | qrProp, rqProp, | 35 | qrProp, rqProp, |
@@ -137,6 +137,9 @@ svdProp1a svdfun m = m |~| u <> real d <> trans v && unitary u && unitary v wher | |||
137 | (u,s,v) = svdfun m | 137 | (u,s,v) = svdfun m |
138 | d = diagRect s (rows m) (cols m) | 138 | d = diagRect s (rows m) (cols m) |
139 | 139 | ||
140 | svdProp1b svdfun m = unitary u && unitary v where | ||
141 | (u,_,v) = svdfun m | ||
142 | |||
140 | -- thinSVD | 143 | -- thinSVD |
141 | svdProp2 thinSVDfun m = m |~| u <> diag (real s) <> trans v && orthonormal u && orthonormal v && dim s == min (rows m) (cols m) | 144 | svdProp2 thinSVDfun m = m |~| u <> diag (real s) <> trans v && orthonormal u && orthonormal v && dim s == min (rows m) (cols m) |
142 | where (u,s,v) = thinSVDfun m | 145 | where (u,s,v) = thinSVDfun m |