On Mon, 12 Feb 2018, Sven Schreiber wrote:
Am 12.02.2018 um 00:28 schrieb Sven Schreiber:
> I'd be interested in an analogous solution for Julia in a foreign block!
OK, responding to myself, since Julia is close enough to Python to get this
done quickly. Attached is an extended version of the JIT tests with foreign.
Allin, it seems there is a problem in gretl_io.jl in the gretl_export
function. AFAICS 'size(M)' will be empty in Julia for a scalar M, and
therefore the assignment 'r,c = size(M)' fails then.
The gretl_export() function for Julia is explicitly designed for
matrices. But given a scalar x one could do
gretl_export(fill(x,1,1), "x.mat")
(I'm not aware of any equivalent of R's "as.matrix" in Julia.)
Allin