projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
828f40a
)
Use const consistently in linreg routines, to avert warnings.
author
Ben Pfaff
<blp@gnu.org>
Sun, 12 Oct 2008 03:44:07 +0000
(20:44 -0700)
committer
Ben Pfaff
<blp@gnu.org>
Sun, 12 Oct 2008 03:59:20 +0000
(20:59 -0700)
src/math/linreg.c
patch
|
blob
|
history
src/math/linreg.h
patch
|
blob
|
history
diff --git
a/src/math/linreg.c
b/src/math/linreg.c
index 306ef31306d0ceca972d344313b44ebec2795fec..f2897e8e8d2461cd3c4a4484335bcca2bb0ba1c3 100644
(file)
--- a/
src/math/linreg.c
+++ b/
src/math/linreg.c
@@
-96,10
+96,10
@@
linreg_mean_std (gsl_vector_const_view v, double *mp, double *sp, double *ssp)
The return value is the number of distinct variables found.
*/
int
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_;
{
const pspp_linreg_cache *c = c_;
- struct variable *tmp;
+
const
struct variable *tmp;
int i;
int j;
int result = 0;
int i;
int j;
int result = 0;
@@
-663,7
+663,7
@@
void pspp_linreg_set_indep_variable_mean (pspp_linreg_cache *c, const struct var
static struct design_matrix *
rearrange_covariance_matrix (const struct design_matrix *cov, pspp_linreg_cache *c)
{
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;
struct design_matrix *result;
size_t *permutation;
size_t i;
diff --git
a/src/math/linreg.h
b/src/math/linreg.h
index a9577d648372dc640056fc07762405ccc0aff6c1..adb9f16d8bf1c3fb7de898c75c64cb7e2c3ecd2c 100644
(file)
--- a/
src/math/linreg.h
+++ b/
src/math/linreg.h
@@
-199,7
+199,7
@@
pspp_linreg_residual (const struct variable **, const union value **,
/*
All variables used in the model.
*/
/*
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
*,
struct pspp_coeff *pspp_linreg_get_coeff (const pspp_linreg_cache
*,