diff options
Diffstat (limited to 'packages/tests/src/Numeric/LinearAlgebra/Tests.hs')
-rw-r--r-- | packages/tests/src/Numeric/LinearAlgebra/Tests.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/tests/src/Numeric/LinearAlgebra/Tests.hs b/packages/tests/src/Numeric/LinearAlgebra/Tests.hs index d9cc3b6..043ebf3 100644 --- a/packages/tests/src/Numeric/LinearAlgebra/Tests.hs +++ b/packages/tests/src/Numeric/LinearAlgebra/Tests.hs | |||
@@ -26,6 +26,7 @@ module Numeric.LinearAlgebra.Tests( | |||
26 | utest, | 26 | utest, |
27 | runTests, | 27 | runTests, |
28 | runBenchmarks | 28 | runBenchmarks |
29 | , binaryTests | ||
29 | -- , findNaN | 30 | -- , findNaN |
30 | --, runBigTests | 31 | --, runBigTests |
31 | ) where | 32 | ) where |
@@ -743,6 +744,15 @@ makeUnitary v | realPart n > 1 = v / scalar n | |||
743 | | otherwise = v | 744 | | otherwise = v |
744 | where n = sqrt (v `dot` v) | 745 | where n = sqrt (v `dot` v) |
745 | 746 | ||
747 | binaryTests :: IO () | ||
748 | binaryTests = do | ||
749 | let test :: forall t . T.Testable t => t -> IO () | ||
750 | test = qCheck 100 | ||
751 | test vectorBinaryRoundtripProp | ||
752 | test staticVectorBinaryRoundtripProp | ||
753 | qCheck 30 matrixBinaryRoundtripProp | ||
754 | qCheck 30 staticMatrixBinaryRoundtripProp | ||
755 | |||
746 | -- -- | Some additional tests on big matrices. They take a few minutes. | 756 | -- -- | Some additional tests on big matrices. They take a few minutes. |
747 | -- runBigTests :: IO () | 757 | -- runBigTests :: IO () |
748 | -- runBigTests = undefined | 758 | -- runBigTests = undefined |