Re: [Help-gsl] Fw: How to use GSL in Fedora

2014-02-19 Thread Mohammad Akhlaghi
Hi Abdolvahed, You simply include the header of the section of gsl that you want in your C or C++ code, then you link gsl in your compile command. For example, lets suppose you want to use gsl_stats_median_from_sorted_data() (section 21.9 of the manual). You look in the first few paragraphs of th

Re: [Help-gsl] Linear least squares, webpages and the next release

2015-10-24 Thread Mohammad Akhlaghi
1. Is anyone out there using GSL besides me? :-) The GNU Astronomy Utilities (Gnuastro) extensively use GSL, for example the the FFT routines (for convolution), the random number generators (for making simulated noise or random sampling). GSL is a great asset and we hope to use it much more as Gnu

Re: [Help-gsl] change in gsl_multifit_linear_svd

2016-09-22 Thread Mohammad Akhlaghi
On 09/21/2016 09:10 PM, Timothée Flutre wrote: Moreover, does someone know how I can use conditionals with the Autotools (via ./configure) so that, if the user has GSL <= 1.16, the compiled code uses gsl_multifit_linear_svd whereas if the user has GSL >= 2.0 the compiled code uses gsl_multifit_l

Re: [Help-gsl] New documentation format

2017-04-24 Thread Mohammad Akhlaghi
Dear Patrick, This is Mohammad Akhlaghi (maintainer of GNU Astronomy Utilities). We heavily rely on GSL in Gnuastro and I use it alot personally also. So I wanted to thank you for all the great work on this important package. I just wanted to see if future versions of GSL will also ship with

Re: [Help-gsl] New documentation format

2017-04-24 Thread Mohammad Akhlaghi
uestion, sphinx is able to produce info output, so we will be providing info files with GSL - this is something many users need so we made sure sphinx could do this before switching. Patrick On 04/24/2017 11:09 AM, Mohammad Akhlaghi wrote: Dear Patrick, This is Mohammad Akhlaghi (maintainer of

Re: [Help-gsl] test release for GSL 2.4

2017-06-14 Thread Mohammad Akhlaghi
Hi Patrick, The `./configure', `make', and `make check' commands ran successfully on my system (Arch Linux, GCC 7.1.1, GNU C Library 2.25). To speed up the build, I usually run the Make commands with `-j8' to build in parallel on 8 threads on this system. `make -j8' worked nicely and everyth

Re: [Help-gsl] test release for GSL 2.4

2017-06-15 Thread Mohammad Akhlaghi
Thanks Patrick, The build and tests of GSL 2.3.91 all passed on multiple threads on my system (same as before) too. Thanks for the correction and all the great work on GSL, I am looking forward to the 2.4 release. Cheers, Mohammad

Re: [Help-gsl] test release for GSL 2.4

2017-06-22 Thread Mohammad Akhlaghi
Hi Patrick, How about using two separate files (file names) for vector and matrix tests? For example "test-vector.dat" and "test-matrix.dat". Cheers, Mohammad On June 22, 2017 8:12:06 AM GMT+01:00, Patrick Alken wrote: >In GSL 2.3 and earlier, the vector and matrix modules tested the >fwrite/

Re: [Help-gsl] test release for GSL 2.4

2017-06-22 Thread Mohammad Akhlaghi
>the inline versions. So if these two tests are run in parallel, via >make >check -j8, they will write the same test file name at the same time if >we use a static filename. > >Patrick > >On 06/22/2017 09:56 AM, Mohammad Akhlaghi wrote: >> Hi Patrick, >> >>

Re: [Help-gsl] Regarding function description of certain functions in gsl

2017-12-08 Thread Mohammad Akhlaghi
Hi Mouli, GSL uses macros (which include function names) to treat different types. This is why you couldn't find a match with grep: the full function names are created by C the pre-processor. Within the 'vector' directory, `minmax.c' defines the macros and the actual function you are looking

Re: [Help-gsl] references for rk4imp and gear2 in version 1.13

2017-12-10 Thread Mohammad Akhlaghi
Dear Gábor, You don't need root access to build and install a different version of GSL (or any software) on a server. A complete description of how to do it is given here: https://www.gnu.org/software/gnuastro/manual/html_node/Installation-directory.html Following the names in that page, to com

Re: [Help-gsl] an error while compiling c++ using GSL

2018-01-01 Thread Mohammad Akhlaghi
Dear MohammadAmin, You need to tell your C++ compiker (g++) to link with the GSL library and then the C math library. You can do this with the compiler's `-l' (link) option in a command like this: $ g++ bessel_func.cpp -o bessel_func -lgsl -lm In case it might need CBLAS features, you should

Re: [Help-gsl] help in compiling and linking this file

2018-01-05 Thread Mohammad Akhlaghi
Hi Vasu, The "unknown type name" is not a linker error, its a compiler error (which comes prior to linking). The `gsl_integration_fixed_workspace' type is indeed defined in `gsl_integration.h'. So it is very strange that your compiler doesn't recognize it (after the inclusion of this header)!

Re: [Help-gsl] Problems with compiling Non Linear Fit Example

2018-02-16 Thread Mohammad Akhlaghi
Hi Jonny, The problem seems to be that you are using `-LLIBDIR=/usr/local/lib'. The values given to the `-L' option are directly read as a directory. So the linker will go looking into some directory called 'LIBDIR=/usr/local/lib' (which doesn't exist). But the linker doesn't complain about a

Re: [Help-gsl] unable to link and run a simple program

2018-04-10 Thread Mohammad Akhlaghi
Hi Vasu, This is a dynamic linker problem. Linking with shared libraries is done every time you run a program. The compiler has indeed found the libraries and that is why your `a.out' has been created. The dynamic linker looks into the `LD_LIBRARY_PATH' shell variable to find the libraries.

Re: [Help-gsl] Installation

2018-04-14 Thread Mohammad Akhlaghi
Hi Sushmita, GSL's installation follows the GNU Build System (which is the most common build system in the free software world). In short, you have to run these commands (replace X.X with the version number): tar xf gsl-X.X.tar.gz cd gsl-X.X ./configure make -j8 make check sudo make insta

[Help-gsl] Interpolation type with no re-compiling

2018-05-29 Thread Mohammad Akhlaghi
Hello, In the interpolation section, the GSL manual says: "The interpolation types are interchangeable, allowing different methods to be used without recompiling": https://www.gnu.org/software/gsl/doc/html/interp.html#d-interpolation-functions But in the interpolation section, I couldn't fin

Re: [Help-gsl] Interpolation type with no re-compiling

2018-05-29 Thread Mohammad Akhlaghi
Hi Inigo, Thank you for the explanation. Because I had used the random number generators before, I thought the same system applies to all of GSL. Then I will use options (and configuration files) for the interpolation configuration. Thanks again, Mohammad

Re: GSL support for iOS

2021-03-02 Thread Mohammad Akhlaghi
Hi all, On 3/2/21 12:32 PM, Peter Johansson wrote: Can I run my own apps on iOS without going through app store because I thought app store was not compatible with GNU GPL? You can run GSL on macOS. I don't use macOS myself, but I know many who are actively using GSL on a macOS. As far as

Re: Checking GSL for Spectroscopy

2021-03-16 Thread Mohammad Akhlaghi
Hi Fritz, GSL is a low-level/fundamental/core numeric analysis library providing the low-level tools for numeric operations that are common in many different science applications. So for example in GNU Astronomy Utilities (that I am maintaining), we heavily rely on many of GSL's low-level to

Re: Checking GSL for Spectroscopy

2021-03-16 Thread Mohammad Akhlaghi
essing. I just want to track if any of it has been accommodated by existing routines, but I guess it is rather broad and subject to its own packages- Cheers Fritz On Tue, Mar 16, 2021 at 9:55 AM Mohammad Akhlaghi <mailto:moham...@akhlaghi.org>> wrote: Hi Fritz, GSL is a lo

Re: Checking GSL for Spectroscopy

2021-03-16 Thread Mohammad Akhlaghi
I remember reading a very nice and friendly description your rights (when using GPL'd software in your higher-level software) in the Texinfo manual and adopted it in Gnuastro's manual also: https://www.gnu.org/software/gnuastro/manual/html_node/Your-rights.html Here is a description of the ste

Re: Test release for GSL 2.8

2024-05-10 Thread Mohammad Akhlaghi
Dear Patrick, Thank you very much for sharing the good news about the new GSL release. I just configured, built and checked the tarball on an Arch GNU/Linux with GCC 14.1.1 and Glibc 2.39 (on 12 threads to speed it up): ./configure && make -j12 && make check -j12 There were no warnings or er

Re: Test release for GSL 2.8

2024-05-12 Thread Mohammad Akhlaghi
Thanks a lot! The compilation completed without any warnings and all tests passed on my Arch GNU/Linux with GCC 14.1.1 and Glibc 2.39. Cheers, Mohammad On 5/12/24 9:34 PM, Patrick Alken wrote: All, thank you for your testing reports. I believe I have addressed all the compiler warnings and o