From: <car...@us...> - 2012-04-05 21:45:23
|
Revision: 10154 http://octave.svn.sourceforge.net/octave/?rev=10154&view=rev Author: carandraug Date: 2012-04-05 21:45:17 +0000 (Thu, 05 Apr 2012) Log Message: ----------- fmin: deprecating in favour of fminbnd Modified Paths: -------------- trunk/octave-forge/main/optim/NEWS trunk/octave-forge/main/optim/inst/fmin.m Modified: trunk/octave-forge/main/optim/NEWS =================================================================== --- trunk/octave-forge/main/optim/NEWS 2012-04-05 19:26:23 UTC (rev 10153) +++ trunk/octave-forge/main/optim/NEWS 2012-04-05 21:45:17 UTC (rev 10154) @@ -10,6 +10,13 @@ fminunc_compat optimset_compat + ** The function `fmin' has been deprecated in favour of using `fminbnd' + directly. If one really wishes to use the short version, one can + easily create an alias on an octaverc file (see `doc startup') with + the following code + + function out=fmin(varargin) out=fminbnd(varargin{:}); endfunction + ** The package Makefile has been adapted for compatibility with Octave 3.6.0. ** Bugfixes on the functions: Modified: trunk/octave-forge/main/optim/inst/fmin.m =================================================================== --- trunk/octave-forge/main/optim/inst/fmin.m 2012-04-05 19:26:23 UTC (rev 10153) +++ trunk/octave-forge/main/optim/inst/fmin.m 2012-04-05 21:45:17 UTC (rev 10154) @@ -15,6 +15,13 @@ function ret=fmin(varargin) + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + "`fmin' has been deprecated, and will be removed in the future. Use `fminbnd' directly instead."); + endif + ## alias for fminbnd ret = fminbnd(varargin{:}); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |