diff options
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests.hs')
-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 | ||