German Translation, Add-ons
by Sven Schreiber
Hi,
I'm glad that I apparently made it in time for the upcoming release to
finish the overdue update of the German translation. I think that was my
first git push ever.
The issue of some weeks ago still seems to remain, however, namely that
I translated some strings that came from the SVAR add-on, but I still
see the English strings in the freshly built version. Only the first
line of the SVAR dialog window has changed (from "Structural VARs" to
"Strukturelle VARs"), not the menu entry nor the other strings in the
window (the labels of the function arguments).
cheers,
sven
8 years, 8 months
"catch" in a user-defined function
by Artur T.
Dear all,
I've got a function which involves matrix inversion and is frequently
called in loop. From time to time matrix inversion, however, fails. Thus
I tried to use the catch command similar to this tiny example:
<hansl>
function matrix matI(matrix mat)
return inv(mat)
end function
mat = zeros(2,2)
scalar err = 0
catch mI = matI(mat)
err = $error
if err==0
printf "WORKS \n"
else
printf "FAILS \n"
endif
</hansl>
In this example-script everything works fine. However, in my larger
script involving many different things before function "matI" is called,
gretl stops giving me the error message:
<gretl-output>
Unmatched "endif"
</gretl-output>
and the corresponding terminal output (using latest CVS on ubuntu) is:
<terminal>
gretl_invert_symmetric_matrix: dpotrf failed with info = 2 (n = 2)
dsycon: rcond = 5.47239e-18
gretl_clipboard_get: info = 0 (TARGET_UTF8_STRING)
gretl_clipboard_get: info = 0 (TARGET_UTF8_STRING)
</terminal>
Unfortunately I am not able to reproduce this error in a smaller example
script.
Artur
8 years, 8 months
jsonget question
by Allin Cottrell
Having fixed some problems with jsonget() lately, I have one more
question: I'm not sure exactly when we should flag an error versus
no error but return an empty string.
If we get a duff json string on which json-glib chokes, that's
obviously an error. And I think getting a node of a type we can't
handle (not a string, not numeric -- if that's ever actually seen)
should also produce an error. But what about no match to the query,
or a match that gives a null node?
Since Jack seems to have a good stock of examples -- and/or a good
imagination for constructing them -- maybe he could experiment a
little and see if we're arguably doing the wrong thing under certain
conditions.
Allin
8 years, 8 months
freeze with R foreign block
by Sven Schreiber
Hi,
I'm experiencing a freeze (control is never returned to the user/me)
when I invoke R from gretl via 'foreign', something that I have done
successfully in the past (some time ago).
An empty
<hansl>
foreign language=R
end foreign
</hansl>
block is enough, but also if I load a dataset first and try to print the
data inside R with 'print(gretldata)' it happens.
This is last week's snapshot on Win7. Any ideas?
Thanks,
sven
8 years, 8 months
eval (10^-5)^2
by oleg_komashko@ukr.net
Dear all,
It seems to be a non-standard
precedence:
(10^-5)^2 is evaluated as 10^((-5)^2)
Oleh
8 years, 8 months
gqtest 0.17
by oleg_komashko@ukr.net
Dear Sven
I simply deleted a couple
of lines with the data file
Everybody have already seen
the answer coincided
So, only simulated data are left
No it's gfn rather than zip
Oleh
8 years, 8 months
null default for matrices while packaging
by oleg_komashko@ukr.net
Dear all,
This is a stub for trial "package":
function void mymatr(int x, matrix ma[null])
if isnull(ma)
txt = "null matrix"
print txt
else
print ma
endif
end function
The packages editor GUI dislikes [null]:
After saving .gfn in "Edit function code" window
I have:
function void mymatr (int x,
matrix ma)
if isnull(ma)
txt = "null matrix"
print txt
else
print ma
endif
end function
[null] vanished
Oleh
8 years, 8 months
limited memory bfgs
by oleg_komashko@ukr.net
Dear all,
The User's Guide, 31.1, says
Limited-memory variant
See Byrd et al. (1995) (. . . FIXME: expand a little here . . . )
Is it not implemented yet, or just not described?
If the latter is true, how to use it?
Thanks,
Oleh
8 years, 9 months
where is "time" reserved?
by oleg_komashko@ukr.net
Dear all,
I couldn't find "time"
in the lists of reserved words, commands and functions.
Nevertheless, I can't make a function, called "time"
Where is it reserved?
Oleh
8 years, 9 months