stochastic_solvers.m: Suppress redundant warning if order was already set to 1

time-shift
Johannes Pfeifer 2017-04-25 20:16:10 +02:00
parent 5bae0a8cb1
commit 6ca415ce14
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ if options_.linear
end
local_order = options_.order;
if M_.hessian_eq_zero
if M_.hessian_eq_zero && local_order~=1
local_order = 1;
warning('stochastic_solvers: using order = 1 because Hessian is equal to zero');
end