octave-maintainers
[Top][All Lists]
Advanced

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

Re: gsl_ran_landau_pdf in octave-gsl


From: Julien Bect
Subject: Re: gsl_ran_landau_pdf in octave-gsl
Date: Mon, 7 Aug 2017 21:34:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Le 03/08/2017 à 11:46, TROCME Mathieu a écrit :

Hi there,

And thanks for maintaining and developing Octave.

I'm trying to integrate the function 'gsl_ran_landau_pdf'
https://www.gnu.org/software/gsl/manual/html_node/The-Landau-Distribution.html
to octave using the octave-gsl wrapper
https://sourceforge.net/p/octave/gsl/ci/1.0.8/tree/src/README
since this function is not (yet) available :
https://www.gnu.org/software/octave/doc/interpreter/Random-Number-Generation.html#Random-Number-Generation
https://octave.sourceforge.io/gsl/overview.html

I managed to successfully install octave-gsl using the following set of commands :
# sudo apt-get install mercurial autoconf liboctave-dev
# hg clone http://hg.code.sf.net/p/octave/gsl octave-gsl
# cd octave-gsl/src/
# ./bootstrap
# ./configure
# make
# cd ..
# make install

I also managed to add 'gsl_ran_landau_pdf' without any compilation error
# ./bootstrap && ./configure && make && cd .. && sudo \rm -rf /home/user/octave/gsl-2.0.0 && make install
## checking for gsl_ran_landau_pdf... yes
adding the following lines at the end of the file 'src/buildgsl_sf.sh'
#  export octave_name=gsl_sf_ran_landau_pdf
#  export    funcname=gsl_ran_landau_pdf
#  cat << \EOF > docstring.txt
#  This function computes the probability density p(x) at x for the Landau distribution.
#  See https://www.gnu.org/software/gsl/manual/html_node/The-Landau-Distribution.html
#  EOF
#  ${RT} D_DD >> gsl_sf.cc

Nevertheless I don't see the 'gsl_sf_ran_landau_pdf' function in octave :
# Octave
# >> pkg load gsl
# >> gsl_sf_ <TAB>

Could you please tell me what am I missing ?

Thanks for your time and consideration,
Mathieu

Hi Mathieu,

I will look into this.

But could you please prepare a changeset [1] for this and post it on the patch tracker [2] ?  Then we can continue the discussion on the tracker.

@++
Julien

[1] https://www.gnu.org/software/octave/doc/v4.0.3/Basics-of-Generating-a-Changeset.html

[2] https://savannah.gnu.org/patch/?group=octave



reply via email to

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