Commit a89f21b5 authored by Johannes Pfeifer 's avatar Johannes Pfeifer
Browse files

solvopt.m: prevent returning with inf

parent 371fdb22
......@@ -678,6 +678,9 @@ while 1
end
if ksm || kc>=mxtc
exitflag=-3;
% don't return with NaN or Inf despite error code
x=x1;
f=f1;
if trx
x=x';
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment