pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] pspp/src/math/linreg linreg.c linreg.h


From: Jason H Stover
Subject: [Pspp-cvs] pspp/src/math/linreg linreg.c linreg.h
Date: Mon, 17 Apr 2006 16:29:36 +0000

CVSROOT:        /sources/pspp
Module name:    pspp
Branch:         
Changes by:     Jason H Stover <address@hidden> 06/04/17 16:29:36

Modified files:
        src/math/linreg: linreg.c linreg.h 

Log message:
        pspp_linreg_cache_free returns a boolean

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/pspp/src/math/linreg/linreg.c.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/pspp/pspp/src/math/linreg/linreg.h.diff?tr1=1.7&tr2=1.8&r1=text&r2=text

Patches:
Index: pspp/src/math/linreg/linreg.c
diff -u pspp/src/math/linreg/linreg.c:1.7 pspp/src/math/linreg/linreg.c:1.8
--- pspp/src/math/linreg/linreg.c:1.7   Sun Apr  9 19:47:50 2006
+++ pspp/src/math/linreg/linreg.c       Mon Apr 17 16:29:36 2006
@@ -121,7 +121,7 @@
   return c;
 }
 
-void
+bool
 pspp_linreg_cache_free (pspp_linreg_cache * c)
 {
   gsl_vector_free (c->indep_means);
@@ -130,6 +130,7 @@
   gsl_matrix_free (c->cov);
   pspp_linreg_coeff_free (c->coeff);
   free (c);
+  return true;
 }
 
 /*
Index: pspp/src/math/linreg/linreg.h
diff -u pspp/src/math/linreg/linreg.h:1.7 pspp/src/math/linreg/linreg.h:1.8
--- pspp/src/math/linreg/linreg.h:1.7   Sun Apr 16 01:05:15 2006
+++ pspp/src/math/linreg/linreg.h       Mon Apr 17 16:29:36 2006
@@ -20,7 +20,7 @@
 
 #ifndef LINREG_H
 #define LINREG_H
-
+#include <stdbool.h>
 #include <gsl/gsl_math.h>
 #include <gsl/gsl_vector.h>
 #include <gsl/gsl_matrix.h>
@@ -178,7 +178,7 @@
  */
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]