[Gretl-devel] matrix declaration in a pakage
Ignacio Diaz-Emparanza
ignacio.diaz-emparanza at ehu.es
Tue Jul 10 10:05:09 EDT 2007
On Tuesday 10 July 2007 15:01:54 Allin Cottrell wrote:
> On Tue, 10 Jul 2007, Ignacio Diaz-Emparanza wrote:
> > Sorry I think yesterday I didn't refresh the internet explorer cache so I
> > didn't download the updated file.
>
> OK, good to hear.
>
> > 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...
>
> Thanks, this is now fixed.
>
> Allin.
Sorry, I think it is not all good jet. If there is a parameter without the "*"
in the function, an error is produced.
---------
? sal5 = matrixdec3(&Ct, &Yt, &inreg)
argv[1] is of wrong type (got series *, should be series)
Los tipos de datos no tienen la estructura adecuada para poder
realizar la operación
--------
--
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="matrixdec3" 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="matrixdec3" private="0">
<params count="3">
<param name="Y" type="seriesref"/>
<param name="X" type="series"/>
<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