From 4fd67a999a859ccecd0b1b048eeb9bd1dd761a53 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 3 Aug 2010 11:47:16 +0200 Subject: [PATCH] add isl_mat_add_rows Signed-off-by: Sven Verdoolaege --- include/isl_mat.h | 1 + isl_mat.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/include/isl_mat.h b/include/isl_mat.h index afbbffd9..c9d65a48 100644 --- a/include/isl_mat.h +++ b/include/isl_mat.h @@ -91,6 +91,7 @@ __isl_give isl_mat *isl_mat_insert_rows(__isl_take isl_mat *mat, unsigned row, unsigned n); __isl_give isl_mat *isl_mat_move_cols(__isl_take isl_mat *mat, unsigned dst_col, unsigned src_col, unsigned n); +__isl_give isl_mat *isl_mat_add_rows(__isl_take isl_mat *mat, unsigned n); __isl_give isl_mat *isl_mat_add_zero_cols(__isl_take isl_mat *mat, unsigned n); void isl_mat_col_mul(struct isl_mat *mat, int dst_col, isl_int f, int src_col); diff --git a/isl_mat.c b/isl_mat.c index 31bc8096..51c2ab8e 100644 --- a/isl_mat.c +++ b/isl_mat.c @@ -1176,6 +1176,14 @@ error: return NULL; } +__isl_give isl_mat *isl_mat_add_rows(__isl_take isl_mat *mat, unsigned n) +{ + if (!mat) + return NULL; + + return isl_mat_insert_rows(mat, mat->n_row, n); +} + void isl_mat_col_submul(struct isl_mat *mat, int dst_col, isl_int f, int src_col) { -- 2.11.4.GIT