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

Haskell linear algebra?

I am starting to test Haskell for linear algebra. Does anyone have any recommendations for the best package for this purpose? Any other good resources for doing basic matrix manipulation with Haskell? The haskell wiki lists several resources for…
Shane
  • 92,684
  • 33
  • 219
  • 216
21
votes
10 answers

Problems installing gsl gem

I can succesfully install the gsl library in my home directory, but when I try to install the gsl gem I get a big list of errors that I do not understand. I am wondering if someone could give me some idea why I could be getting those errors. I can…
Flethuseo
  • 5,399
  • 10
  • 42
  • 68
20
votes
8 answers

error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory

I use gsl. After I compiled my .cpp file and run it, I faced with below error: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory I found same as this problem…
Abdolvahed
  • 201
  • 1
  • 2
  • 3
20
votes
3 answers

ld: library not found for -lgsl

I'm working in OSX and I'm attempting to run a make file and when I try I get the following: ld: library not found for -lgsl clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [harm] Error 1 Earlier I found…
Novice C
  • 1,094
  • 2
  • 10
  • 26
17
votes
7 answers

installing R gsl package on Mac

I'm trying to install the gsl package for R, which I understand is simply a wrapper around the GSL, under OSX Mavericks. I've tried the obvious: > install.packages('gsl') Installing package into ‘/Users/myusername/Library/R/3.1/library’ (as ‘lib’ is…
RoyalTS
  • 7,796
  • 7
  • 45
  • 90
17
votes
3 answers

Why does MATLAB/Octave wipe the floor with C++ in Eigenvalue Problems?

I'm hoping that the answer to the question in the title is that I'm doing something stupid! Here is the problem. I want to compute all the eigenvalues and eigenvectors of a real, symmetric matrix. I have implemented code in MATLAB (actually, I run…
MGA
  • 1,558
  • 14
  • 27
16
votes
1 answer

Why is the GNU scientific library matrix multiplication slower than numpy.matmul?

Why is it that the matrix multiplication with Numpy is much faster than gsl_blas_sgemm from GSL, for instance: import numpy as np import time N = 1000 M = np.zeros(shape=(N, N), dtype=np.float) for i in range(N): for j in range(N): …
16
votes
4 answers

What is the BigO of linear regression?

How large a system is it reasonable to attempt to do a linear regression on? Specifically: I have a system with ~300K sample points and ~1200 linear terms. Is this computationally feasible?
BCS
  • 67,242
  • 64
  • 175
  • 277
16
votes
1 answer

GSL statistics, what is stride?

I would like to use GSL (Gnu Scientific Lib) to calculate the standard deviation of an array. http://www.gnu.org/software/gsl/manual/html_node/Mean-and-standard-deviation-and-variance.html In the manual, the function prototype is gsl_stats_sd…
Alfred Zhong
  • 5,853
  • 9
  • 39
  • 55
15
votes
2 answers

How to build GSL with msvc2010?

I'm working with Qt 4.8.3 and QtCreator, which I've compiled with msvc2010 as per the instructions here. Now however I need to link to GSL (Gnu Scientific Library), but currently I only know how to build it with g++ which produces linker errors…
Matt Phillips
  • 8,691
  • 8
  • 41
  • 72
13
votes
1 answer

Using GSL on Windows (compiling, linking, ect). A Step by Step Guide

I need to write some C code using GSL (GNU Scientific Library), and have never used libraries before. I am a Physicist, not a computer scientist, and struggle with a lot of the jargon in the GNU documentation. For the last few hours I've been…
Rohan
  • 402
  • 1
  • 3
  • 14
13
votes
1 answer

Floating-point optimizations - guideline

The majority of scientific computing problems that we need solve by implementing a particular algorithm in C/C++ demands accuracy that are much lower than double precision. For example, 1e-6, 1e-7 accuracy covers 99% of the cases for ODE solvers or…
Vivian Miranda
  • 2,276
  • 1
  • 13
  • 26
11
votes
5 answers

Using GNU Scientific Library (GSL) under Windows x64 with MinGW

I have installed MinGW and MSYS on Microsoft Windows (64bit), inside directory C:\MinGW (MSYS directory is C:\MinGW\msys\1.0). I have downloaded the latest GNU Scientific Library (GNU GSL) package from the official ftp. I have used MSYS to perform…
AlQuemist
  • 754
  • 3
  • 8
  • 20
11
votes
4 answers

how to avoid static member function when using gsl with c++

I would like to use GSL within a c++ class without declaring member functions as static. The reason for this is because I don't know them too well and I'm not sure about thread safety. From what I read, std::function might be a solution but I'm not…
kirill_igum
  • 3,703
  • 5
  • 37
  • 68
9
votes
7 answers

Using random numbers with GPUs

I'm investigating using nvidia GPUs for Monte-Carlo simulations. However, I would like to use the gsl random number generators and also a parallel random number generator such as SPRNG. Does anyone know if this is possible? Update I've played about…
csgillespie
  • 54,386
  • 13
  • 138
  • 175
1
2 3
45 46