Remove unneeded uses of feval

Detected and automatically fixed by MATLAB Code Analyzer app.
covariance-quadratic-approximation
Sébastien Villemot 2023-12-15 15:46:07 +01:00
parent 458926b17b
commit 20b2c79ffb
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ switch posterior_sampling_method
% check whether draw is valid and compute posterior
if all( proposed_par(:) > mh_bounds.lb(indices(blocks==block_iter,1),:) ) && all( proposed_par(:) < mh_bounds.ub(indices(blocks==block_iter,1),:) )
try
logpost = - feval('TaRB_optimizer_wrapper', proposed_par(:),...
logpost = - TaRB_optimizer_wrapper(proposed_par(:),...
current_draw,indices(blocks==block_iter,1),TargetFun,...% inputs for wrapper
varargin{:});
catch

View File

@ -1944,7 +1944,7 @@ end
% ---------------------------------------------------------------
function flush
if isoctave
feval('fflush', stdout);
fflush(stdout);
end
% ---------------------------------------------------------------