X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fdesign-matrix.c;h=8195a4088db246b1d8f67012d1da5b26ee306a0f;hb=428b694be3fe5ab2b4ba430f3a1d12d60a8e510c;hp=df68287b36e04e8077db317fa780cfeb648553b5;hpb=ccdebe6fb14add7beff4294d2b65cdec43c44c77;p=pspp-builds.git diff --git a/src/math/design-matrix.c b/src/math/design-matrix.c index df68287b..8195a408 100644 --- a/src/math/design-matrix.c +++ b/src/math/design-matrix.c @@ -258,4 +258,16 @@ design_matrix_get_case_count (const struct design_matrix *dm, const struct varia return dm->n_cases[i]; } - +size_t +design_matrix_get_n_cols (const struct design_matrix *d) +{ + return d->m->size2; +} + +size_t +design_matrix_get_n_rows (const struct design_matrix *d) +{ + return d->m->size1; +} + +