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
6
votes
1 answer

GSL Fast-Fourier Transform - Nonsense Output

The Fourier transform of a gaussian is a gaussian, but for some reason the fast Fourier transform library from GSL (GNU scientific library) doesn't give this at all. I've included the code I've used to generate the (attempted) Fourier transform, and…
Arturo don Juan
  • 249
  • 2
  • 8
6
votes
1 answer

Matrix multiplication in GSL-GNU

Kindly tell me the function of matrix multiplication in GSL library. I have searched a lot but I am not be able to fine it. If any one know about that function kindly answer. Thanks in advance.
Siddiqui
  • 7,662
  • 17
  • 81
  • 129
6
votes
5 answers

C function pointers with C++11 lambdas

So i'm trying to write an Integration function to be used with c++11 lambdas. The code looks something like this: double Integrate(std::function func, double a,double b,std::vector & params) { …
UldisK
  • 1,619
  • 1
  • 17
  • 25
5
votes
2 answers

How to implement a left matrix division on C++ using gsl

I am trying to port a MATLAB program to C++. And I want to implement a left matrix division between a matrix A and a column vector B. A is an m-by-n matrix with m is not equal to n and B is a column vector with m components. And I want the result X…
Daniel Gao
  • 207
  • 1
  • 3
  • 9
5
votes
1 answer

Understanding a runtime error triggered by the undefined behavior sanitizer (UBSan)

I find a run-time error in GNU Scientific Library (GSL) when undefined sanitizer is enabled: deque.c:58:11: runtime error: member access within misaligned address 0x0000024010f4 for type 'struct deque', which requires 8 byte…
zell
  • 9,830
  • 10
  • 62
  • 115
5
votes
0 answers

How to integrate the contents of a vector using an adaptive quadrature routine

I have a function which requires the return type to be a container. The problem is that I need to integrate the contents of the container as efficiently as possible and was hoping to use adaptive Gauss-Kronrod integration or something equally…
AlexD
  • 325
  • 2
  • 6
5
votes
2 answers

gsl integration within a function c++

I am just trying integrate over a function in C++. I have been trying to use gsl as I have seen this recommended online. I followed the gsl example with little success. This is my C++ code: double inverseE(double z){ double inverseE =…
Cal
  • 53
  • 4
5
votes
1 answer

Can't require ruby gsl on Alpine Linux

I am running alpine in a docker image and running ruby code. This successfully installs all packages but fails when I try require gsl. Here is the Dockerfile: FROM alpine:3.4 RUN apk upgrade --update \ && apk add libatomic readline…
georgephillips
  • 3,540
  • 4
  • 23
  • 30
5
votes
2 answers

GNU Radio OOT module AttributeError: 'module' object has no attribute 'MME_cpp'

I know this question has been asked before, but I don't find a useful solution. The full error is : Executing: "/home/mint/Documents/test_sensor/cycl_test/top_block.py" Using Volk machine: avx_64_mmx_orc Traceback (most recent call last): File…
Betty
  • 65
  • 1
  • 6
5
votes
2 answers

GSL/BLAS: Multiply a matrix with an inverse matrix

I'm using the GNU GSL to do some matrix calculations. I'm trying to multiply a matrix B with the inverse of a matrix A. Now I've noticed that the BLAS-part of GSL has a function to do this, but only if A is triangular. Is there a specific reason to…
Tom
  • 65
  • 2
  • 5
5
votes
3 answers

"gsl/gsl_rng.h' file not found" after OSX El Capitan upgrade

I just updated to the newest OSX, El Capitan, and I am having problems with compiling a C program. It compiled fine just before the upgrade of the OS. After it I got a warning message already for my LaTeX text editor, Latexian: Latexian message But…
lailaw
  • 75
  • 1
  • 9
5
votes
3 answers

Polynomial Fitting using GNU Scientific C

I need to get a n-degree function from n+1 data points. By using the following gnuplot script I get the right fitting: f(x) = a + b*x + c*x**2 + d*x**3 + e*x**4 + f*x**5 + g*x**6 + h*x**7 + i*x**8 + j*x**9 + k*x**10 + l*x**11 + m*x**12 # Initial…
Isma
  • 127
  • 6
5
votes
3 answers

Heroku/Rails: How to install the GNU Scientific Library (GSL) on Heroku?

I need to install the GSL library on Heroku running a Rails (4.0.2) app to use some gems that depend on it. Goal: Install the GSL library to work with GSL and Similarity gems in Heroku. Tried approaches: Installing Ruby / GSL in Heroku…
skozz
  • 2,662
  • 3
  • 26
  • 37
5
votes
2 answers

gsl multiroot iteration trying nan?

I am trying to find the right parameters to input to my code to produced the desired results. Instead of guessing and checking I am using a root find to find the parameters that give the desired results. There are two variables that are free to…
Novice C
  • 1,344
  • 2
  • 15
  • 27
5
votes
1 answer

Setting the right path on Heroku for a vendor library

This seems so simple but I can't seem to close this final gap. I recently added GSL to my Heroku based app via the Heroku buildpack for GSL/Ruby. Both the buildpack and related GSL gem appear to install just fine per the abbreviated push output…
Robert Vizza
  • 125
  • 1
  • 9
1 2
3
49 50