From 8f840c450c66b25b4d2a7afb243830cc7aed400b Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Thu, 24 Apr 2014 10:45:34 +0200 Subject: tests updated to 0.16 --- packages/tests/hmatrix-tests.cabal | 6 +++--- packages/tests/src/Numeric/LinearAlgebra/Tests.hs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'packages') diff --git a/packages/tests/hmatrix-tests.cabal b/packages/tests/hmatrix-tests.cabal index 10b7c80..65254f4 100644 --- a/packages/tests/hmatrix-tests.cabal +++ b/packages/tests/hmatrix-tests.cabal @@ -1,5 +1,5 @@ Name: hmatrix-tests -Version: 0.3 +Version: 0.4 License: GPL License-file: LICENSE Author: Alberto Ruiz @@ -9,7 +9,7 @@ Homepage: https://github.com/albertoruiz/hmatrix Synopsis: Tests for hmatrix Description: Tests for hmatrix Category: Math -tested-with: GHC==7.4 +tested-with: GHC==7.8 cabal-version: >=1.8 @@ -21,7 +21,7 @@ extra-source-files: CHANGES library Build-Depends: base >= 4 && < 5, - hmatrix >= 0.14.1, + hmatrix >= 0.16, QuickCheck >= 2, HUnit, random hs-source-dirs: src diff --git a/packages/tests/src/Numeric/LinearAlgebra/Tests.hs b/packages/tests/src/Numeric/LinearAlgebra/Tests.hs index 7e1799e..5398daa 100644 --- a/packages/tests/src/Numeric/LinearAlgebra/Tests.hs +++ b/packages/tests/src/Numeric/LinearAlgebra/Tests.hs @@ -270,7 +270,7 @@ normsVTest = TestList [ #ifndef NONORMVTEST norm2PropR a = norm2 a =~= sqrt (udot a a) #endif - norm2PropC a = norm2 a =~= realPart (sqrt (udot a (conj a))) + norm2PropC a = norm2 a =~= realPart (sqrt (cdot a a)) a =~= b = fromList [a] |~| fromList [b] normsMTest = TestList [ @@ -660,7 +660,7 @@ a |~~| b = a :~6~: b makeUnitary v | realPart n > 1 = v / scalar n | otherwise = v - where n = sqrt (conj v `udot` v) + where n = sqrt (v `cdot` v) -- -- | Some additional tests on big matrices. They take a few minutes. -- runBigTests :: IO () -- cgit v1.2.3