diff options
author | Alberto Ruiz <aruiz@um.es> | 2011-03-23 11:25:21 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2011-03-23 11:25:21 +0000 |
commit | a5a7d08b73223a9bd6022aebfcd32dfd42f6633a (patch) | |
tree | 7f1912f2324a91287a7c74bacb2793420b9bf322 /lib/Numeric/LinearAlgebra/Tests.hs | |
parent | a325832d82be14b4ca7be2baa2a943f79629b194 (diff) |
findNaN
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests.hs')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Tests.hs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests.hs b/lib/Numeric/LinearAlgebra/Tests.hs index 5036e3f..e859450 100644 --- a/lib/Numeric/LinearAlgebra/Tests.hs +++ b/lib/Numeric/LinearAlgebra/Tests.hs | |||
@@ -17,7 +17,7 @@ Some tests. | |||
17 | module Numeric.LinearAlgebra.Tests( | 17 | module Numeric.LinearAlgebra.Tests( |
18 | -- module Numeric.LinearAlgebra.Tests.Instances, | 18 | -- module Numeric.LinearAlgebra.Tests.Instances, |
19 | -- module Numeric.LinearAlgebra.Tests.Properties, | 19 | -- module Numeric.LinearAlgebra.Tests.Properties, |
20 | qCheck, runTests, runBenchmarks | 20 | qCheck, runTests, runBenchmarks, findNaN |
21 | --, runBigTests | 21 | --, runBigTests |
22 | ) where | 22 | ) where |
23 | 23 | ||
@@ -512,6 +512,8 @@ runTests n = do | |||
512 | putStrLn "------ chol" | 512 | putStrLn "------ chol" |
513 | test (cholProp . rPosDef) | 513 | test (cholProp . rPosDef) |
514 | test (cholProp . cPosDef) | 514 | test (cholProp . cPosDef) |
515 | test (exactProp . rPosDef) | ||
516 | test (exactProp . cPosDef) | ||
515 | putStrLn "------ expm" | 517 | putStrLn "------ expm" |
516 | test (expmDiagProp . complex. rSqWC) | 518 | test (expmDiagProp . complex. rSqWC) |
517 | test (expmDiagProp . cSqWC) | 519 | test (expmDiagProp . cSqWC) |
@@ -594,6 +596,11 @@ makeUnitary v | realPart n > 1 = v / scalar n | |||
594 | -- runBigTests :: IO () | 596 | -- runBigTests :: IO () |
595 | -- runBigTests = undefined | 597 | -- runBigTests = undefined |
596 | 598 | ||
599 | -- testcase for nonempty fpu stack | ||
600 | findNaN :: Int -> Bool | ||
601 | findNaN n = all (bugProp . eye) (take n $ cycle [1..20]) | ||
602 | where eye m = ident m :: Matrix ( Double) | ||
603 | |||
597 | -------------------------------------------------------------------------------- | 604 | -------------------------------------------------------------------------------- |
598 | 605 | ||
599 | -- | Performance measurements. | 606 | -- | Performance measurements. |