[Pkg-octave-devel] Bug#500252: octave-nan: std should accept an empty second arg

Francesco Potorti` Potorti at isti.cnr.it
Fri Sep 26 15:46:54 UTC 2008


Package: octave-nan
Version: 1.0.6-1
Severity: normal

The following patch is needed to respect the syntax of Octave 3.0 std:

diff -pu /usr/share/octave/packages/nan-1.0.6/std.m\~ /usr/share/octave/packages/nan-1.0.6/std.m
--- /usr/share/octave/packages/nan-1.0.6/std.m~	2008-05-16 16:09:51.000000000 +0200
+++ /usr/share/octave/packages/nan-1.0.6/std.m	2008-09-26 17:12:36.000000000 +0200
@@ -59,7 +59,7 @@ end;
 
 [y,n] = sumskipnan(center(x,DIM).^2,DIM);
 
-if nargin<2,
+if (nargin<2 || isempty(opt)),
         opt = 0;
 end;
 

Without it, one gets this when nan is loaded:

octave3.1> pkg load nan
octave3.1> std ([1;2], [])
ans =  NaN
octave3.1> statistics ([1;2])
ans =

   1.00000
   1.00000
   1.50000
   2.00000
   2.00000
   1.50000
   NaN
   0.00000
  -2.50000



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=it_IT at euro (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages octave-nan depends on:
ii  libatlas3gf-base [libl 3.6.0-22          Automatically Tuned Linear Algebra
ii  libblas3gf [libblas.so 1.2-2             Basic Linear Algebra Subroutines 3
ii  libc6                  2.7-13            GNU C Library: Shared libraries
ii  libfftw3-3             3.1.2-3.1         library for computing Fast Fourier
ii  libgcc1                1:4.3.1-9         GCC support library
ii  libgfortran3           4.3.1-9           Runtime library for GNU Fortran ap
ii  libhdf5-serial-1.6.6-0 1.6.6-4           Hierarchical Data Format 5 (HDF5) 
ii  liblapack3gf [liblapac 3.1.1-1           library of linear algebra routines
ii  libncurses5            5.6+20080830-1    shared libraries for terminal hand
ii  libreadline5           5.2-3             GNU readline and history libraries
ii  libstdc++6             4.3.1-9           The GNU Standard C++ Library v3
ii  octave3.0              1:3.0.1-6lenny1   GNU Octave language for numerical 
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

octave-nan recommends no packages.

octave-nan suggests no packages.

-- no debconf information





More information about the Pkg-octave-devel mailing list