X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flinreg.c;h=f60672e2ca8ae736940ca7b19a1f9693ede3d2de;hb=c59cff49b708d5d5b6fbb7345b425b9fd8d85fcf;hp=d1e0dae980e1e12c03e312b0fcbf7fd6139b6fb7;hpb=5dbf5abcbed01f04422d4dead1c0ae0bb7efde4f;p=pspp diff --git a/src/math/linreg.c b/src/math/linreg.c index d1e0dae980..f60672e2ca 100644 --- a/src/math/linreg.c +++ b/src/math/linreg.c @@ -275,11 +275,11 @@ linreg_predict (const struct linreg *c, const double *vals, size_t n_vals) size_t j; double result; - assert (n_vals == c->n_coeffs); if (vals == NULL || c == NULL) { return GSL_NAN; } + assert (n_vals == c->n_coeffs); if (c->coeff == NULL) { /* The stupid model: just guess the mean. */ @@ -445,7 +445,7 @@ linreg_fit (const gsl_matrix *cov, struct linreg *l) linreg_fit_qr (cov, l); } else -#endif +#endif { gsl_matrix *params = gsl_matrix_calloc (cov->size1, cov->size2); gsl_matrix_memcpy (params, cov);