On Sun, 13 Jun 2021, Sven Schreiber wrote:
On 13.06.21 23:34, Riccardo (Jack) Lucchetti wrote:
> On Sun, 13 Jun 2021, Sven Schreiber wrote:
>
>> Am 13.06.2021 um 18:45 schrieb Summers, Peter:
>>> Once everything’s finalized I’d be glad to update the
>>> matlab_utilities package to include this functionality (which is
>>> very nice, btw).
>>
>> OK, excellent. We'll be glad to offer assistance if something's not
>> clear, for example how to add the dependency on the 'extra' addon to
>> your package, if indeed the new function will live there.
>
> If matlab_utilities included a dependency on extra, we could just add
> nchoosek() as a wrapper, using the new "numeric" type to tell apart
> the cases when to use bincoeff() and the choose() or combinations()
> function from extra.
>
Good idea, although nobody here knows about the generic "numeric" type
yet, I guess. (But it's in the changelog alright) This would require
brand new gretl 2021b, however.
Hmm, true.
Anyway: in the meantime I pushed to git (in the combinations-to-extra
branch) a slightly modified version which avoids recursion in the h=2 case
and speeds things up a little in simple cases.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------