isl_set_coefficients: rename "dim" variable to "space"
[isl.git] / isl_mat_private.h
blob0da733e1dcdbe0210761191a1c67531a65c5f26f
1 #include <isl/mat.h>
2 #include <isl_blk.h>
4 struct isl_mat {
5 int ref;
7 struct isl_ctx *ctx;
9 #define ISL_MAT_BORROWED (1 << 0)
10 unsigned flags;
12 unsigned n_row;
13 unsigned n_col;
15 isl_int **row;
17 /* actual size of the rows in memory; n_col <= max_col */
18 unsigned max_col;
20 struct isl_blk block;
23 __isl_give isl_mat *isl_mat_sub_alloc(__isl_keep isl_mat *mat,
24 unsigned first_row, unsigned n_row, unsigned first_col, unsigned n_col);
25 __isl_give isl_mat *isl_mat_sub_alloc6(isl_ctx *ctx, isl_int **row,
26 unsigned first_row, unsigned n_row, unsigned first_col, unsigned n_col);
27 void isl_mat_sub_copy(struct isl_ctx *ctx, isl_int **dst, isl_int **src,
28 unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col);
29 void isl_mat_sub_neg(struct isl_ctx *ctx, isl_int **dst, isl_int **src,
30 unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col);
31 __isl_give isl_mat *isl_mat_diag(isl_ctx *ctx, unsigned n_row, isl_int d);
33 __isl_give isl_mat *isl_mat_scale_down_row(__isl_take isl_mat *mat, int row,
34 isl_int m);
36 void isl_mat_col_mul(struct isl_mat *mat, int dst_col, isl_int f, int src_col);
37 void isl_mat_col_submul(struct isl_mat *mat,
38 int dst_col, isl_int f, int src_col);
40 int isl_mat_get_element(__isl_keep isl_mat *mat, int row, int col, isl_int *v);
41 __isl_give isl_mat *isl_mat_set_element(__isl_take isl_mat *mat,
42 int row, int col, isl_int v);