Mercurial > hg > octave-lyh
changeset 17193:6992c1bb4773
svds.m: Initialize flag variable so interpreter doesn't use flag() colormap instead.
* scripts/sparse/svds.m: Initialize flag variable so interpreter doesn't use
flag() colormap instead.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 05 Aug 2013 14:18:50 -0700 |
parents | 397bbb215632 |
children | c954b0a396a2 |
files | scripts/sparse/svds.m |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/sparse/svds.m +++ b/scripts/sparse/svds.m @@ -141,6 +141,9 @@ if (isempty (max_a)) max_a = 0; endif + ## Must initialize variable value, otherwise it may appear to interpreter + ## that code is trying to call flag() colormap function. + flag = 0; if (max_a == 0) s = zeros (k, 1); # special case of zero matrix