The return value is the number of distinct variables found.
*/
int
-pspp_linreg_get_vars (const void *c_, struct variable **v)
+pspp_linreg_get_vars (const void *c_, const struct variable **v)
{
const pspp_linreg_cache *c = c_;
- struct variable *tmp;
+ const struct variable *tmp;
int i;
int j;
int result = 0;
static struct design_matrix *
rearrange_covariance_matrix (const struct design_matrix *cov, pspp_linreg_cache *c)
{
- struct variable **model_vars;
+ const struct variable **model_vars;
struct design_matrix *result;
size_t *permutation;
size_t i;
/*
All variables used in the model.
*/
-int pspp_linreg_get_vars (const void *, struct variable **);
+int pspp_linreg_get_vars (const void *, const struct variable **);
struct pspp_coeff *pspp_linreg_get_coeff (const pspp_linreg_cache
*,