octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSL in octave


From: Julien Bect
Subject: Re: GSL in octave
Date: Tue, 26 Jul 2016 08:21:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0

Le 26/07/2016 à 04:24, Susi Lehtola a écrit :
On 07/25/2016 02:15 PM, Nir Krakauer wrote:
Installing works for me in OS X Homebrew, and I don't get this warning.
"help legendre_sphPlm_array" produces what I assume was intended:

 -- Loadable Function: Y = legendre_sphPlm_array (LMAX, M, X)

     This function computes an array of normalized associated Legendre

     functions sqrt((2l+1)/(4*pi)) * sqrt((l-m)!/(l+m)!) Plm (x) for m

     >= 0, l = |m|, ..., lmax, |x| <= 1.0


     This function is from the GNU Scientific Library, see

     `http://www.gnu.org/software/gsl/' for documentation.

The problem must then be related to the GSL 2 function, legendre_array.
-- 

Ok, I get it now.

Depending on the GSL_MAJOR_VERSION flag, you have a DEFUN_DLD that defines either "legendre_sphPlm_array" or "legendre_array".  In both cases, the oct-file is named "legendre_sphPlm_array.oct".

Now that the problem has been located, a few thoughts:

* I think both functions must be provided if possible (legendre_sphPlm_array is deprecated, but still available).

* This issue will be more elegantly dealt with while integrating your patch named "Add in a bunch of array functions".  I see that you have introduced templates for _array functions, why not deal with legendre_sphPlm_array / legendre_array in a similar way ?

@++
Julien


reply via email to

[Prev in Thread] Current Thread [Next in Thread]