comparison scripts/sparse/svds.m @ 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 c8bbab6b9e7a
children 9deb214ae9d5
comparison
equal deleted inserted replaced
17192:397bbb215632 17193:6992c1bb4773
139 [m, n] = size (A); 139 [m, n] = size (A);
140 max_a = max (abs (nonzeros (A))); 140 max_a = max (abs (nonzeros (A)));
141 if (isempty (max_a)) 141 if (isempty (max_a))
142 max_a = 0; 142 max_a = 0;
143 endif 143 endif
144 ## Must initialize variable value, otherwise it may appear to interpreter
145 ## that code is trying to call flag() colormap function.
146 flag = 0;
144 147
145 if (max_a == 0) 148 if (max_a == 0)
146 s = zeros (k, 1); # special case of zero matrix 149 s = zeros (k, 1); # special case of zero matrix
147 else 150 else
148 if (nargin < 2) 151 if (nargin < 2)