summaryrefslogtreecommitdiff
path: root/lib/Numeric/LinearAlgebra/Tests.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests.hs')
-rw-r--r--lib/Numeric/LinearAlgebra/Tests.hs10
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
274conjuTest 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)