From bug-octave-request at bevo dot che dot wisc dot edu Mon Nov 17 08:50:51 2003 Subject: possible bug in rank.m From: Gabriele Pannocchia To: bug-octave at bevo dot che dot wisc dot edu Date: Mon, 17 Nov 2003 15:48:31 +0100 Hi all, I just downloaded and installed octave-2.1.51 (i686-pc-linux-gnu). I ran into the following error, which may or may not be a bug. BUG DESCRIPTION: octave:1> rank(eye(1)) error: octave_base_value::array_value(): wrong type argument `bool' error: evaluating assignment expression near line 49, column 10 error: called from `rank' in file `/usr/share/octave/2.1.51/m/linear-algebra/rank.m' I seem to have the same error if I pass any vector: octave:2> rank([1,2]) error: octave_base_value::array_value(): wrong type argument `bool' error: evaluating assignment expression near line 49, column 10 error: called from `rank' in file `/usr/share/octave/2.1.51/m/linear-algebra/rank.m' If instead, I supply a matrix the result is correct: octave:2> a=[1,2;1,1];rank(a) ans = 2 MACHINE & INSTALLATION DETAILS: uname -m = i686 uname -r = 2.4.18-4GB uname -s = Linux ./configure --prefix="/usr" --enable-shared --enable-lite-kernel --enable-rpath "make" and "make install" went fine. BUG FIX: unknown Thanks, Gabriele Pannocchia ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------