summaryrefslogtreecommitdiff
path: root/lib/Numeric/LinearAlgebra/Tests.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2010-09-08 08:58:35 +0000
committerAlberto Ruiz <aruiz@um.es>2010-09-08 08:58:35 +0000
commit945ae28d720ab6367a293d8f6a5723b8f7bf835d (patch)
tree5feee1e23cb70436690a71e85f6bcc4d7bacefc5 /lib/Numeric/LinearAlgebra/Tests.hs
parent06a4d3fecb9b918e4c0497269484b00c814605a4 (diff)
fixed type of vector norms
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests.hs')
-rw-r--r--lib/Numeric/LinearAlgebra/Tests.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests.hs b/lib/Numeric/LinearAlgebra/Tests.hs
index 5b42226..0b4e3bf 100644
--- a/lib/Numeric/LinearAlgebra/Tests.hs
+++ b/lib/Numeric/LinearAlgebra/Tests.hs
@@ -240,7 +240,7 @@ normsVTest = TestList [
240 ] where v = fromList [1,-2,3:+4] :: Vector (Complex Double) 240 ] where v = fromList [1,-2,3:+4] :: Vector (Complex Double)
241 x = fromList [1,2,-3] :: Vector Double 241 x = fromList [1,2,-3] :: Vector Double
242 norm2PropR a = norm2 a =~= sqrt (dot a a) 242 norm2PropR a = norm2 a =~= sqrt (dot a a)
243 norm2PropC a = norm2 a =~= sqrt (dot a (conj a)) 243 norm2PropC a = norm2 a =~= realPart (sqrt (dot a (conj a)))
244 a =~= b = fromList [a] |~| fromList [b] 244 a =~= b = fromList [a] |~| fromList [b]
245 245
246normsMTest = TestList [ 246normsMTest = TestList [