[Gretl-users] trouble with matrix functions
Allin Cottrell
cottrell at wfu.edu
Wed Jan 30 17:06:02 EST 2008
On Wed, 30 Jan 2008, Riccardo (Jack) Lucchetti wrote:
> There has been some work recently in the area of casting a 1x1
> matrix to a scalar, and a few bugs were fixed. Try using 1.7.1,
> or perhaps the snapshot version. Alternatively, try what happens
> after substituting the line
>
> matrix erlog = vecun + (coeffaids[4,1]).*(1/what[,1])
>
> with...
> scalar tmp = coeffaids[4,1]
> matrix erlog = vecun + tmp./what[,1]
A version which (I think) should work with earlier gretl is
scalar tmp = coeffaids[4,1]
matrix er = vecun + tmp/what[,1]
The dot operators are mostly needed only when both operands
are matrices: if one is a scalar then dot is implied. However,
this may not be totally consistent in earlier versions.
Allin Cottrell
More information about the Gretl-users
mailing list