tor, 25 02 2010 kl. 12:30 +0100, skrev Olaf Till:
> On Mon, Feb 22, 2010 at 12:37:38PM +0100, Olaf Till wrote:
> > Hi,
> >
> > there are non-function scripts with demos and tests in package
> > optim. These can not be correctly handled by Octaves help system and
> > produce weird texts in the auto-generated html-help. It has been
> > suggested to convert these scripts into %!demo and %!test blocks as
> > the cleanest solution. This applies to the following scripts:
> >
> > - bfgsmin_example.m
> >
> > - samin_example.m
> >
> > - cg_min_example_[123].m
> >
> > - test_d2_min_[123].m
> >
> > - test_fminunc_1.m
> >
> > - test_min_[1234].m
> >
> > - test_minimize_1.m
> >
> > - test_nelder_mead_min_[12].m
> >
> > - expdemo.m
> >
> > - test_wpolyfit.m
> >
> > Would the authors have the time to make this change or to indicate if
> > some scripts are not needed (some functions have %!demo blocks _and_
> > demo-scripts).
>
> I've tried to do it myself, but have given up for now, since I see no
> working way to define functions within a demo block (despite the demo
> helptext).
I've removed the following demos:
cg_min_example_1.m
cg_min_example_2.m
cg_min_example_3.m
expdemo.m
leasqrdemo.m
wpolyfitdemo.m
I used anonymous functions instead of the previous declarations. This
simplified the code a bit as there was no longer any need for global
variables. I guess this also makes the demos better documentation.
There are still a bunch of demos/tests left, but they seemed less
suitable for a rewrite using anonymous functions. Some of the demos had
functions with multible output arguments, which I don't think can be
written as anonymous functions.
Søren
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev