Mercurial > hg > pycsalgos
changeset 64:a115c982a0fd
Fixed bug in GAP: Lambdahat might get empty after row removing; in this case should stop and return current solution, otherwise it will raise an exception next time you try to remove rows
author | Nic Cleju <nikcleju@gmail.com> |
---|---|
date | Tue, 13 Mar 2012 16:18:11 +0200 |
parents | 2fc28e2ae0a2 |
children | 3d53309236c4 |
files | pyCSalgos/GAP/GAP.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pyCSalgos/GAP/GAP.py Mon Mar 12 16:42:12 2012 +0200 +++ b/pyCSalgos/GAP/GAP.py Tue Mar 13 16:18:11 2012 +0200 @@ -313,6 +313,10 @@ #figure(10); #imshow(reshape(real(xhat), n, n)); + # Added by Nic: if Lambdahat is empty here, return + if Lambdahat.size == 0: + break; + #return; return xhat,Lambdahat