Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

git-svn-id: http://rb-gsl.rubyforge.org/svn/trunk/rb-gsl@12 6e764f74-…

…f39f-46f8-8c54-8307d62afe8d
  • Loading branch information...
commit 59de1367cb5a2f9d1ddf07b49630e069e077f94d 1 parent 6fcd257
ytsunesada authored
View
2  ext/math.c
@@ -79,7 +79,7 @@ static VALUE rb_gsl_isinf(VALUE obj, VALUE x)
static VALUE rb_gsl_isinf2(VALUE obj, VALUE x)
{
- Need_Float(x);
+ // Need_Float(x);
if (gsl_isinf(NUM2DBL(x))) return Qtrue;
else return Qfalse;
}
View
1  rd/math.rd
@@ -69,6 +69,7 @@ Contents:
--- GSL::isinf(x)
This returns +1 if ((|x|)) is positive infinity,
-1 if ((|x|)) is negative infinity and 0 otherwise.
+ NOTE: In Darwin9.5.0-gcc4.0.1, this method returns 1 for -inf.
--- GSL::isinf?(x)
This returns (({true})) if ((|x|)) is positive or negative infinity,
and (({false})) otherwise.
View
4 tests/eigen/nonsymm.rb
@@ -32,6 +32,10 @@
eval = m.eigen_nonsymm.real.sort
GSL::Test::test_abs(eval[0], 3, 1e-10, "GSL::Matrix::eigen_nonsymm")
GSL::Test::test_abs(eval[1], 3, 0, "GSL::Matrix::eigen_nonsymm")
+# 2008/Oct/17 YT
+# This test fails in Darwin9.5.0-gcc4.0.1
+# expected: 5
+# obtained: 4.99999999999999911
GSL::Test::test_abs(eval[2], 5, 0, "GSL::Matrix::eigen_nonsymm")
m = GSL::Matrix[[-3, 1, -1], [-7, 5, -1], [-6, 6, -2]]
View
5 tests/qrng.rb
@@ -90,6 +90,10 @@ def test_nied2()
test_sobol()
test_nied2()
+# Tests for an extension package "qrngextra"
+
+exit unless GSL::QRng.const_defined?("HDSOBOL")
+
def test_hdsobol()
v = GSL::Vector.alloc(3)
@@ -125,3 +129,4 @@ def test_hdsobol()
end
test_hdsobol()
+
Please sign in to comment.
Something went wrong with that request. Please try again.