Mercurial > hg > octave-lyh
changeset 5963:b3478d7a0486
[project @ 2006-08-24 17:09:18 by jwe]
author | jwe |
---|---|
date | Thu, 24 Aug 2006 17:09:18 +0000 |
parents | 2289cafef60d |
children | 3ffedee0aef7 |
files | scripts/ChangeLog scripts/linear-algebra/krylov.m scripts/set/setdiff.m scripts/specfun/factorial.m |
diffstat | 4 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -5,8 +5,11 @@ 2006-08-24 Søren Hauberg <soren@hauberg.org> - * miscellaneous/bincoeff.m: Use logical indexing instead of - indices computed by calling find on the logical index. + * miscellaneous/bincoeff.m, set/setdiff.m, specfun/factorial.m: + Use logical indexing instead of indices computed by calling find + on the logical index. + + * linear-algebra/krylov.m: Delete unused local var nzidx. 2006-08-23 Quentin Spencer <qspencer@ieee.org>
--- a/scripts/linear-algebra/krylov.m +++ b/scripts/linear-algebra/krylov.m @@ -95,7 +95,6 @@ # identify trivial null space abm = max (abs ([A, V]')); - nzidx = find (abm != 0); zidx = find (abm == 0); # set up vector of pivot points
--- a/scripts/set/setdiff.m +++ b/scripts/set/setdiff.m @@ -56,7 +56,7 @@ [dummy, idx] = sortrows ([c; b]); ## Eliminate those elements of a that are the same as in b. n = length (dummy); - c(idx(find (dummy(1:n-1) == dummy(2:n))), :) = []; + c(idx(dummy(1:n-1) == dummy(2:n)), :) = []; endif else c = unique (a); @@ -66,7 +66,7 @@ [dummy, idx] = sort ([c(:); b(:)]); ## Eliminate those elements of a that are the same as in b. n = length (dummy); - c(idx(find (dummy(1:n-1) == dummy(2:n)))) = []; + c(idx(dummy(1:n-1) == dummy(2:n))) = []; ## Reshape if necessary. if (size (c, 1) != 1 && size (b, 1) == 1) c = c.';