Hi all,
I just thought it might be nice to extend the scope of some functions we
have. Take rows(), which returns a scalar. Why not have it return a vector
when applied to a matrix array? Of course the same could be done with
cols().
Other functions that could be extended similarly (altough I'm less certain
of the usefulness of such extension) are mlag() and transp().
Note that we already do this in a different context with the strlen()
function, but maybe there is some pitfall I can't think of right now, so
I'd very much like to hear the community's opinion.
-------------------------------------------------------
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
-------------------------------------------------------