Skip to content
Snippets Groups Projects
Commit e8c3758f authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

disclyap_fast.m: fix check for convergence with NaN

[skip CI]
parent 766fff88
Branches
No related tags found
1 merge request!1872disclyap_fast.m: fix check for convergence with NaN
Pipeline #5476 skipped
......@@ -59,7 +59,7 @@ while matd > tol && iter< max_iter
A0=A1;
iter=iter+1;
end
if iter==max_iter
if iter==max_iter || isnan(matd)
X=NaN(size(P0));
exitflag=1;
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment