gsl

R not recognizing GSL library undefined references

南楼画角 提交于 2019-12-11 19:51:36
问题 I am installing a package from github in R (link here: https://github.com/aliceyiwang/mvabund), using devtools. I have installed Rtools, using the instructions for another package (here: https://cran.r-project.org/web/packages/dynr/vignettes/InstallationForUsers.pdf) and all the checks there indicate that GSL and RTools are installed properly. I've set the Windows system environment variables LIB_GSL (as "C:/R/local323" ) and PATHS (as "C:/RTools/bin/", "C:/RTools/mingw_64/bin", "C:/R/R-3.5.1

Using GSL functions defined in a structure

大城市里の小女人 提交于 2019-12-11 11:22:21
问题 I want to write a structure containing all the functions (including GSL functions) and parameters for solving an ODE system. From the main function, I only want to call an update function defined in the struct to advance the system by one time-step. When I try this however, I get the error: Line 27, ERROR: cannot convert ‘ODE::funcS’ from type ‘int (ODE::)(double, const double*, double*, void*)’ to type ‘int (*)(double, const double*, double*, void*)’ Below is a minimal code. \ Here is a

Compiling 64-bit GSL on Cygwin using 64-bit GCC

て烟熏妆下的殇ゞ 提交于 2019-12-11 09:41:58
问题 I am trying to compile 64-bit GSL on a Windows 7 machine. Here are the steps I took: Downloaded and untarred the GSL 1.15 source found here. Tested that I have a 64-bit version of GCC available in the Cygwin shell, by compiling the minimal program // simple.C int main() { ; return 0; } using x86_64-w64-mingw32-gcc -m64 simple.C -o simple In the untarred folder, I would like to pass the x86_64-w64-mingw32-gcc compiler to ./configure but am not sure how. I took a look at the configure file, but

Cross-compiling GSL 1.16 for ARM

风流意气都作罢 提交于 2019-12-11 08:52:55
问题 I am trying to cross-compile the GNU Scientific Library (gsl, v1.16) for ARM architecture (specifically the Raspberry Pi). I have used the following to configure; CROSS=armv6j-hardfloat-linux-gnueabi ./configure --host=x86_64-pc-linux-gnu --build=$CROSS --target=$CROSS \ CC=/usr/bin/$CROSS-gcc \ CXX=/usr/bin/$CROSS-g++ \ AR=/usr/bin/$CROSS-ar \ RANLIB=/usr/bin/$CROSS-ranlib \ CFLAGS="-march=armv6 -mfloat-abi=hard -mfpu-vfp" I get the following error messages: libtool: compile: /usr/bin/armv6j

Assigning complex values in gsl

可紊 提交于 2019-12-11 07:26:09
问题 I am trying to use GSL for complex numbers , complex vectors and complex matrices in my project. I am using VS2010 and I added the address of library in Configuration Properties>C/C++>General>Additional Include Directories . But I have a stupid problem. As far as I understood, I can not use = to assign two gsl_complex , gsl_vector_complex or gsl_matrix_complex to each other. For vectors I have to use gsl_vector_complex_set and for matrices gsl_matrix_complex_set . But for gsl_complex, I only

Do I have a memory inconcistency? Macos

情到浓时终转凉″ 提交于 2019-12-11 05:12:01
问题 I currently use Activity monitor, however this yields a serious inconsistency. I have a running program that builds and stores a 60 x 100,000 array of 10 dimensional GSL vectors in double precision, and another 6 x 60 array of 16,807 dimensional GSL vectors. I code in C++, I'm using the GSL library out of convenience for the minute. GSL vectors are essentially an array of double precision data and a pointer, so I think it should be accurate to measure their usage in terms of just the double

Building an R package that uses the GSL on Windows

非 Y 不嫁゛ 提交于 2019-12-09 06:04:26
I have little to no knowledge about developing for Windows. I have written an R package that works just fine on Linux. I am trying to get it to work on Windows. Unfortunately, I feel I just hit a wall. The package uses the GSL library. The first thing I did was to compile it using mingw-w64, which worked as expected. I then proceeded to build the package. Everything went fine up until when R tests if the package can be loaded. I get this error message: Error in inDL(x, as.logical(local), as.logical(now), ...) : impossible de charger l'objet partagé 'C:/Users/Patrick/Desktop/r_packages/Bayes

high order bessel function computation with large variables

若如初见. 提交于 2019-12-08 19:41:29
My work involves computation of high order bessel function at large variable value. Within MATLAB, this has been done without problems. However, in order to scale up the problem, I have tuned to writing C++ code with MPI. Of course, the step to generate bessel function is done by invoking some libraries. To put the problem concrete, let me consider this very specific bug. In matlab, suppose I wish to compute $J_46341(86840.0)$, and matlab gives me: besselj(46341,86840)=0.001309896212292 However, a simple test example to call gsl_sf_bessel_Jn_e returns "ERROR: NaN" and I have checked at order

installing GSL on Windows XP 32bit for use with codeblocks

浪尽此生 提交于 2019-12-08 13:29:23
问题 I am trying to install Gnu Scientific Library (GSL) on Windows XP, but this is very difficult for me. I found this site http://gnuwin32.sourceforge.net/packages/gsl.htm from which I downloaded "Complete package, except sources" and installed. But this is only 6.2MB large, which I find to be very small. Is this correct? I would be happy to get some help with this. I don't understand why this has to be so difficult. 回答1: I am beginner as well, but I just managed to have it work on windows 8

high order bessel function computation with large variables

末鹿安然 提交于 2019-12-08 07:06:58
问题 My work involves computation of high order bessel function at large variable value. Within MATLAB, this has been done without problems. However, in order to scale up the problem, I have tuned to writing C++ code with MPI. Of course, the step to generate bessel function is done by invoking some libraries. To put the problem concrete, let me consider this very specific bug. In matlab, suppose I wish to compute $J_46341(86840.0)$, and matlab gives me: besselj(46341,86840)=0.001309896212292