[Gretl-devel] matrix declaration in a pakage
Ignacio Diaz-Emparanza
ignacio.diaz-emparanza at ehu.es
Tue Jul 10 06:09:37 EDT 2007
On Monday 09 July 2007 21:35:27 Allin Cottrell wrote:
> On Mon, 9 Jul 2007, Ignacio Diaz-Emparanza wrote:
> > On Saturday 07 July 2007 00:04:37 Allin Cottrell wrote:
> > > On Fri, 6 Jul 2007, Ignacio Diaz-Emparanza wrote:
> > > > I tried now with the current Windows snaphot and the problem is
> > > > there...
> > >
> > > I may have failed to do a proper update with the last Windows
> > > build. There is now a new one in place. I've tested it on XP
> > > (both in English and in Spanish, just to make sure!) and I'm
> > > getting the correct behaviour.
> > >
> > > Allin.
> >
> > ??
> > I obtain "unespecified error" with this version as well.
>
> I have no idea what's happening here, but I have built another
> version that has more some error checks.
>
> http://ricardo.ecn.wfu.edu/pub/gretl/gretl_install.exe
>
> Allin
Sorry I think yesterday I didn't refresh the internet explorer cache so I
didn't download the updated file.
I just downloaded now, correctly, the current windows snaphot and the matrix
declaration problem seems to be solved. But something else has been broken
(in Windows and Linux):
I cannot use a parameter "series *Y" in the package.
I modified the simple "matrixdec" package to show you this problem, you may
find it in the attachment. The output of the PACKAGE execution (with series
Ct from data3-6) is:
-------------
? matrix inreg
? cc = matrixdec2(Ct, &inreg)
argv[0] is of wrong type (got series, should be series *)
Los tipos de datos no tienen la estructura adecuada para poder
realizar la operación
-------------
(The data types have not the proper structure to do the
operation)
It seems like the package is not passing correctly the "&" symbol to gretl.
This occurs in Windows, but now also in Linux.
--
Ignacio Diaz-Emparanza
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU
Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013732 | F.: +34 946013754
www.et.bs.ehu.es
-------------- next part --------------
<?xml version="1.0" encoding="UTF-8"?>
<gretl-functions>
<gretl-function-package name="matrixdec2" ID="1184060255" minver="1.6.5">
<author>Ignacio</author>
<version>1.0</version>
<date>2007-07-10</date>
<description>New beta testing of some package features</description>
<gretl-function name="matrixdec2" private="0">
<params count="2">
<param name="Y" type="seriesref"/>
<param name="inreg" type="matrixref"/>
</params>
<return name="Y" type="series"/>
<code>matrix inreg = I(3)
scalar lo = lastobs(Y)
scalar lo1 = lastobs(Y)+1
genr Y[lo] = lo1
</code>
</gretl-function>
</gretl-function-package>
</gretl-functions>
More information about the Gretl-devel
mailing list