gsl

Problems with installing gsl, nothing works

北慕城南 提交于 2019-12-06 11:22:09
问题 I have been having troubles for some time now installing gsl on ubuntu. I followed this guide: http://www.brianomeara.info/tutorials/brownie/gsl with version 1.15. did ./configure, make install, etc. Now im trying to run an example: http://www.mas.ncl.ac.uk/~ndjw1/teaching/sim/gsl.html the compile command is gcc -I/usr/include/gsl -lgsl -lgslblasnative gsl_test.c -o gsl_test and the error I get is: /usr/bin/ld: cannot find -lgslblasnative I have also tried other examples before with the same

Xcode 4.3.3 can't find any header files

空扰寡人 提交于 2019-12-06 09:22:10
Up until now I've managed to get Xcode to link to the Gnu Scientific Libraries (GSL) which I've installed under /usr/local/lib/ and with header files under /usr/local/include. Under "Build Phases" > "Link Binary With Libraries" I had added libgsl.a etc. Today, Xcode gives an error message claiming it can't find header files. For example #include <stdio.h> #include <gsl/gsl_matrix.h> int main(int argc, const char * argv[]) { printf("Hello, World!\n"); return 0; } results in 'gsl/gsl_matrix.h' file not found. I've tried to change the User Header Search path to no avail. Using gcc main.c -lgsl

Linking GSL (or other library) statically into a shared library

安稳与你 提交于 2019-12-06 04:41:58
问题 Note: Despite the mentioning of Python in the following there is a good chance for my problem not to be Python related at all. If I am not mistaken the “module” I mention is equivalent to a C library—at least for the concerns of my problem. On Debian I am trying to create a Python module with C, which in turn uses the GSL. The following Makefile successfully compiles it: CC = gcc -Wall -fPIC -O3 NAME = meinzeug matrizenwuerfler: $(SRC) $(CC) -o $(NAME).o -I/usr/lib/python2.5/site-packages

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

这一生的挚爱 提交于 2019-12-05 06:51:29
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 random number generator (RNG) affects very badly the overall performance of the program. I wrote some code lines (see below) to show the problem I am facing without much verbosity. The problem is the following: everytime the number of threads nt increases, the performance gets singnificantly worse. At this workstation (linux kernel 2.6.33.4; gcc 4.4

installing R gsl package on Mac

自古美人都是妖i 提交于 2019-12-04 23:49:01
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 unspecified) package ‘gsl’ is available as a source package but not as a binary Warning in install.packages : package ‘gsl’ is not available (for R version 3.1.0) So I ran > install.packages('gsl',type = 'source') Installing package into ‘/Users/myusername/Library/R/3.1/library’ (as ‘lib’ is unspecified) trying URL 'http://cran.rstudio.com/src

Problems with installing gsl, nothing works

夙愿已清 提交于 2019-12-04 18:09:45
I have been having troubles for some time now installing gsl on ubuntu. I followed this guide: http://www.brianomeara.info/tutorials/brownie/gsl with version 1.15. did ./configure, make install, etc. Now im trying to run an example: http://www.mas.ncl.ac.uk/~ndjw1/teaching/sim/gsl.html the compile command is gcc -I/usr/include/gsl -lgsl -lgslblasnative gsl_test.c -o gsl_test and the error I get is: /usr/bin/ld: cannot find -lgslblasnative I have also tried other examples before with the same error, that it cant find the libraries im trying to access. I am really a newbie to compiling/linking

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

自闭症网瘾萝莉.ら 提交于 2019-12-04 16:18:46
问题 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 in: https://groups.google.com/forum/#!topic/cortex_var/6vluX7pP0Sk & Linux error while loading shared libraries: cannot open shared object file: No such file or directory & http://www.gnu.org/software/gsl/manual/html_node/Shared-Libraries.html And I have done as in the above

Getting p-value for linear regression in C gsl_fit_linear() function from GSL library

假如想象 提交于 2019-12-04 10:45:44
I'm trying to reporduce some code from R in C, so I'm trying to fit a linear regression using the gsl_fit_linear() function. In R I'd use the lm() function, which returns a p-value for the fit using this code: lmAvgs<- lm( c(1.23, 11.432, 14.653, 21.6534) ~ c(1970, 1980, 1990, 2000) ) summary(lmAvgs) I've no idea though how to go from the C output to a p-value, my code looks something like this so far: int main(void) { int i, n = 4; double x[4] = { 1970, 1980, 1990, 2000 }; double y[4] = {1.23, 11.432, 14.653, 21.6534}; double c0, c1, cov00, cov01, cov11, sumsq; gsl_fit_linear (x, 1, y, 1, n,

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

折月煮酒 提交于 2019-12-04 09:37:21
问题 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 configure and make successfully as described in the INSTALL file in the GSL package. That means, in the MSYS command-line interface, in the MSYS home directory, I have inserted: $ ./configure $ make $ make install This produces a local directory

Using random numbers with GPUs

 ̄綄美尐妖づ 提交于 2019-12-04 08:35:08
问题 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 with RNG using GPUs. At present there isn't a nice solution. The Mersenne Twister that comes with the SDK isn't really suitable for (my) Monte-Carlo simulations since it takes an incredibly long time to generate seeds. The NAG libraries are more