summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2011-03-09 09:30:37 +0000
committerAlberto Ruiz <aruiz@um.es>2011-03-09 09:30:37 +0000
commit8a1a04f10e37af280e4fa640c3f66f93d6f16004 (patch)
tree64b2c87f48273f1e4ecc42b882086d5329e073ff
parent52178710b4c5d2a2bdd9b612d7174e0a79ffe01f (diff)
os x brew and rotTest tolerance
-rw-r--r--THANKS3
-rw-r--r--hmatrix.cabal4
-rw-r--r--lib/Numeric/LinearAlgebra/Tests.hs2
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.
88- Sacha Sokoloski reported an installation problem on Arch Linux and 88- Sacha Sokoloski reported an installation problem on Arch Linux and
89 helped with the configuration. 89 helped with the configuration.
90 90
91- Carter Schonwald helped with the configuration for Homebrew OS X and
92 found a tolerance problem in test "1E5 rots".
93
diff --git a/hmatrix.cabal b/hmatrix.cabal
index bd64998..dd1a6b3 100644
--- a/hmatrix.cabal
+++ b/hmatrix.cabal
@@ -179,7 +179,9 @@ library
179 179
180 if os(OSX) 180 if os(OSX)
181 extra-lib-dirs: /opt/local/lib/ 181 extra-lib-dirs: /opt/local/lib/
182 include-dirs: /opt/local/include 182 include-dirs: /opt/local/include/
183 extra-lib-dirs: /usr/local/lib/
184 include-dirs: /usr/local/include/
183 extra-libraries: gsl 185 extra-libraries: gsl
184 if arch(i386) 186 if arch(i386)
185 cc-options: -arch i386 187 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
213 where c = cos a 213 where c = cos a
214 s = sin a 214 s = sin a
215 215
216rotTest = fun (10^5) :~12~: rot 5E4 216rotTest = fun (10^5) :~11~: rot 5E4
217 where fun n = foldl1' (<>) (map rot angles) 217 where fun n = foldl1' (<>) (map rot angles)
218 where angles = toList $ linspace n (0,1) 218 where angles = toList $ linspace n (0,1)
219 219