X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcovariance.c;h=67a9fe9f219bf843d7f7ad7ea484851cbf8350b0;hb=e80c032386b6524fe760efc6f10bd9adb8a6ac20;hp=44787c679a2a107acd5ef4eb1f7888c12ffbf366;hpb=2c4b104df57f2e8b5ed2afa50819294aaac4aa6c;p=pspp diff --git a/src/math/covariance.c b/src/math/covariance.c index 44787c679a..67a9fe9f21 100644 --- a/src/math/covariance.c +++ b/src/math/covariance.c @@ -129,7 +129,7 @@ struct covariance be identical. If missing values are involved, then element (i,j) is the moment of the i th variable, when paired with the j th variable. */ -const gsl_matrix * +gsl_matrix * covariance_moments (const struct covariance *cov, int m) { return cov->moments[m]; @@ -145,7 +145,7 @@ covariance_1pass_create (size_t n_vars, const struct variable *const *vars, bool centered) { size_t i; - struct covariance *cov = xzalloc (sizeof *cov); + struct covariance *cov = XZALLOC (struct covariance); cov->centered = centered; cov->passes = 1;