Allin Cottrell schrieb:
On Sat, 28 Apr 2007, Sven Schreiber wrote:
> The one that is missing is py4gretl_vecdecomp, because I found
out that
> gretl seems to have a 4KB line length limit (regarding script files
> invoked with the "run" command) -- which is understandable, but
> sometimes breaks the (admittedly) clumsy way how py4gretl_vecdecomp
> passes the calculated time series from Numpy back to gretl in a
> temporary text file. Would that limitation be easy to lift, or should I
> think of a way to work around that?
Don't know offhand; I'll take a look.
Actually, I think it would only make sense to change gretl for that if
it turns out to be possible to (more or less) abolish the restriction
entirely. (For example, such that everything up to 1MB per line would be
okay.) Otherwise py4gretl_vecdecomp would still fail for large datasets
(say, financial high-frequency data), and that would not be a nice
solution. If that's possible to achieve, I have no idea. Note that
changing the way how py4gretl gets new series back into gretl would be
definitely possible, but of course would cause some work as well.
> * why is "#" in a matrix definition line invalid?
Where would you expect it to be valid? I would expect it to work
as a comment, and here it does:
? matrix M = I(3) # identity matrix
matrix M = I(3)
Generated matrix M
Well that seems to depend on a blank before the '#':
? matrix M = I(3)# identity matrix
matrix M = I(3)#
Ungültiges Zeichen '#'
^^^^^^^^^^^
(= "invalid character '#'")
> * out of curiosity: has the behavior of printf in combination
> with a matrix changed? Earlier I believe it would print out all
> elements, now only the first one.
I'm surprised it works at all -- that it prints out the first
element is some sort of strange freebie. So far as I'm aware it
never printed the whole matrix.
Well I now rely on the fact that at least it's capable to print out a
single matrix element (equivalent to a scalar in that respect I guess),
looping over all rows and columns. Please don't change that in the
future :-)
cheers,
Sven