12 #if defined(__cplusplus)
19 #define ISL_MAT_BORROWED (1 << 0)
30 struct isl_mat *isl_mat_alloc(struct isl_ctx *ctx,
31 unsigned n_row, unsigned n_col);
32 struct isl_mat *isl_mat_identity(struct isl_ctx *ctx, unsigned n_row);
33 struct isl_mat *isl_mat_copy(struct isl_ctx *ctx, struct isl_mat *mat);
34 struct isl_mat *isl_mat_cow(struct isl_ctx *ctx, struct isl_mat *mat);
35 void isl_mat_free(struct isl_ctx *ctx, struct isl_mat *mat);
37 struct isl_mat *isl_mat_sub_alloc(struct isl_ctx *ctx, isl_int **row,
38 unsigned first_row, unsigned n_row, unsigned first_col, unsigned n_col);
39 void isl_mat_sub_copy(struct isl_ctx *ctx, isl_int **dst, isl_int **src,
40 unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col);
41 void isl_mat_sub_neg(struct isl_ctx *ctx, isl_int **dst, isl_int **src,
42 unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col);
44 struct isl_mat *isl_mat_swap_rows(struct isl_ctx *ctx,
45 struct isl_mat *mat, unsigned i, unsigned j);
47 struct isl_vec *isl_mat_vec_product(struct isl_ctx *ctx,
48 struct isl_mat *mat, struct isl_vec *vec);
49 struct isl_mat *isl_mat_aff_direct_sum(struct isl_ctx *ctx,
50 struct isl_mat *left, struct isl_mat *right);
51 struct isl_mat *isl_mat_left_hermite(struct isl_ctx *ctx,
52 struct isl_mat *M, struct isl_mat **U, struct isl_mat **Q);
53 struct isl_mat *isl_mat_lin_to_aff(struct isl_ctx *ctx, struct isl_mat *mat);
54 struct isl_mat *isl_mat_inverse_product(struct isl_ctx *ctx,
55 struct isl_mat *left, struct isl_mat *right);
56 struct isl_mat *isl_mat_product(struct isl_ctx *ctx,
57 struct isl_mat *left, struct isl_mat *right);
59 struct isl_mat *isl_mat_drop_col(struct isl_ctx *ctx, struct isl_mat *mat,
61 struct isl_mat *isl_mat_drop_rows(struct isl_ctx *ctx, struct isl_mat *mat,
62 unsigned row, unsigned n);
64 struct isl_basic_set *isl_basic_set_preimage(struct isl_ctx *ctx,
65 struct isl_basic_set *bset, struct isl_mat *mat);
67 void isl_mat_dump(struct isl_ctx *ctx, struct isl_mat *mat,
68 FILE *out, int indent);
70 #if defined(__cplusplus)