isl_input.c: read_aff_domain: remove spurious vars_free on error path
[isl.git] / isl_mat_private.h
blobf27f29af902075cb8d3a7e628f211c6679d4bd16
1 #include <isl/mat.h>
3 struct isl_mat {
4 int ref;
6 struct isl_ctx *ctx;
8 #define ISL_MAT_BORROWED (1 << 0)
9 unsigned flags;
11 unsigned n_row;
12 unsigned n_col;
14 isl_int **row;
16 /* actual size of the rows in memory; n_col <= max_col */
17 unsigned max_col;
19 struct isl_blk block;
22 __isl_give isl_mat *isl_mat_sub_alloc(__isl_keep isl_mat *mat,
23 unsigned first_row, unsigned n_row, unsigned first_col, unsigned n_col);
24 __isl_give isl_mat *isl_mat_sub_alloc6(isl_ctx *ctx, isl_int **row,
25 unsigned first_row, unsigned n_row, unsigned first_col, unsigned n_col);
26 void isl_mat_sub_copy(struct isl_ctx *ctx, isl_int **dst, isl_int **src,
27 unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col);
28 void isl_mat_sub_neg(struct isl_ctx *ctx, isl_int **dst, isl_int **src,
29 unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col);
30 __isl_give isl_mat *isl_mat_diag(isl_ctx *ctx, unsigned n_row, isl_int d);