Skip to content

Commit

Permalink
fixed bug in connected components stop condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kbatseli committed Mar 31, 2014
1 parent c59464b commit 305cf84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pbma.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@
ppindices(find(exponents(ii,:)))=ii;
end
end
ppindices(ppindices==0)=[]; % keep only indices of pure powers in B

for ii=1:length(ppindices)

if ppindices(ii) ~= 0

% determine connected components for each pure power in B
connected = b(ppindices(ii));
index=ppindices(ii);
Expand Down Expand Up @@ -153,6 +155,7 @@
satisfied=0;
break;
end
end
end

function isc=isconnected(connected,index,n)
Expand Down

0 comments on commit 305cf84

Please sign in to comment.