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

Non-Linear Fit Using GSL

So I'm trying to modify some code I found here to fit a different function, but my slightly modified version fails to converge and I don't understand why. The function I'm trying to find the least squared fit for is "A + lambdalog(t) + blog(t)^2.…
Narwhal
  • 325
  • 3
  • 15
0
votes
0 answers

Blurring a copy of the current screen then rendering it as a texture in the game pause screen

I call applyEffect in my game logic when the screen is paused, but the image is not set. In its place i get a black background. I instead expect it to show a blurred texture, of the form in image below as expected once I set the gaussian blur…
Otieno Rowland
  • 2,182
  • 1
  • 26
  • 34
0
votes
1 answer

Install GSLL on SBCL with Quicklisp

I am trying to install the GNU Scientific Library for Lisp (GSLL). I saw there are answers to a similar question already, but I didn't find the connection to what is happening in my case. Could anyone help to move on from here? CL-USER>…
Danny Zuko
  • 483
  • 4
  • 12
0
votes
1 answer

linking to GSL library using lccwin64 compiler

Linking to the Gnu Scientific Library is very well documented using gcc for Linux & Cygwin. Here, I'm working on Windows 7, and all I have is the lcc compiler (http://www.cs.virginia.edu/~lcc-win32/ , which includes lcc64 and lcclnk64) and GSL…
user2105469
  • 1,413
  • 3
  • 20
  • 37
0
votes
1 answer

Crash when using GSL with Qt

I am trying to use GSL in Qt/C++. I compiled the library using MinGW in Windows following this tutorial. I did not copy the directory, GSL is in c:/gsl-1.16 I linked in Qt like this: win32{ INCLUDEPATH += C:/gsl-1.16/include / INCLUDEPATH +=…
0
votes
1 answer

Dealing with big sized array in c programming

I am working on nonlinear differential equation. What I was doing is to average up the positions over 100 different values of initial conditions. I used odeiv in gsl. For each initial values, the time range is 4*10^7. However, the program kills,…
supergentle
  • 1,001
  • 1
  • 14
  • 33
0
votes
1 answer

Visualizing a 2D GSL matrix in SDL 2.0

I have a 2D GSL matrix filled with real non-negative values. Does anyone know an easy way to visualize that matrix as a grayscale image in SDL 2.0?
Beginner
  • 325
  • 5
  • 16
0
votes
0 answers

Version conflict: pygsl and gsl

Trying to use pygsl library I have got this error: Warning: This pygsl module was compiled for GSL version 1.16 but it is used with version 1.15! gsl is installed in version 1.16. The version of pygsl is 0.9.5 Compiling from scratch, I have first…
freude
  • 3,632
  • 3
  • 32
  • 51
0
votes
0 answers

What is the best way to build the GNU Scientific Library for use on MinGW?

I'm trying to get GSL version 1.16 built using MinGW but I'm running into some problems. I followed these instructions which involve invoking these commands from within sh.exe. tar zxvf cd gsl-
user2582713
  • 115
  • 6
0
votes
1 answer

Load an image to a GSL matrix

Does anyone know about some function that loads a grayscale image into a GSL matrix? Something like: gsl_matrix *M; load_image("./image.jpg", M); // any image extension would also be fine
Beginner
  • 325
  • 5
  • 16
0
votes
1 answer

Undefined symbols for architecture x86_64 installing library

I'm trying to install GSL on OS X 10.9.3. I had followed all the installation steps mentioned. But I keep getting this error. Undefined symbols for architecture x86_64: "___sincos_stret", referenced from: _city_distance in siman_tsp.o …
user3466563
  • 59
  • 1
  • 5
0
votes
1 answer

k largest elements of GSL vector

I am trying to get the indices of the k largest elements in a GSL vector v of length > k. The code goes as follows: uint8_t Indices[k]; gsl_sort_vector_largest_index(Indices, k, v); But, for some reason, only the first entry of Indices gets…
Beginner
  • 325
  • 5
  • 16
0
votes
3 answers

Interpolation error with gsl akima spline

I'm getting a 'gsl: interp.c:150: ERROR: interpolation error' with the following code. Some googling says that this error occurs when you try to extrapolate using the interp function but I don't see how that is happening here. Help would be greatly…
NKD
  • 31
  • 4
0
votes
0 answers

no update of parameters using multirootsolver

I am currently trying to write a code to solve a non linear system of equations. I am using the functions of the gsl library, more specifically the multiroot_fdf_solver. My problem is that it currently doesn't want to converge. More specifically, I…
user1379725
  • 31
  • 1
  • 4
0
votes
1 answer

How to use GSL library in C for diagonalization of a Hermitian Matrix?

I have basic knowledge about C programming language. I know loop structure, array and control statements. Suddenly I need to know that how to diagonalize a Hermitian matrix using the GSL library in C language. Installation of GSL is not a problem.…
amitoz
  • 313
  • 2
  • 4
  • 13