glm.c:get_ssq Remove unnecessary assignment
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 23 Nov 2011 12:41:28 +0000 (13:41 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 23 Nov 2011 18:49:02 +0000 (19:49 +0100)
src/language/stats/glm.c

index fd5870c137d95f1d72aee239136ff497206abf76..f0311f8249439edff1896af75adb689eaf1b1926 100644 (file)
@@ -416,8 +416,7 @@ get_ssq (struct covariance *cov, gsl_vector *ssq, const struct glm_spec *cmd)
        }
 
       model_cov = gsl_matrix_alloc (cm->size1 - n_dropped_model, cm->size2 - n_dropped_model);
-      gsl_matrix_set (model_cov, 0, 0, gsl_matrix_get (cm, 0, 0));
-      submodel_cov = gsl_matrix_calloc (cm->size1 - n_dropped_submodel, cm->size2 - n_dropped_submodel);
+      submodel_cov = gsl_matrix_alloc (cm->size1 - n_dropped_submodel, cm->size2 - n_dropped_submodel);
 
       fill_submatrix (cm, model_cov,    model_dropped);
       fill_submatrix (cm, submodel_cov, submodel_dropped);