| Top |
gretl_array * gretl_array_from_strings (char **S,int n,int copy,int *err);
void * gretl_array_get_element (gretl_array *A,int i,GretlType *type,int *err);
int gretl_array_set_element (gretl_array *A,int i,void *ptr,GretlType type,int copy);
int gretl_array_set_matrix (gretl_array *A,int i,gretl_matrix *m,int copy);
int gretl_array_append_matrix (gretl_array *A,gretl_matrix *m,int copy);
int gretl_array_set_bundle (gretl_array *A,int i,gretl_bundle *b,int copy);
int gretl_array_append_bundle (gretl_array *A,gretl_bundle *b,int copy);
int gretl_array_copy_as (const char *name,const char *copyname,GretlType copytype);
Look for a saved array specified by name
, and if found,
make a full copy and save it under copyname
. This is
called from geneval.c on completion of assignment to a
array named copyname
, where the returned value on the
right-hand side is a pre-existing array.
gretl_array * gretl_array_copy_range (gretl_array *A,int r1,int r2,int *err);
gretl_array * gretl_array_pull_from_stack (const char *name,int *err);