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/

680 questions
9
votes
3 answers

g++ unable to link libgsl

I try to use the gsl library in one project, but I can't get the example program from the gsl website run properly. The source code and all commands are taken from the website:…
Oliver
  • 257
  • 3
  • 9
7
votes
1 answer

Building GSL (GNU Scientific Library) in Windows for use with VS2005

I'm trying to get GSL working in a windows environment for my team and I'm running into many problems. My team develops in C++ in VS2005, and we'd like to use GSL. I've downloaded the GSL-1.15 tar.gz, and unzipped it, but i'm not really sure what to…
Brian
  • 651
  • 1
  • 7
  • 13
7
votes
2 answers

Removing a column from a gsl_matrix

I would like to remove one column of a gsl_matrix (the i-th column) and then copy its content into another gsl_matrix. This is my code: #include #include #include #include int remove_col…
Dalek
  • 3,827
  • 8
  • 34
  • 78
7
votes
1 answer

R package build failing on Unix machines due to missing GSL - GNU Scientific Library

I am facing a particularly vexing problem with R package development. My own package, called ggstatsplot (https://github.com/IndrajeetPatil/ggstatsplot), depends on userfriendlyscience, which depends on another package called MBESS, which itself…
Indrajeet Patil
  • 3,588
  • 1
  • 11
  • 35
7
votes
6 answers

In C++, how to compute the mean of a vector of integers using a vector view and gsl_stats_mean?

my program manipulates STL vectors of integers but, from time to time, I need to calculate a few statistics on them. Therefore I use the GSL functions. To avoid copying the STL vector into a GSL vector, I create a GSL vector view, and give it to the…
tflutre
  • 2,934
  • 4
  • 36
  • 52
7
votes
0 answers

Riemann zeta function with complex argument

Riemann Zeta function can be defined in the complex plane. Why beside its complications, in C++17, GSL and Boost C++ the argument can be only real(double)?
Stefan
  • 127
  • 9
7
votes
3 answers

GSL eigenvalues order

I am using the functions gsl_eigen_nonsymm and/or gsl_eigen_symm from the GSL library to find the eigenvalues of an L x L matrix M[i][j] which is also a function of time t = 1,....,N so i have M[i][j][t] to get the eigenvalues for every t i allocate…
Fra
  • 161
  • 8
7
votes
4 answers

Create a function from another one

more than a general case, I have a very specific example in mind : in GSL (GNU Scientific Library), the main function type used (in order to perform integration, root finding,...) is gsl_function , which have an attribute function whose type is …
user3640096
  • 165
  • 7
7
votes
1 answer

Using GNU Scientific Library (GSL) to draw a 2D B-Spline path using unevenly spaced points

I'm trying to using the GNU Scientific Library (GSL) to draw a smooth path from A to B. I'm using an API that returns a small number (8 in this case) of irregularly spaced points (in red), that you can see in the following picture: The purple…
Michael J Petrie
  • 173
  • 4
  • 13
7
votes
2 answers

GNU GSL where do I find the source code?

I'm writing some code in which I use some of the GNU GSL functions. And out of pure interest I wonder how these functions have been implemented, therefore I would like to have a look at the source code. The problem is that I seem to be unable to…
WeX
  • 93
  • 1
  • 5
7
votes
1 answer

Reduce file size of GSL library

Is there a way to reduce the file size of the compiled GSL library? Could I just compile some of the sub-libs?
alex
  • 310
  • 1
  • 6
6
votes
1 answer

OpenMP and GSL RNG - Performance Issue - 4 threads implementation 10x slower than pure sequential one (quadcore CPU)

I am trying to turn a C project of mine from sequential into parallel programming. Although most of the code has now been redesigned from scratch for this purpose, the generation of random numbers is still at its core. Thus, bad performance of the…
dd_rlwll
  • 303
  • 4
  • 17
6
votes
3 answers

ImportError from Cython when linking an external C library

I am trying to replicate the work of Flavian Coelho, linked here. He used Cython and the Gnu Scientific Library (GSL) to get a huge speed-up over Python in generating random numbers. When I import my compiled Cython code in Python (with the command…
Wesley
  • 1,042
  • 1
  • 8
  • 25
6
votes
2 answers

How to CORRECTLY install gsl library in Linux?

I got a problem while installing the GNU Scientific Library (gsl). I put the package on my desktop, and did "./configure", "make", and "sudo make install", according to the document included. I checked the /usr/local/include directory, there is a…
seemuch
  • 583
  • 3
  • 7
  • 18
6
votes
2 answers

Calling GSL functions via NativeCall in Raku throws error

Problem I am trying to call cumulative distribution function of chisq function in GSL from raku. This is my raku script chisq.raku #Calling gsl_cdf_chisq-P function in GSL from raku use NativeCall; sub gsl_cdf_chisq_P(num64, num64) returns num64…
Suman Khanal
  • 2,063
  • 13
  • 23
1
2
3
45 46