PreviousIndexNext

[bug-gsl] Re: Scalars are required to be double for all gsl_*_scale, gsl_*_add_constant regardless of element type (2008-11-11)

From: Brian Gough <bjg@gnu.org>
Subject: Re: Scalars are required to be double for all gsl_*_scale, gsl_*_add_constant regardless of element type
Date: Tue, 11 Nov 2008 14:57:21 +0000
To: "Liam Healy" <lnp@......................>
Cc: bug-gsl@gnu.org

At Sat, 8 Nov 2008 17:10:37 -0500,
Liam Healy wrote:
> I checked a few of the .h files and they all seem this way; actual
> tests on the different kinds of vectors and matrices has the effect
> that the scalar is zero (i.e., for _add_constant the vector/matrix is
> returned the same as supplied, for _const, the result is zero.).

Can you give some specific examples where there's a problem? I can see
that adding a double between 0 and 1 will not have any effect for
integer vectors, but it should work for values larger than 1.

--
Brian Gough

GNU Scientific Library -
http://www.gnu.org/software/gsl/