[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch : [...] = leval(name, list)
From: |
Paul Kienzle |
Subject: |
Re: patch : [...] = leval(name, list) |
Date: |
Tue, 23 Jan 2001 17:09:05 +0000 |
User-agent: |
Mutt/1.2.5i |
Etienne,
I would expect to see this function under the name "apply" in the file
ov-list.cc, and indeed, I have looked for it there. But maybe that's
just my lisp/scheme programming coming back to haunt me.
Note that you can do the same in Matlab using the syntax:
feval("name", list{:})
or just
name(list{:})
if you happen to know the name in your function. This is even more
flexible, though the syntax seems strange at first. Unfortunately,
it will be a hard thing to implement.
Paul Kienzle
address@hidden
On Sun, Dec 17, 2000 at 11:40:14AM +0000, Etienne Grossmann wrote:
>
> Hello,
>
> I got convinced that a function [...] = leval(name, list) offers
> more flexibility than [...] = feval(name, arg1,...,argn). For example,
> such a function is useful for minimization of a function that takes
> many arguments.
>
> I first implemented it as a leval.m which works fine, but puts an
> overhead of ~4ms (PII,350MHz), which I think is too much (there may be
> hundreds of calls to it).
>
> It turns out that "leval" is very simple to implement as a built-in:
> see the patch (against 2.1.32) below. It works fine : I append a test
> script too. Run it after setting "verbose=1".
>
> Does that patch meet the coding standards?
>
> Etienne
>
>
> ======================================================================
> ======================================================================
>
- Re: patch : [...] = leval(name, list),
Paul Kienzle <=