Polly 20.0.0git
isl_mat_private.h
Go to the documentation of this file.
1#ifndef ISL_MAT_PRIVATE_H
2#define ISL_MAT_PRIVATE_H
3
4#include <isl/mat.h>
5#include <isl_blk.h>
6
7struct isl_mat {
8 int ref;
9
10 struct isl_ctx *ctx;
11
12#define ISL_MAT_BORROWED (1 << 0)
13 unsigned flags;
14
15 unsigned n_row;
16 unsigned n_col;
17
19
20 /* actual size of the rows in memory; n_col <= max_col */
21 unsigned max_col;
22
23 struct isl_blk block;
24};
25
27
28__isl_give isl_mat *isl_mat_zero(isl_ctx *ctx, unsigned n_row, unsigned n_col);
32 unsigned first_row, unsigned n_row, unsigned first_col, unsigned n_col);
34 unsigned first_row, unsigned n_row, unsigned first_col, unsigned n_col);
35void isl_mat_sub_copy(struct isl_ctx *ctx, isl_int **dst, isl_int **src,
36 unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col);
37void isl_mat_sub_neg(struct isl_ctx *ctx, isl_int **dst, isl_int **src,
38 unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col);
39isl_stat isl_mat_sub_transform(isl_int **row, unsigned n_row,
40 unsigned first_col, __isl_take isl_mat *mat);
41__isl_give isl_mat *isl_mat_diag(isl_ctx *ctx, unsigned n_row, isl_int d);
42
44
47 isl_int m);
48
50
52
54
56
57void isl_mat_col_mul(__isl_keep isl_mat *mat, int dst_col, isl_int f,
58 int src_col);
60 int dst_col, isl_int f, int src_col);
62 isl_int f, int src_col);
65
66int isl_mat_get_element(__isl_keep isl_mat *mat, int row, int col, isl_int *v);
68 int row, int col, isl_int v);
69
70#endif
#define __isl_take
Definition: ctx.h:22
isl_stat
Definition: ctx.h:84
#define __isl_give
Definition: ctx.h:19
#define __isl_keep
Definition: ctx.h:25
isl_bool
Definition: ctx.h:89
m
Definition: guard1-0.c:2
void GMPZAPI() gcd(mp_int rop, mp_int op1, mp_int op2)
void isl_mat_sub_copy(struct isl_ctx *ctx, isl_int **dst, isl_int **src, unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col)
Definition: isl_mat.c:184
__isl_give isl_mat * isl_mat_set_element(__isl_take isl_mat *mat, int row, int col, isl_int v)
Definition: isl_mat.c:344
__isl_give isl_mat * isl_mat_cow(__isl_take isl_mat *mat)
Definition: isl_mat.c:226
int isl_mat_get_element(__isl_keep isl_mat *mat, int row, int col, isl_int *v)
Definition: isl_mat.c:319
void isl_mat_sub_neg(struct isl_ctx *ctx, isl_int **dst, isl_int **src, unsigned n_row, unsigned dst_col, unsigned src_col, unsigned n_col)
Definition: isl_mat.c:193
__isl_give isl_mat * isl_mat_col_neg(__isl_take isl_mat *mat, int col)
Definition: isl_mat.c:1703
__isl_give isl_mat * isl_mat_sub_alloc6(isl_ctx *ctx, isl_int **row, unsigned first_row, unsigned n_row, unsigned first_col, unsigned n_col)
Definition: isl_mat.c:148
__isl_give isl_mat * isl_mat_diag(isl_ctx *ctx, unsigned n_row, isl_int d)
Definition: isl_mat.c:386
__isl_give isl_mat * isl_mat_zero(isl_ctx *ctx, unsigned n_row, unsigned n_col)
Definition: isl_mat.c:405
isl_stat isl_mat_row_gcd(__isl_keep isl_mat *mat, int row, isl_int *gcd)
Definition: isl_mat.c:1910
void isl_mat_col_mul(__isl_keep isl_mat *mat, int dst_col, isl_int f, int src_col)
Definition: isl_mat.c:1669
__isl_give isl_mat * isl_mat_row_neg(__isl_take isl_mat *mat, int row)
Definition: isl_mat.c:1724
__isl_give isl_mat * isl_mat_lexnonneg_rows(__isl_take isl_mat *mat)
Definition: isl_mat.c:801
__isl_give isl_mat * isl_mat_reverse_gauss(__isl_take isl_mat *mat)
Definition: isl_mat.c:762
__isl_give isl_mat * isl_mat_col_addmul(__isl_take isl_mat *mat, int dst_col, isl_int f, int src_col)
Definition: isl_mat.c:1681
__isl_give isl_mat * isl_mat_dup(__isl_keep isl_mat *mat)
Definition: isl_mat.c:211
__isl_give isl_vec * isl_mat_get_row(__isl_keep isl_mat *mat, unsigned row)
Definition: isl_mat.c:1840
isl_stat isl_mat_sub_transform(isl_int **row, unsigned n_row, unsigned first_col, __isl_take isl_mat *mat)
Definition: isl_mat.c:1451
__isl_give isl_mat * isl_mat_scale(__isl_take isl_mat *mat, isl_int m)
Definition: isl_mat.c:1939
void isl_mat_col_submul(__isl_keep isl_mat *mat, int dst_col, isl_int f, int src_col)
Definition: isl_mat.c:1648
__isl_give isl_mat * isl_mat_sub_alloc(__isl_keep isl_mat *mat, unsigned first_row, unsigned n_row, unsigned first_col, unsigned n_col)
Definition: isl_mat.c:175
isl_bool isl_mat_is_scaled_identity(__isl_keep isl_mat *mat)
Definition: isl_mat.c:428
uint32_t isl_mat_get_hash(__isl_keep isl_mat *mat)
Definition: isl_mat.c:32
__isl_give isl_mat * isl_mat_scale_down_row(__isl_take isl_mat *mat, int row, isl_int m)
Definition: isl_mat.c:1973
const char * f
Definition: isl_test.c:8642
struct isl_blk block
unsigned n_row
unsigned n_col
unsigned flags
struct isl_ctx * ctx
unsigned max_col
isl_int ** row