Long story short: for creating a series that contains the minimum
between x and y the shortest way we have is to use
<hansl>
series m = x < y ? x : y
</hansl>
which is nice, but I just realised that maybe some people would find it
more intuitive to use the xmin() function, as in "series m = xmin(x,
y)". The function, however, is at present scalar-only.
So I wrote a patch to extend xmin() and xmax() to series, matrices and
scalars, pretty much in the same way atan2() works. The patch is attached.
Comments are obviously welcome. If nobody stops me, I'll push the change
to git master tomorrow.
-------------------------------------------------------
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
-------------------------------------------------------