summaryrefslogtreecommitdiff
path: root/lib/Numeric/LinearAlgebra/Tests.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2010-12-30 18:07:39 +0000
committerAlberto Ruiz <aruiz@um.es>2010-12-30 18:07:39 +0000
commite503945c666dc28f1a806ba1a2deaa587a836200 (patch)
treef3971d4a8c9f4eaa4c508d8ffc6698fd31b6a8f6 /lib/Numeric/LinearAlgebra/Tests.hs
parent853b46c522fa48a2c476fbfd0771a0da7aa9efc0 (diff)
cond
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests.hs')
-rw-r--r--lib/Numeric/LinearAlgebra/Tests.hs10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests.hs b/lib/Numeric/LinearAlgebra/Tests.hs
index 181cfbf..76eaaae 100644
--- a/lib/Numeric/LinearAlgebra/Tests.hs
+++ b/lib/Numeric/LinearAlgebra/Tests.hs
@@ -369,7 +369,14 @@ findAssocTest = utest "findAssoc" ok
369 where 369 where
370 ok = m1 == m2 370 ok = m1 == m2
371 m1 = assoc (6,6) 7 $ zip (find (>0) (ident 5 :: Matrix Float)) [10 ..] :: Matrix Double 371 m1 = assoc (6,6) 7 $ zip (find (>0) (ident 5 :: Matrix Float)) [10 ..] :: Matrix Double
372 m2 = diagRect 7 (fromList[10..14]) 6 6 :: Matrix Double 372 m2 = diagRect 7 (fromList[10..14]) 6 6
373
374---------------------------------------------------------------------
375
376condTest = utest "cond" ok
377 where
378 ok = step v * v == cond v 0 0 0 v
379 v = fromList [-7 .. 7 ] :: Vector Float
373 380
374--------------------------------------------------------------------- 381---------------------------------------------------------------------
375 382
@@ -542,6 +549,7 @@ runTests n = do
542 , chainTest 549 , chainTest
543 , succTest 550 , succTest
544 , findAssocTest 551 , findAssocTest
552 , condTest
545 ] 553 ]
546 return () 554 return ()
547 555