isinf(X)~= ⇔ isinf(X).

covariance-quadratic-approximation
Stéphane Adjemian (Ryûk) 2023-12-16 23:34:07 +01:00
parent b6619b342b
commit c841f1474c
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
4 changed files with 5 additions and 5 deletions

View File

@ -789,7 +789,7 @@ if imag(LIK)~=0
return
end
if isinf(LIK)~=0
if isinf(LIK)
fval = Inf;
info(1) = 50;
info(4) = 0.1;

View File

@ -303,7 +303,7 @@ if imag(fval)~=0
return
end
if isinf(fval)~=0
if isinf(fval)
fval = Inf;
info(1) = 50;
info(4) = 0.1;

View File

@ -77,7 +77,7 @@ try
warning('off','MATLAB:singularMatrix');
UAVinv=inv(C2); % i.e. inv(U02'*a1*V02)
[LastWarningTxt, LastWarningID]=lastwarn;
if any(any(isinf(UAVinv)))==1
if any(any(isinf(UAVinv)))
singular=1;
end
end

View File

@ -72,7 +72,7 @@ try
else
UAVinv=inv(C2);
[LastWarningTxt, LastWarningID]=lastwarn;
if any(any(isinf(UAVinv)))==1
if any(any(isinf(UAVinv)))
singular=1;
end
end
@ -86,4 +86,4 @@ catch
[errmsg, errcode]=lasterr;
warning(['error callig PI_gensys_singularC: ' errmsg ],'errcode');
error('errcode',['error callig PI_gensys_singularC: ' errmsg ]);
end
end