MATRIX DATA: Fully implement.
[pspp] / src / language / data-io / matrix-reader.h
index 7a651d7866e2a320ee74a1203d9e5bef88687cf4..f3ac7000d57cef196f5db9976142caf4483312c8 100644 (file)
 
 struct matrix_material
 {
-  gsl_matrix *corr ;  /* The correlation matrix */
-  gsl_matrix *cov ;   /* The covariance matrix */
+  gsl_matrix *corr;             /* The correlation matrix */
+  gsl_matrix *cov;              /* The covariance matrix */
 
   /* Moment matrices */
-  const gsl_matrix *n ;           /* MOMENT 0 */
-  const gsl_matrix *mean_matrix;  /* MOMENT 1 */
-  const gsl_matrix *var_matrix;   /* MOMENT 2 */
+  gsl_matrix *n;                /* MOMENT 0 */
+  gsl_matrix *mean_matrix;      /* MOMENT 1 */
+  gsl_matrix *var_matrix;       /* MOMENT 2 */
 };
 
+#define MATRIX_MATERIAL_INIT { .corr = NULL }
+void matrix_material_uninit (struct matrix_material *);
+
 struct dictionary;
 struct variable;
 struct casereader;