# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1360600214 18000 # Node ID dd583c258cf97125780c5757e4d20584db78af65 # Parent 999f8257313b51bdfe1ca17a758b9f3f291c7de1 Fix trivial typo in run-octave.in comment diff --git a/run-octave.in b/run-octave.in --- a/run-octave.in +++ b/run-octave.in @@ -63,7 +63,7 @@ shift elif [ "x$1" = "x-gud2" ]; then ## The latest version of gud needs -i=mi. There isn't a good way to check - ## this at configure time, so we just add a gdb2 flag + ## this at configure time, so we just add a gud2 flag driver="gdb -i=mi --args" shift elif [ "x$1" = "x-valgrind" ]; then diff --git a/scripts/sparse/sprandsym.m b/scripts/sparse/sprandsym.m --- a/scripts/sparse/sprandsym.m +++ b/scripts/sparse/sprandsym.m @@ -127,6 +127,12 @@ ## Compute the stuff described above a = n*(n - 1)/2; d = [mod(k,2):2:min(n,k)-2]; + + ## Since we + if (isempty (d)) + keyboard + endif + m = (k - d)/2; q = (n - d).*(n - d - 1).*m ./ (d + 2)./(d + 1)./(a - m + 1);