diff options
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests.hs')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Tests.hs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests.hs b/lib/Numeric/LinearAlgebra/Tests.hs index 7ebd1f2..9617a7a 100644 --- a/lib/Numeric/LinearAlgebra/Tests.hs +++ b/lib/Numeric/LinearAlgebra/Tests.hs | |||
@@ -119,7 +119,6 @@ rotTest = fun (10^5) :~12~: rot 5E4 | |||
119 | where fun n = foldl1' (<>) (map rot angles) | 119 | where fun n = foldl1' (<>) (map rot angles) |
120 | where angles = toList $ linspace n (0,1) | 120 | where angles = toList $ linspace n (0,1) |
121 | 121 | ||
122 | |||
123 | -- | All tests must pass with a maximum dimension of about 20 | 122 | -- | All tests must pass with a maximum dimension of about 20 |
124 | -- (some tests may fail with bigger sizes due to precision loss). | 123 | -- (some tests may fail with bigger sizes due to precision loss). |
125 | runTests :: Int -- ^ maximum dimension | 124 | runTests :: Int -- ^ maximum dimension |
@@ -135,10 +134,13 @@ runTests n = do | |||
135 | putStrLn "------ lu" | 134 | putStrLn "------ lu" |
136 | test (luProp . rM) | 135 | test (luProp . rM) |
137 | test (luProp . cM) | 136 | test (luProp . cM) |
138 | putStrLn "------ inv" | 137 | putStrLn "------ inv (linearSolve)" |
139 | test (invProp . rSqWC) | 138 | test (invProp . rSqWC) |
140 | test (invProp . cSqWC) | 139 | test (invProp . cSqWC) |
141 | putStrLn "------ pinv" | 140 | putStrLn "------ luSolve" |
141 | test (linearSolveProp (luSolve.luPacked) . rSqWC) | ||
142 | test (linearSolveProp (luSolve.luPacked) . cSqWC) | ||
143 | putStrLn "------ pinv (linearSolveSVD)" | ||
142 | test (pinvProp . rM) | 144 | test (pinvProp . rM) |
143 | if os == "mingw32" | 145 | if os == "mingw32" |
144 | then putStrLn "complex pinvTest skipped in this OS" | 146 | then putStrLn "complex pinvTest skipped in this OS" |