<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/ruby-gsl/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/ruby-gsl/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 18 Jun 2007 22:31:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ruby-gsl/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>bug in Hist2D_get</title><link>https://sourceforge.net/p/ruby-gsl/bugs/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;A small bug in the 2D histogram get method. The method  checks the number of bins in the x direction instead of the y direction for the index j.&lt;/p&gt;
&lt;p&gt;The line 226 in Hist"D.c reads &lt;/p&gt;
&lt;p&gt;if (nj &amp;lt; 0 || nj &amp;gt; ptr-&amp;gt;nx)&lt;br /&gt;
rb_raise(rb_eRangeError, "Index j is outside of allowed range.");&lt;/p&gt;
&lt;p&gt;but it should read&lt;br /&gt;
if (nj &amp;lt; 0 || nj &amp;gt; ptr-&amp;gt;ny)&lt;br /&gt;
...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 18 Jun 2007 22:31:25 -0000</pubDate><guid>https://sourceforge.netec7f0ac1d5e1587f0df8ee93c9ddbaa22b837baf</guid></item><item><title>samples/matrix_complex.rb segfaults</title><link>https://sourceforge.net/p/ruby-gsl/bugs/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Maybe due to the #ifdef I chaged to get around bug no.&lt;br /&gt;
911312?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tobias Hunger</dc:creator><pubDate>Sun, 07 Mar 2004 10:24:49 -0000</pubDate><guid>https://sourceforge.neta5086fe4fc430c93d2c3d25c36dc67917fbd6f5c</guid></item><item><title>Vector_complex fails to build</title><link>https://sourceforge.net/p/ruby-gsl/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Vector_complex_allocate is not defined. I just changed&lt;br /&gt;
#ifdef HAVE_DEFINE_ALLOC_FUNCTION to #ifdef 0 to get&lt;br /&gt;
around this problem.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tobias Hunger</dc:creator><pubDate>Sun, 07 Mar 2004 10:24:02 -0000</pubDate><guid>https://sourceforge.net4ec73e517e8c2fa1c23d57507ce23cb4b36ba847</guid></item><item><title>GSL renamed constants</title><link>https://sourceforge.net/p/ruby-gsl/bugs/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;GSL seems to have renamed its constants:&lt;br /&gt;
GSL_CONST_CGS_* turned into GSL_CONST_CGSM_* and&lt;br /&gt;
GSL_CONST_MKS_ turned into GSL_CONST_MKSA_*.&lt;/p&gt;
&lt;p&gt;Make failes in Consts.c due to this rename. It is&lt;br /&gt;
trivial to fix with a regexp replacing CGS with CGSM&lt;br /&gt;
and MKS with MKSA.&lt;/p&gt;
&lt;p&gt;Afterwards you need to do the same change in ruby-gsl.h&lt;br /&gt;
as well.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 07 Mar 2004 10:18:51 -0000</pubDate><guid>https://sourceforge.net211583fb5f34e85e5e6ffca587932879524a39c7</guid></item><item><title>cygwin problems</title><link>https://sourceforge.net/p/ruby-gsl/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Looks like the prebuilt GSL lib on cygwin is missing two &lt;br /&gt;
functions.&lt;br /&gt;
The extconf.rb should check the platform and provide some &lt;br /&gt;
fix (comment out) to the relevant files.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Arno Erpenbeck</dc:creator><pubDate>Sat, 03 May 2003 16:20:57 -0000</pubDate><guid>https://sourceforge.net03bf0ac19b648e1946204a4c2d521aeca6799cd1</guid></item><item><title>crash in MonteCarlo integration</title><link>https://sourceforge.net/p/ruby-gsl/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When using many iterations in MonteCarlo integration, &lt;br /&gt;
the program crashes from time to time:&lt;/p&gt;
&lt;p&gt;---&lt;br /&gt;
p2 = Proc.new {|k, p|&lt;br /&gt;
p / (1.0 - cos(k[0]) * cos(k[1]) * cos(k[2]))&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;a = 1.0 / (M_PI * M_PI * M_PI)&lt;br /&gt;
dim = 3&lt;/p&gt;
&lt;p&gt;f = Function.new dim, a, p2&lt;br /&gt;
plain = Plain.new dim&lt;/p&gt;
&lt;p&gt;xl = [0.0, 0.0, 0.0]&lt;br /&gt;
xu = [M_PI, M_PI, M_PI]&lt;br /&gt;
calls = 10000&lt;br /&gt;
rng = Random::RNG.new&lt;/p&gt;
&lt;p&gt;r = plain.integrate f, xl, xu, calls, rng&lt;br /&gt;
result = r[0]&lt;br /&gt;
abserr = r[1]&lt;br /&gt;
---&lt;/p&gt;
&lt;p&gt;Crash occurs in Monte.c (MFunction_function) when the &lt;br /&gt;
call to the Proc object is made (rb_funcall).&lt;/p&gt;
&lt;p&gt;I suspect it is something with the memory management. &lt;br /&gt;
Probably the COPYCARRAY/COPYRUBYARRAY macros &lt;br /&gt;
do some harm if called too often.&lt;/p&gt;
&lt;p&gt;BTW: Could this be a Ruby problem (see attached file)?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Arno Erpenbeck</dc:creator><pubDate>Sat, 19 Apr 2003 16:53:00 -0000</pubDate><guid>https://sourceforge.netd21672ede2a4f1e020a1f1af722bfc086b854a00</guid></item><item><title>bug in Vector.c</title><link>https://sourceforge.net/p/ruby-gsl/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Arno,&lt;br /&gt;
there is a bug in Vector.c:&lt;br /&gt;
static VALUE Vector_subvector(VALUE obj, VALUE o, VALUE&lt;br /&gt;
n) {&lt;br /&gt;
gsl_vector *vector, *v2;&lt;br /&gt;
gsl_vector_view vtmp;&lt;br /&gt;
Data_Get_Struct(obj, gsl_vector, vector);&lt;br /&gt;
v2 = gsl_vector_alloc(NUM2INT(n));&lt;/p&gt;
&lt;p&gt;// vtmp = gsl_vector_subvector(vector, NUM2INT(o), n);&lt;br /&gt;
// becomes&lt;br /&gt;
vtmp = gsl_vector_subvector(vector, NUM2INT(o),&lt;br /&gt;
NUM2INT(n)); &lt;/p&gt;
&lt;p&gt;*v2 = vtmp.vector;&lt;br /&gt;
return Data_Wrap_Struct(rbgsl_cVector, 0,&lt;br /&gt;
gsl_vector_free, v2);&lt;br /&gt;
}&lt;br /&gt;
================================&lt;br /&gt;
require &amp;amp;quot;GSL&amp;amp;quot;&lt;br /&gt;
include GSL&lt;/p&gt;
&lt;p&gt;v1 = Vector.new((0..9).to_a)&lt;br /&gt;
v2 = v1.subvector(4,3)&lt;br /&gt;
v2.to_a #-&amp;amp;gt; [4.0, 5.0, 6.0]&lt;br /&gt;
=================================&lt;br /&gt;
So long&lt;br /&gt;
Mario&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pernici Mario</dc:creator><pubDate>Tue, 15 Apr 2003 08:56:14 -0000</pubDate><guid>https://sourceforge.net5b277839fce48252af019ae237af8da96ef185be</guid></item><item><title>misprint in Vector.c</title><link>https://sourceforge.net/p/ruby-gsl/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Dear Arno,&lt;br /&gt;
In Vector.c , there is a misprint:&lt;/p&gt;
&lt;p&gt;//rb_define_alias(rbgsl_cVector, &amp;amp;quot;*&amp;amp;quot;, &amp;amp;quot;div&amp;amp;quot;);&lt;br /&gt;
rb_define_alias(rbgsl_cVector, &amp;amp;quot;/&amp;amp;quot;, &amp;amp;quot;div&amp;amp;quot;);&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Mario&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pernici Mario</dc:creator><pubDate>Mon, 14 Apr 2003 11:20:11 -0000</pubDate><guid>https://sourceforge.netadeb26f072b809b47355a0b910bfd5d8ff6e5d03</guid></item></channel></rss>