static struct idata *
idata_alloc (size_t n_vars)
{
- struct idata *id = xzalloc (sizeof (*id));
+ struct idata *id = XZALLOC (struct idata);
id->n_extractions = 0;
id->msr = gsl_vector_alloc (n_vars);
/* Returns a newly allocated matrix identical to M.
- It it the callers responsibility to free the returned value.
+ It is the callers responsibility to free the returned value.
*/
static gsl_matrix *
matrix_dup (const gsl_matrix *m)
}
if (factor->print & PRINT_DETERMINANT)
- table->caption = pivot_value_new_user_text_nocopy (
- xasprintf ("%s: %.2f", _("Determinant"), idata->detR));
+ {
+ struct pivot_value *caption = pivot_value_new_user_text_nocopy (
+ xasprintf ("%s: %.2f", _("Determinant"), idata->detR));
+ pivot_table_set_caption (table, caption);
+ }
pivot_table_submit (table);
}
if (!idata->mm.cov && !(idata->mm.corr && idata->mm.var_matrix))
{
msg (ME, _("The dataset has no covariance matrix or a "
- "correlation matrix along with standard devications."));
+ "correlation matrix along with standard deviations."));
return;
}