Removed useless output arguments from numerical gradient routines.
parent
fd5dc8c14a
commit
a15808b2ce
|
@ -1,11 +1,10 @@
|
|||
function [g, badg] = numgrad2(fcn,f0,x,epsilon,varargin)
|
||||
% function [g badg] = numgrad2(fcn,xvarargin)
|
||||
|
||||
% Original file downloaded from:
|
||||
% http://sims.princeton.edu/yftp/optimize/mfiles/numgrad.m
|
||||
|
||||
% Copyright (C) 1993-2007 Christopher Sims
|
||||
% Copyright (C) 2008-2013 Dynare Team
|
||||
% Copyright (C) 2008-2014 Dynare Team
|
||||
%
|
||||
% This file is part of Dynare.
|
||||
%
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function [g, badg, f0, f1, f2] = numgrad3(fcn,f0,x,epsilon,varargin)
|
||||
function [g, badg] = numgrad3(fcn,f0,x,epsilon,varargin)
|
||||
% Computes the gradient of the objective function fcn using a three points
|
||||
% formula if possible.
|
||||
%
|
||||
|
@ -11,7 +11,7 @@ function [g, badg, f0, f1, f2] = numgrad3(fcn,f0,x,epsilon,varargin)
|
|||
% http://sims.princeton.edu/yftp/optimize/mfiles/numgrad.m
|
||||
|
||||
% Copyright (C) 1993-2007 Christopher Sims
|
||||
% Copyright (C) 2008-2012 Dynare Team
|
||||
% Copyright (C) 2008-2014 Dynare Team
|
||||
%
|
||||
% This file is part of Dynare.
|
||||
%
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function [g, badg, f0, f1, f2] = numgrad3_(fcn,f0,x,epsilon,varargin)
|
||||
function [g, badg] = numgrad3_(fcn,f0,x,epsilon,varargin)
|
||||
% Computes the gradient of the objective function fcn using a three points
|
||||
% formula if possible.
|
||||
%
|
||||
|
@ -11,7 +11,7 @@ function [g, badg, f0, f1, f2] = numgrad3_(fcn,f0,x,epsilon,varargin)
|
|||
% http://sims.princeton.edu/yftp/optimize/mfiles/numgrad.m
|
||||
|
||||
% Copyright (C) 1993-2007 Christopher Sims
|
||||
% Copyright (C) 2008-2012 Dynare Team
|
||||
% Copyright (C) 2008-2014 Dynare Team
|
||||
%
|
||||
% This file is part of Dynare.
|
||||
%
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function [g, badg, f0, f1, f2, f3, f4] = numgrad5(fcn,f0,x,epsilon,varargin)
|
||||
function [g, badg] = numgrad5(fcn,f0,x,epsilon,varargin)
|
||||
% Computes the gradient of the objective function fcn using a five points
|
||||
% formula if possible.
|
||||
%
|
||||
|
@ -13,7 +13,7 @@ function [g, badg, f0, f1, f2, f3, f4] = numgrad5(fcn,f0,x,epsilon,varargin)
|
|||
% http://sims.princeton.edu/yftp/optimize/mfiles/numgrad.m
|
||||
|
||||
% Copyright (C) 1993-2007 Christopher Sims
|
||||
% Copyright (C) 2008-2012 Dynare Team
|
||||
% Copyright (C) 2008-2014 Dynare Team
|
||||
|
||||
% This file is part of Dynare.
|
||||
%
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function [g, badg, f0, f1, f2, f3, f4] = numgrad5(fcn,f0,x,epsilon,varargin)
|
||||
function [g, badg] = numgrad5(fcn,f0,x,epsilon,varargin)
|
||||
% Computes the gradient of the objective function fcn using a five points
|
||||
% formula if possible.
|
||||
%
|
||||
|
@ -13,7 +13,7 @@ function [g, badg, f0, f1, f2, f3, f4] = numgrad5(fcn,f0,x,epsilon,varargin)
|
|||
% http://sims.princeton.edu/yftp/optimize/mfiles/numgrad.m
|
||||
|
||||
% Copyright (C) 1993-2007 Christopher Sims
|
||||
% Copyright (C) 2008-2012 Dynare Team
|
||||
% Copyright (C) 2008-2014 Dynare Team
|
||||
%
|
||||
% This file is part of Dynare.
|
||||
%
|
||||
|
|
Loading…
Reference in New Issue