diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-07-08 15:29:58 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-07-08 15:29:58 +0000 |
commit | b8699c4f1acff1e3f31cdbac1a7a4a8864b1eeba (patch) | |
tree | 19a6cedc19b33f57ab4ff24d59b8cb71fc248541 /lib/Numeric | |
parent | 9eba8eaa9bd25377f10fd5a62cc6f8771824a0cf (diff) |
minor fix and thanks
Diffstat (limited to 'lib/Numeric')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Tests.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests.hs b/lib/Numeric/LinearAlgebra/Tests.hs index 65b0e4c..24b5bb5 100644 --- a/lib/Numeric/LinearAlgebra/Tests.hs +++ b/lib/Numeric/LinearAlgebra/Tests.hs | |||
@@ -356,6 +356,7 @@ makeUnitary v | realPart n > 1 = v / scalar n | |||
356 | -- | Performance measurements. | 356 | -- | Performance measurements. |
357 | runBenchmarks :: IO () | 357 | runBenchmarks :: IO () |
358 | runBenchmarks = do | 358 | runBenchmarks = do |
359 | --cholBench | ||
359 | solveBench | 360 | solveBench |
360 | subBench | 361 | subBench |
361 | multBench | 362 | multBench |
@@ -455,3 +456,18 @@ solveBench = do | |||
455 | solveBenchN 500 | 456 | solveBenchN 500 |
456 | solveBenchN 1000 | 457 | solveBenchN 1000 |
457 | -- solveBenchN 1500 | 458 | -- solveBenchN 1500 |
459 | |||
460 | -------------------------------- | ||
461 | |||
462 | cholBenchN n = do | ||
463 | let x = uniformSample 777 (2*n) (replicate n (-1,1)) | ||
464 | a = trans x <> x | ||
465 | a `seq` putStrLn "" | ||
466 | time ("chol " ++ show n) (chol a) | ||
467 | |||
468 | cholBench = do | ||
469 | cholBenchN 1200 | ||
470 | cholBenchN 600 | ||
471 | cholBenchN 300 | ||
472 | -- cholBenchN 150 | ||
473 | -- cholBenchN 50 | ||