summaryrefslogtreecommitdiff
path: root/lib/Numeric
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2010-07-08 15:29:58 +0000
committerAlberto Ruiz <aruiz@um.es>2010-07-08 15:29:58 +0000
commitb8699c4f1acff1e3f31cdbac1a7a4a8864b1eeba (patch)
tree19a6cedc19b33f57ab4ff24d59b8cb71fc248541 /lib/Numeric
parent9eba8eaa9bd25377f10fd5a62cc6f8771824a0cf (diff)
minor fix and thanks
Diffstat (limited to 'lib/Numeric')
-rw-r--r--lib/Numeric/LinearAlgebra/Tests.hs16
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.
357runBenchmarks :: IO () 357runBenchmarks :: IO ()
358runBenchmarks = do 358runBenchmarks = 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
462cholBenchN 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
468cholBench = do
469 cholBenchN 1200
470 cholBenchN 600
471 cholBenchN 300
472-- cholBenchN 150
473-- cholBenchN 50