sorry you're right.
On Thu, 17 Jun 2010, denis joubert wrote:
> Moving to gretl-develThat's not a problem. The lad() function needs the address of Z,
> because i found what is going on :
> in .h of libgretl i got this:
> MODEL lad(const int*, double***, DATAINFO*)
>
> but in lad.c module :
> int lad_driver (MODEL *pmod, double **Z, DATAINFO *pdinfo)
(named pZ) in order to do an initial OLS. It then dereferences pZ
and passes Z (of type double **) to lad_driver().
The trouble, I think, is just that gretl_rand_init() never got
called, because your program didn't do libgretl_init() on startup.
Note that you should also probably do libgretl_cleanup() when
you're finished with libgretl.
Allin
_______________________________________________
Gretl-devel mailing list
Gretl-devel@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel