Fix rank condition check, using default MATLAB tolerance (thanks to Jesper Linde and Malin Adolfson)

time-shift
Marco Ratto 2015-10-13 10:45:35 +02:00
parent bc8f546cbb
commit 61d6e49dfd
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ end
JJ1 = JJ(:,ind1);
[eu,ee2,ee1] = svd( JJ1, 0 );
condJ= cond(JJ1);
rankJ = rank(JJ./norm(JJ),1.e-10);
rankJ = rank(JJ);
rankJJ = rankJ;
% if hess_flag==0,
% rankJJ = rank(JJ'*JJ);