summaryrefslogtreecommitdiff
path: root/lib/Numeric/LinearAlgebra/Tests.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests.hs')
-rw-r--r--lib/Numeric/LinearAlgebra/Tests.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests.hs b/lib/Numeric/LinearAlgebra/Tests.hs
index 063ae86..c1dae4a 100644
--- a/lib/Numeric/LinearAlgebra/Tests.hs
+++ b/lib/Numeric/LinearAlgebra/Tests.hs
@@ -262,8 +262,8 @@ runTests n = do
262 , utest "expm1" (expmTest1) 262 , utest "expm1" (expmTest1)
263 , utest "expm2" (expmTest2) 263 , utest "expm2" (expmTest2)
264 , utest "arith1" $ ((ones (100,100) * 5 + 2)/0.5 - 7)**2 |~| (49 :: RM) 264 , utest "arith1" $ ((ones (100,100) * 5 + 2)/0.5 - 7)**2 |~| (49 :: RM)
265 , utest "arith2" $ (((1+i) .* ones (100,100) * 5 + 2)/0.5 - 7)**2 |~| ( (140*i-51).*1 :: CM) 265 , utest "arith2" $ ((scalar (1+i) * ones (100,100) * 5 + 2)/0.5 - 7)**2 |~| ( scalar (140*i-51) :: CM)
266 , utest "arith3" $ exp (i.*ones(10,10)*pi) + 1 |~| 0 266 , utest "arith3" $ exp (scalar i * ones(10,10)*pi) + 1 |~| 0
267 , utest "<\\>" $ (3><2) [2,0,0,3,1,1::Double] <\> 3|>[4,9,5] |~| 2|>[2,3] 267 , utest "<\\>" $ (3><2) [2,0,0,3,1,1::Double] <\> 3|>[4,9,5] |~| 2|>[2,3]
268 , utest "gamma" (gamma 5 == 24.0) 268 , utest "gamma" (gamma 5 == 24.0)
269 , besselTest 269 , besselTest
@@ -282,7 +282,7 @@ runTests n = do
282 ] 282 ]
283 return () 283 return ()
284 284
285makeUnitary v | realPart n > 1 = v */ n 285makeUnitary v | realPart n > 1 = v / scalar n
286 | otherwise = v 286 | otherwise = v
287 where n = sqrt (conj v <.> v) 287 where n = sqrt (conj v <.> v)
288 288