summaryrefslogtreecommitdiff
path: root/isl_mat.c
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@kotnet.org>2009-01-02 17:18:42 +0100
committerSven Verdoolaege <skimo@kotnet.org>2009-01-06 19:10:50 +0100
commit0a6ff650419d1b66f417356c2f8aeb6e7a7e7c80 (patch)
tree106570baecb3d1c2a33ee9911e931e27b1eda16d /isl_mat.c
parent2c1923a56d26585cc7a1810c8b98973e33e266a0 (diff)
downloadisl-0a6ff650419d1b66f417356c2f8aeb6e7a7e7c80.tar.gz
isl-0a6ff650419d1b66f417356c2f8aeb6e7a7e7c80.tar.bz2
isl-0a6ff650419d1b66f417356c2f8aeb6e7a7e7c80.zip
add isl_mat_col_submul
Diffstat (limited to 'isl_mat.c')
-rw-r--r--isl_mat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/isl_mat.c b/isl_mat.c
index 3fde011c..d825e785 100644
--- a/isl_mat.c
+++ b/isl_mat.c
@@ -835,3 +835,12 @@ struct isl_mat *isl_mat_drop_rows(struct isl_ctx *ctx, struct isl_mat *mat,
mat->n_row -= n;
return mat;
}
+
+void isl_mat_col_submul(struct isl_mat *mat,
+ int dst_col, isl_int f, int src_col)
+{
+ int i;
+
+ for (i = 0; i < mat->n_row; ++i)
+ isl_int_submul(mat->row[i][dst_col], f, mat->row[i][src_col]);
+}