diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-09-11 09:10:24 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-09-11 09:10:24 +0000 |
commit | ec9965371be5b37234684ba392f55a1a1e24f053 (patch) | |
tree | fae00b984fc8499e19952200f1b3f9f7ee5f2d20 /lib/Numeric/LinearAlgebra/Tests.hs | |
parent | ae6d18808cef554979b99cc55f46d5324518df01 (diff) |
optimized conjugate
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests.hs')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Tests.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests.hs b/lib/Numeric/LinearAlgebra/Tests.hs index 0b4e3bf..426700b 100644 --- a/lib/Numeric/LinearAlgebra/Tests.hs +++ b/lib/Numeric/LinearAlgebra/Tests.hs | |||
@@ -271,6 +271,10 @@ normsMTest = TestList [ | |||
271 | 271 | ||
272 | --------------------------------------------------------------------- | 272 | --------------------------------------------------------------------- |
273 | 273 | ||
274 | conjuTest m = mapVector conjugate (flatten (trans m)) == flatten (ctrans m) | ||
275 | |||
276 | --------------------------------------------------------------------- | ||
277 | |||
274 | 278 | ||
275 | -- | All tests must pass with a maximum dimension of about 20 | 279 | -- | All tests must pass with a maximum dimension of about 20 |
276 | -- (some tests may fail with bigger sizes due to precision loss). | 280 | -- (some tests may fail with bigger sizes due to precision loss). |
@@ -292,6 +296,9 @@ runTests n = do | |||
292 | putStrLn "------ sub-trans" | 296 | putStrLn "------ sub-trans" |
293 | test (subProp . rM) | 297 | test (subProp . rM) |
294 | test (subProp . cM) | 298 | test (subProp . cM) |
299 | putStrLn "------ ctrans" | ||
300 | test (conjuTest . cM) | ||
301 | test (conjuTest . zM) | ||
295 | putStrLn "------ lu" | 302 | putStrLn "------ lu" |
296 | test (luProp . rM) | 303 | test (luProp . rM) |
297 | test (luProp . cM) | 304 | test (luProp . cM) |
@@ -362,6 +369,9 @@ runTests n = do | |||
362 | test (qrProp . cM) | 369 | test (qrProp . cM) |
363 | test (rqProp . rM) | 370 | test (rqProp . rM) |
364 | test (rqProp . cM) | 371 | test (rqProp . cM) |
372 | test (rqProp1 . cM) | ||
373 | test (rqProp2 . cM) | ||
374 | test (rqProp3 . cM) | ||
365 | putStrLn "------ hess" | 375 | putStrLn "------ hess" |
366 | test (hessProp . rSq) | 376 | test (hessProp . rSq) |
367 | test (hessProp . cSq) | 377 | test (hessProp . cSq) |