From: Jason Stover Date: Mon, 17 Apr 2006 16:29:36 +0000 (+0000) Subject: pspp_linreg_cache_free returns a boolean X-Git-Tag: v0.6.0~970 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e08ba3a0b4be7ebf4f049fa4ead1f0f1508bd7f8;p=pspp-builds.git pspp_linreg_cache_free returns a boolean --- diff --git a/src/math/linreg/ChangeLog b/src/math/linreg/ChangeLog index ca3a647c..b35a381b 100644 --- a/src/math/linreg/ChangeLog +++ b/src/math/linreg/ChangeLog @@ -1,3 +1,7 @@ +2006-04-17 Jason Stover + + * linreg.c (pspp_linreg_cache_free): Return a bool. + Sat Apr 15 18:03:01 2006 Ben Pfaff * predict.c (pspp_linreg_predict): Change prototype to match diff --git a/src/math/linreg/linreg.c b/src/math/linreg/linreg.c index aeaa9b8d..3e299157 100644 --- a/src/math/linreg/linreg.c +++ b/src/math/linreg/linreg.c @@ -121,7 +121,7 @@ pspp_linreg_cache_alloc (size_t n, size_t p) return c; } -void +bool pspp_linreg_cache_free (pspp_linreg_cache * c) { gsl_vector_free (c->indep_means); @@ -130,6 +130,7 @@ pspp_linreg_cache_free (pspp_linreg_cache * c) gsl_matrix_free (c->cov); pspp_linreg_coeff_free (c->coeff); free (c); + return true; } /* diff --git a/src/math/linreg/linreg.h b/src/math/linreg/linreg.h index 727d764c..67a422ea 100644 --- a/src/math/linreg/linreg.h +++ b/src/math/linreg/linreg.h @@ -20,7 +20,7 @@ #ifndef LINREG_H #define LINREG_H - +#include #include #include #include @@ -178,7 +178,7 @@ typedef struct pspp_linreg_cache_struct pspp_linreg_cache; */ pspp_linreg_cache *pspp_linreg_cache_alloc (size_t n, size_t p); -void pspp_linreg_cache_free (pspp_linreg_cache * c); +bool pspp_linreg_cache_free (pspp_linreg_cache * c); /* Fit the linear model via least squares. All pointers passed to pspp_linreg