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 ...@@ -678,6 +678,9 @@ while 1
end end
if ksm || kc>=mxtc if ksm || kc>=mxtc
exitflag=-3; exitflag=-3;
% don't return with NaN or Inf despite error code
if trx if trx
x=x'; x=x';
end 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