Functions
model_data_scalar()
#define model_data_scalar(i) (i > R_MAX && i < M_SCALAR_MAX)
model_data_series()
#define model_data_series(i) (i > M_SCALAR_MAX && i < M_SERIES_MAX)
model_data_matrix()
#define model_data_matrix(i) (i > M_SERIES_MAX && i < M_MATRIX_MAX)
model_data_matrix_builder()
#define model_data_matrix_builder(i) (i > M_MATRIX_MAX && i < M_MBUILD_MAX)
model_data_list()
#define model_data_list(i) (i > M_MBUILD_MAX && i < M_LIST_MAX)
model_data_string()
#define model_data_string(i) (i > M_LIST_MAX && i < M_PARNAMES)
model_data_array()
#define model_data_array(i) (i == M_PARNAMES)
destroy_genr ()
void
destroy_genr (GENERATOR *genr
);
genr_get_output_varnum ()
int
genr_get_output_varnum (const GENERATOR *genr
);
genr_get_output_scalar ()
double
genr_get_output_scalar (const GENERATOR *genr
);
genr_get_last_output_type ()
GretlType
genr_get_last_output_type (void
);
series_index ()
int
series_index (const DATASET *dset
,
const char *varname
);
Returns
the ID number of the variable whose name is given,
or the next available ID number if there is no variable of
that name.
series_greatest_index ()
int
series_greatest_index (const DATASET *dset
,
const char *varname
);
Returns
the ID number of the variable whose name is given,
or the next available ID number if there is no variable of
that name. In contrast to series_index()
this variant searches
down from the greatest current series ID.
current_series_index ()
int
current_series_index (const DATASET *dset
,
const char *vname
);
caller_series_index ()
int
caller_series_index (const DATASET *dset
,
const char *vname
);
Returns
the ID number of the series whose name is given,
at the caller's level of function execution, or -1 if there's
no matching series.
extract_varname ()
int
extract_varname (char *targ
,
const char *src
,
int *len
);
Writes up to VNAMELEN - 1 characters from s
into vname
.
Returns
0 on success, non-zero if the number of valid varname
characters in s
is greater than VNAMELEN - 1.
genr_fit_resid ()
int
genr_fit_resid (const MODEL *pmod
,
DATASET *dset
,
ModelDataIndex idx
);
Adds residuals or fitted values or squared residuals from a
given model to the data set.
Returns
0 on successful completion, error code on error.
evaluate_scalar_genr ()
double
evaluate_scalar_genr (GENERATOR *genr
,
DATASET *dset
,
PRN *prn
,
int *err
);
evaluate_if_cond ()
double
evaluate_if_cond (GENERATOR *genr
,
DATASET *dset
,
PRN *prn
,
int *err
);
generate_scalar ()
double
generate_scalar (const char *s
,
DATASET *dset
,
int *err
);
generate_boolean ()
double
generate_boolean (const char *s
,
DATASET *dset
,
PRN *prn
,
int *err
);
generate_int ()
int
generate_int (const char *s
,
DATASET *dset
,
int *err
);
generate_void ()
int
generate_void (const char *s
,
DATASET *dset
,
PRN *prn
);
generate_series ()
double *
generate_series (const char *s
,
DATASET *dset
,
PRN *prn
,
int *err
);
generate_string ()
char *
generate_string (const char *s
,
DATASET *dset
,
int *err
);
generate_list ()
int *
generate_list (const char *s
,
DATASET *dset
,
int ci
,
int *err
);
gretl_is_series ()
int
gretl_is_series (const char *name
,
const DATASET *dset
);
gretl_reserved_word ()
int
gretl_reserved_word (const char *str
);
Returns
non-zero if str
is a reserved word that cannot
figure as the name of a user-defined variable, otherwise 0.
genr_special_word ()
int
genr_special_word (const char *s
);
genr_function_word ()
int
genr_function_word (const char *s
);
genr_no_assign ()
int
genr_no_assign (const GENERATOR *p
);
genr_is_autoregressive ()
int
genr_is_autoregressive (const GENERATOR *p
);
genr_set_na_check ()
void
genr_set_na_check (GENERATOR *genr
);
genr_unset_na_check ()
void
genr_unset_na_check (GENERATOR *genr
);
genr_reset_uvars ()
void
genr_reset_uvars (GENERATOR *genr
);
function_lookup ()
int
function_lookup (const char *s
);
is_function_alias ()
int
is_function_alias (const char *s
);
const_lookup ()
int
const_lookup (const char *s
);
get_const_by_name ()
double
get_const_by_name (const char *name
,
int *err
);
gretl_function_complete ()
const char *
gretl_function_complete (const char *s
);
gretl_function_hash_cleanup ()
void
gretl_function_hash_cleanup (void
);
set_mpi_rank_and_size ()
void
set_mpi_rank_and_size (int rank
,
int size
);