From 8a1a04f10e37af280e4fa640c3f66f93d6f16004 Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Wed, 9 Mar 2011 09:30:37 +0000 Subject: os x brew and rotTest tolerance --- THANKS | 3 +++ hmatrix.cabal | 4 +++- lib/Numeric/LinearAlgebra/Tests.hs | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/THANKS b/THANKS index 083495b..c6a8264 100644 --- a/THANKS +++ b/THANKS @@ -88,3 +88,6 @@ module reorganization, monadic mapVectorM, and many other improvements. - Sacha Sokoloski reported an installation problem on Arch Linux and helped with the configuration. +- Carter Schonwald helped with the configuration for Homebrew OS X and + found a tolerance problem in test "1E5 rots". + diff --git a/hmatrix.cabal b/hmatrix.cabal index bd64998..dd1a6b3 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal @@ -179,7 +179,9 @@ library if os(OSX) extra-lib-dirs: /opt/local/lib/ - include-dirs: /opt/local/include + include-dirs: /opt/local/include/ + extra-lib-dirs: /usr/local/lib/ + include-dirs: /usr/local/include/ extra-libraries: gsl if arch(i386) cc-options: -arch i386 diff --git a/lib/Numeric/LinearAlgebra/Tests.hs b/lib/Numeric/LinearAlgebra/Tests.hs index 2b5869d..5036e3f 100644 --- a/lib/Numeric/LinearAlgebra/Tests.hs +++ b/lib/Numeric/LinearAlgebra/Tests.hs @@ -213,7 +213,7 @@ rot a = (3><3) [ c,0,s where c = cos a s = sin a -rotTest = fun (10^5) :~12~: rot 5E4 +rotTest = fun (10^5) :~11~: rot 5E4 where fun n = foldl1' (<>) (map rot angles) where angles = toList $ linspace n (0,1) -- cgit v1.2.3