Skip to content

Commit

Permalink
fix logic of quick p check
Browse files Browse the repository at this point in the history
  • Loading branch information
tholden committed Oct 30, 2017
1 parent 6b40690 commit ffa8cd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/MChecks/InitialChecks.m
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,18 @@

QuickPCheckResult = true;
for i = 1 : 3
if any( IndicesToCheck <= 0 )
if any( IndicesToCheck(i,:) <= 0 )
continue
end
TmpSet = IndicesToCheck(1):IndicesToCheck(2);
TmpSet = IndicesToCheck(i,1):IndicesToCheck(i,2);
if UseVPA
TmpDet = double( det( vpa( Ms( TmpSet, TmpSet ) ) ) );
else
TmpDet = RobustDeterminantDD( Ms( TmpSet, TmpSet ) );
end
if TmpDet <= 0
QuickPCheckResult = false;
StartEndDet = [ IndicesToCheck, TmpDet ];
StartEndDet = [ IndicesToCheck(i,:), TmpDet ];
break
end
end
Expand Down

0 comments on commit ffa8cd1

Please sign in to comment.