On Tue, 8 Dec 2015, Sven Schreiber wrote:
Am 07.12.2015 um 11:11 schrieb Riccardo (Jack) Lucchetti:
> Dear all,
>
> I'm aware that backward-incompatibilty should in principle be avoided.
> However, it occurred to me that we introduced string arrays only after
> (more or less) clever workarounds to their absence. Typical cases are:
>
> * the modprint command
> * the varname() function (yes I know about varnames(), but it's a hack)
> * the jsonget() function
> * the labels command
> * the colnames() and rownames() function
With some of these functions/commands it's not clear to me right now how
string arrays would enter the picture, simply because I'm not too
familiar with some of these.
Mainly as a reminder to myself: it just occurred to me that it'd be very
beneficial to use matrix arrays to represent complex matrices in all the
cases where we resort to some degree of contortionism to that effect.
For example, eigengen(): I would favour a new function (say, eigengen2()),
in which we return a 3-elements matrix array (eigenvalues, left and right
eigenvectors) if the result is purely real and a 6-elements array if it's
complex, with elements 4, 5, and 6 holding the imaginary parts. Just
sayin'.
-------------------------------------------------------
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
-------------------------------------------------------