Questions tagged [gsl]

The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers.

The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License.

The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite.

http://www.gnu.org/software/gsl/

748 questions
0
votes
1 answer

fsolve &fzero in c++ with GSL root finding

I have a prototype code in Matlab, it's using fsolve and fzero in some calculations. In c++ I'm using GSL and trying to find the value x which is f(x)=0; So for my example, in Matlab I do: functionSolver= @(x) myFunction(x); XSol =…
questioner
  • 107
  • 10
0
votes
1 answer

GNU GSL BLAS library, undefined symbols

Is there anyone that can give me a simple run down of how to install the GSL library so that it'll work with XCode (5.1) on a Mac (Mavericks, 10.9)? I keep getting this error: Undefined symbols for architecture x86_64: "_gsl_matrix_add", referenced…
user3145575
0
votes
3 answers

Using gsl_function using a supplied R function

I am currently attempting to use the gsl_function from GSL library through RcppGSL using a .cpp file and calling it using sourceCpp(). The idea is to perform numerical integration with gsl_integration_qags, also from GSL. My C code invokes a user…
0
votes
1 answer

Is there any easy way to sort a gsl vector in descending order?

gsl provide APIs to sort a vector in ascending order, but, am I missing something to sort in descending order? I don't want "gsl_sort_largest" to create and extra vector.
Hailiang Zhang
  • 17,604
  • 23
  • 71
  • 117
0
votes
1 answer

gsl floating point data and operations

The gsl manual only mentioned that the floating point data can be represented by "gsl_vector_float" or "gsl_matrix_float", but it doesn't provide the methods to operate on these float gsl data. It even doesn't say how to allocate memory for it, and…
Hailiang Zhang
  • 17,604
  • 23
  • 71
  • 117
0
votes
0 answers

Install GSL gem with Ruby 2.1 Debian/Ubuntu

I tried so many times, reading a lot for everywhere, but I can't install the gem with ruby 2.1, I'm currently using it with Ruby 2.0 + GSL 1.15 + GSL gem 1.15.3 + Debian 7.0 (wheezy) Can someone share his recipe. Thanks in advance.
Shinta
  • 256
  • 2
  • 12
0
votes
0 answers

GSL Random number generator in C

I'm trying to use the random number generator from the GSL. In my code I have something like ... gsl_rng * r; /* global generator for Random Numbers*/ void init_rand_generator( int seed ){ /* Random numbers initialization */ const…
PerroNoob
  • 843
  • 2
  • 16
  • 36
0
votes
1 answer

Implementation of GNU Scientific Library?

Does anyone know a collection of articles or books that describes the implementation of the GNU Scientific Library? This question is not about using the GSL; it's about how the GSL is implemented, their design decisions / tradeoffs. Thanks!
anon
  • 41,035
  • 53
  • 197
  • 293
0
votes
1 answer

gsl and rb-gsl are in my gemlist so why cant the file be found within irb?

I am using Ubuntu 12.04.4 Here is my gem list: gem list *** LOCAL GEMS *** dicom (0.9.5) gsl (1.15.3) narray (0.6.0.8) rb-gsl (1.16.0) rmagick (2.13.2) I have installed the gsl library in my home directory. I then open irb and "require gsl" where…
bateman
  • 61
  • 1
  • 6
0
votes
1 answer

Where is gsl_cdf_beta_Pinv() in PyGSL?

I'm trying to use the distribution functions in a Python program (the random functions I've got figured out; I'm looking specifically for gsl_cdf_beta_Pinv()) and I can't find it. Can someone tell me how I can use these or a fast alternative in a…
0
votes
1 answer

Segmentation fault when creating a vector of objects for solving an ODE using GSL

I need to create a vector of ODESolver objects. If I create an ODESolver object, everything is fine, however, if I use a vector I get a segmentation fault when the ODESolver constructor is called. Why is this the case and how do I solve this…
namu
  • 205
  • 2
  • 8
0
votes
3 answers

Can't seem to figure out what's going on here

This code exemplifies the problem in a much simpler way (sorry for the previous one, it's too complicated). Anyway, note that out_b will print out correctly for any values of index between 0 to 958. The variable out_a, however, will always print out…
0
votes
1 answer

GSL: Solving ODEs with time-dependent coefficients

I have an ODE of type: x'(t) = a(t)x+g(t) Which I am trying to solve. The only GSL ODE example isn't very helpful because the only coefficient (\mu) is not time dependent. This question has been answered on the GSL mailing list however the answer…
Mike Vella
  • 10,187
  • 14
  • 59
  • 86
0
votes
1 answer

gsl_rng functions: in what order do they compile

I am learning gsl_rng library and found an interesting question. I understand that the environment variables (GSL_RNG_TYPE and GSL_RNG_SEED) can be used to set library variables (gsl_rng_default and gsl_rng_default_seed) during run time (without…
CrazyFrog
  • 323
  • 5
  • 19
0
votes
2 answers

GSL-GNU in Visual studio

I have visual studio 2008, I want to integrate GSL library in my project, kindly give me some guidelines so that I can make it possible. I have added the GSL library but the following error come. Error 1 error LNK2028: unresolved token…
Siddiqui
  • 7,662
  • 17
  • 81
  • 129