diff --git a/pbma.m b/pbma.m index 263e287..5e41d0b 100644 --- a/pbma.m +++ b/pbma.m @@ -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); @@ -153,6 +155,7 @@ satisfied=0; break; end + end end function isc=isconnected(connected,index,n)