+2006-04-17 Jason Stover <jhs@math.gcsu.edu>
+
+ * linreg.c (pspp_linreg_cache_free): Return a bool.
+
Sat Apr 15 18:03:01 2006 Ben Pfaff <blp@gnu.org>
* predict.c (pspp_linreg_predict): Change prototype to match
return c;
}
-void
+bool
pspp_linreg_cache_free (pspp_linreg_cache * c)
{
gsl_vector_free (c->indep_means);
gsl_matrix_free (c->cov);
pspp_linreg_coeff_free (c->coeff);
free (c);
+ return true;
}
/*
#ifndef LINREG_H
#define LINREG_H
-
+#include <stdbool.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
*/
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