struct gqlambda {
  double *theta; /* learning weights */
  double *w;     /* learning weights */
  double *e;     /* elegibility trace vector */
  int n;         /* dimensionality of the vectors */
};

void init_GQlambda(struct gqlambda * gq, int n);
void GQlearn(struct gqlambda * gq, const double phi[], const double phi_bar[], const double lambda, const double gamma, const double R, const double rho, const double I);
void delete_GQlambda(struct gqlambda * gq);


