debian/0000755000000000000000000000000012302707310007161 5ustar debian/octave-gsl.docs0000644000000000000000000000001711727440256012112 0ustar doc/gsl_sf.pdf debian/copyright0000644000000000000000000000444311727441437011140 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: GSL package for Octave Upstream-Contact: Teemu Ikonen Source: http://octave.sourceforge.net/gsl/index.html Files: * Copyright: 2004 Teemu Ikonen 2008 Raymond E. Rogers License: GPL-2+ Files: doc/texinfo.tex.max Copyright: 1985, 86, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 Free Software Foundation, Inc. License: GPL-2+ Files: debian/* Copyright: 2008 Ólafur Jens Sigurðsson 2008-2011 Thomas Weber 2008-2012 Rafael Laboissiere 2012 Sébastien Villemot License: GPL-3+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; If not, see . . On Debian systems, the complete text of the GNU General Public License, version 2, can be found in the file `/usr/share/common-licenses/GPL-2'. License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, see . . On Debian systems, the complete text of the GNU General Public License, version 3, can be found in the file `/usr/share/common-licenses/GPL-3'. debian/changelog0000644000000000000000000001004012302707310011026 0ustar octave-gsl (1.0.8-5build1) trusty; urgency=medium * Rebuild for octave 3.8. -- Matthias Klose Mon, 24 Feb 2014 18:26:16 +0000 octave-gsl (1.0.8-5) unstable; urgency=low [ Rafael Laboissiere ] * debian/clean: Remove this useless file * debian/watch: Use the SourceForge redirector * debian/patches/add-bessel-zero-Jnu.patch: New patch from upstream SVN * Add Lintian overrides for false positives on hardening flags [ Sébastien Villemot ] * Register PDF doc through doc-base -- Sébastien Villemot Mon, 28 May 2012 16:01:47 +0000 octave-gsl (1.0.8-4) unstable; urgency=low [ Rafael Laboissiere ] * Add script for checking the functions ellint and hyperg * Add patch for avoiding the use of the deprecated function split [ Sébastien Villemot ] * Imported Upstream version 1.0.8 * Add Sébastien Villemot to Uploaders * Bump to debhelper compat level 9 * Build-depend on octave-pkg-dev >= 1.0.0, to compile against Octave 3.6 * Bump Standards-Version to 3.9.3, no changes needed * debian/copyright: update to machine-readable format 1.0 -- Thomas Weber Mon, 12 Mar 2012 23:08:43 +0100 octave-gsl (1.0.8-3) unstable; urgency=low * debian/control: - Remove Rafael Laboissiere from Uploaders (Closes: #571930) - Remove Ólafur Jens Sigurðsson from Uploaders * Switch to dpkg-source 3.0 (quilt) format * Bump Standards-Version to 3.9.1 (no changes needed) -- Thomas Weber Sun, 10 Apr 2011 14:53:11 +0200 octave-gsl (1.0.8-2) unstable; urgency=low [ Rafael Laboissiere ] * debian/control: Build-depend on octave-pkg-dev >= 0.7.0, such that the package is built against octave3.2 [ Thomas Weber ] * Remove code for removal of unneeded documentation sources via from debian/rules - with the changes to octave-pkg-dev, only explicitly listed files in octave-gsl.docs are installed. -- Thomas Weber Fri, 04 Dec 2009 00:54:24 +0100 octave-gsl (1.0.8-1) unstable; urgency=low * New upstream release * debian/control: + (Standards-Version): Bump to 3.8.1 (no changes needed) + (Depends): Add ${misc:Depends} + (Vcs-Git, Vcs-Browser): Adjust to new Git repository * debian/rules: Remove the unneeded documentation sources, which are installed in /usr/share/doc * debian/copyright: + Use DEP5 URL in Format-Specification + Use separate License stanzas for instructing about the location of the different licenses used in the package -- Rafael Laboissiere Sun, 24 May 2009 14:28:05 +0200 octave-gsl (1.0.7-2) unstable; urgency=low [ Rafael Laboissiere ] * debian/copyright: Add header * debian/control: Bump build-dependency on octave-pkg-dev to >= 0.6.4, such that the package is built with the versioned packages directory [ Thomas Weber ] * Upload to unstable -- Thomas Weber Sat, 04 Apr 2009 23:05:32 +0200 octave-gsl (1.0.7-1) experimental; urgency=low [ Rafael Laboissiere ] * debian/rules: Use debian/clean instead of manually cleaning files * debian/compat, debian/control: Bump build-dependency on debhelper to >= 7.0.0, otherwise debian/clean is moot * debian/clean: New file * debian/control: Bump Standards-Version to 3.8.0 (no changes needed) [ Thomas Weber ] * New upstream release * Bump dependency on octave-pkg-dev to 0.6.1, to get the experimental version -- Thomas Weber Sun, 07 Dec 2008 21:46:10 +0100 octave-gsl (1.0.6.4) unstable; urgency=low * Remove supderfluos ls command from debian/rules, used for debugging. -- Thomas Weber Tue, 13 May 2008 15:35:46 +0200 octave-gsl (1.0.6-1) unstable; urgency=low * New upstream release. -- Thomas Weber Tue, 13 May 2008 14:47:09 +0200 octave-gsl (1.0.4) unstable; urgency=low * Initial release (closes: #468502) -- Ólafur Jens Sigurðsson Sat, 09 Feb 2008 13:05:04 +0100 debian/check.m0000644000000000000000000000022311727440256010426 0ustar cd inst dirs = {"ellint", "hyperg"}; for i = 1 : length (dirs) printf ("[%s]\n", dirs {i}) source (sprintf ("test_%s.m", dirs {i})) endfor debian/compat0000644000000000000000000000000211727440377010400 0ustar 9 debian/patches/0000755000000000000000000000000011760715711010623 5ustar debian/patches/add-bessel-zero-Jnu.patch0000644000000000000000000001221211760715711015354 0ustar Description: Add binding for the bessel_zero_Jnu function Author: Carnë Draug Origin: upstream http://octave.svn.sourceforge.net/viewvc/octave?view=revision&revision=10530 Last-Update: 2012-05-28 --- octave-gsl-1.0.8.orig/INDEX +++ octave-gsl-1.0.8/INDEX @@ -36,6 +36,7 @@ Special functions bessel_yl bessel_zero_J0 bessel_zero_J1 + bessel_zero_Jnu beta_gsl clausen conicalP_0 --- octave-gsl-1.0.8.orig/PKG_ADD +++ octave-gsl-1.0.8/PKG_ADD @@ -30,6 +30,7 @@ autoload ("bessel_Yn", fullfile (filepar autoload ("bessel_Ynu", fullfile (fileparts (mfilename ("fullpath")), "gsl_sf.oct")); autoload ("bessel_zero_J0", fullfile (fileparts (mfilename ("fullpath")), "gsl_sf.oct")); autoload ("bessel_zero_J1", fullfile (fileparts (mfilename ("fullpath")), "gsl_sf.oct")); +autoload ("bessel_zero_Jnu", fullfile (fileparts (mfilename ("fullpath")), "gsl_sf.oct")); autoload ("beta_gsl", fullfile (fileparts (mfilename ("fullpath")), "gsl_sf.oct")); autoload ("Chi", fullfile (fileparts (mfilename ("fullpath")), "gsl_sf.oct")); autoload ("Ci", fullfile (fileparts (mfilename ("fullpath")), "gsl_sf.oct")); --- octave-gsl-1.0.8.orig/src/buildgsl_sf.sh +++ octave-gsl-1.0.8/src/buildgsl_sf.sh @@ -1183,6 +1183,17 @@ EOF ./replace_template.sh int_int_double_to_double.cc.template >> gsl_sf.cc +# (double, int) to double + +export octave_name=bessel_zero_Jnu +export funcname=gsl_sf_bessel_zero_Jnu +cat << \EOF > docstring.txt +These routines compute the location of the n-th positive zero of the +Bessel function J_x(). +EOF +./replace_template.sh double_int_to_double.cc.template >> gsl_sf.cc + + export octave_name=hyperg_U export funcname=gsl_sf_hyperg_U cat << \EOF > docstring.txt --- /dev/null +++ octave-gsl-1.0.8/src/double_int_to_double.cc.template @@ -0,0 +1,112 @@ +DEFUN_DLD(GSL_OCTAVE_NAME, args, nargout, "\ + -*- texinfo -*-\n\ +@deftypefn {Loadable Function} {@var{y} =} GSL_OCTAVE_NAME (@var{x}, @var{n})\n\ +@deftypefnx {Loadable Function} {[@var{y}, @var{err}] =} GSL_OCTAVE_NAME (@dots{})\n\ +\n\ +GSL_FUNC_DOCSTRING +\n\ +@var{err} contains an estimate of the absolute error in the value @var{y}.\n\ +\n\ +This function is from the GNU Scientific Library,\n\ +see @url{http://www.gnu.org/software/gsl/} for documentation.\n\ +@end deftypefn\n\ +") +{ + int i; + dim_vector dv; + + gsl_set_error_handler (octave_gsl_errorhandler); + + if(args.length() != 2) { + print_usage (); + return octave_value(); + } + if(!args(0).is_real_type() || !args(1).is_real_type()) { + error("The arguments must be real."); + print_usage (); + return octave_value(); + } + + // Nice combinatorial explosion here + NDArray x = args(0).array_value(); + NDArray n = args(1).array_value(); + if(n.length() == x.length()) { + dv = x.dims(); + NDArray y(dv); + int len = x.length(); + if(nargout < 2) { + for(i = 0; i < len; i++) { + y.xelem(i) = GSL_FUNC_NAME (x.xelem(i), + static_cast(n.xelem(i))); + } + return octave_value(y); + } else { + NDArray err(dv); + gsl_sf_result result; + octave_value_list retval; + for(i = 0; i < len; i++) { + GSL_FUNC_NAME_e (x.xelem(i), + static_cast(n.xelem(i)), &result); + y.xelem(i) = result.val; + err.xelem(i) = result.err; + } + retval(1) = octave_value(err); + retval(0) = octave_value(y); + return retval; + } + } else if(n.length() == 1) { + dv = x.dims(); + NDArray y(dv); + int len = x.length(); + int nint = static_cast(n.xelem(0)); + if(nargout < 2) { + for(i = 0; i < len; i++) { + y.xelem(i) = GSL_FUNC_NAME (x.xelem(i), nint); + } + return octave_value(y); + } else { + NDArray err(dv); + gsl_sf_result result; + octave_value_list retval; + for(i = 0; i < len; i++) { + GSL_FUNC_NAME_e (x.xelem(i), nint, &result); + y.xelem(i) = result.val; + err.xelem(i) = result.err; + } + retval(1) = octave_value(err); + retval(0) = octave_value(y); + return retval; + } + } else if(x.length() == 1) { + dv = n.dims(); + NDArray y(dv); + int len = n.length(); + double xdouble = x.xelem(0); + if(nargout < 2) { + for(i = 0; i < len; i++) { + y.xelem(i) = GSL_FUNC_NAME (xdouble, + static_cast(n.xelem(i))); + } + return octave_value(y); + } else { + NDArray err(dv); + gsl_sf_result result; + octave_value_list retval; + for(i = 0; i < len; i++) { + GSL_FUNC_NAME_e (xdouble, + static_cast(n.xelem(i)), &result); + y.xelem(i) = result.val; + err.xelem(i) = result.err; + } + retval(1) = octave_value(err); + retval(0) = octave_value(y); + return retval; + } + } else { + error("First and second argument must either have the same size, or one of them must be scalar."); + print_usage (); + } + + return octave_value(); + +} debian/patches/avoid-deprecated-split.patch0000644000000000000000000000342211727440256016200 0ustar Description: Do not use the deprecated function split This split function has been deprecated since Octave 3.2 and has been removed from Octave 3.6. Use char(strsplit()) instead. Author: Rafael Laboissiere Uploaders: Thomas Weber , Sébastien Villemot DM-Upload-Allowed: yes Build-Depends: debhelper (>= 9), cdbs, octave-pkg-dev (>= 1.0.0), libgsl0-dev Standards-Version: 3.9.3 Homepage: http://octave.sourceforge.net/gsl Vcs-Git: git://git.debian.org/git/pkg-octave/octave-gsl.git Vcs-Browser: http://git.debian.org/?p=pkg-octave/octave-gsl.git Package: octave-gsl Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, ${octave:Depends} Description: GSL binding for Octave This package provides bindings to the GNU Scientific Library for Octave, a numerical computation software. The GSL is a collection of routines for numerical analysis. . This Octave add-on package is part of the Octave-Forge project. debian/octave-gsl.lintian-overrides0000644000000000000000000000016311760715711014620 0ustar octave-gsl: hardening-no-stackprotector * octave-gsl: hardening-no-fortify-functions * debian/rules0000755000000000000000000000012611727440256010255 0ustar #!/usr/bin/make -f # -*- makefile -*- include /usr/share/cdbs/1/class/octave-pkg.mk debian/source/0000755000000000000000000000000011727440256010476 5ustar debian/source/format0000644000000000000000000000001411727440256011704 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000006111760715711010222 0ustar version=3 http://sf.net/octave/gsl-(.+)\.tar\.gz debian/octave-gsl.doc-base0000644000000000000000000000024311760720210012624 0ustar Document: octave-gsl Title: Octave bindings to the GNU Scientific Library Section: Science/Mathematics Format: PDF Files: /usr/share/doc/octave-gsl/gsl_sf.pdf.gz