projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First step in making struct variable opaque: the boring mechanical
[pspp-builds.git]
/
src
/
math
/
coefficient.c
diff --git
a/src/math/coefficient.c
b/src/math/coefficient.c
index eb2ee3174e42721e9b74147807453dc09f64caab..f59c3645212d2774be8d1b49b536c5b5ca5978bb 100644
(file)
--- a/
src/math/coefficient.c
+++ b/
src/math/coefficient.c
@@
-71,7
+71,7
@@
pspp_coeff_init (struct pspp_coeff ** c, const struct design_matrix *X)
c[i]->v_info->v =
(const struct variable *) design_matrix_col_to_var (X, i);
c[i]->v_info->v =
(const struct variable *) design_matrix_col_to_var (X, i);
- if (
c[i]->v_info->v->type == ALPHA
)
+ if (
var_is_alpha (c[i]->v_info->v)
)
{
size_t k;
k = design_matrix_var_to_column (X, c[i]->v_info->v);
{
size_t k;
k = design_matrix_var_to_column (X, c[i]->v_info->v);
@@
-162,7
+162,7
@@
pspp_coeff_get_value (struct pspp_coeff *c,
{
return NULL;
}
{
return NULL;
}
- if (v
->type == NUMERIC
)
+ if (v
ar_is_numeric (v)
)
{
return NULL;
}
{
return NULL;
}
@@
-211,7
+211,7
@@
pspp_linreg_get_coeff (const pspp_linreg_cache * c,
{
return NULL;
}
{
return NULL;
}
- if (v
->type == NUMERIC
)
+ if (v
ar_is_numeric (v)
)
{
return result;
}
{
return result;
}
@@
-223,7
+223,7
@@
pspp_linreg_get_coeff (const pspp_linreg_cache * c,
*/
while (tmp->index != v->index && i < c->n_coeffs
&& compare_values (pspp_coeff_get_value (result, tmp),
*/
while (tmp->index != v->index && i < c->n_coeffs
&& compare_values (pspp_coeff_get_value (result, tmp),
- val, v
->width
))
+ val, v
ar_get_width (v)
))
{ /* FIX THIS */
i++;
result = c->coeff[i];
{ /* FIX THIS */
i++;
result = c->coeff[i];