1 #ifndef ISL_POLYNOMIAL_H
2 #define ISL_POLYNOMIAL_H
10 #if defined(__cplusplus)
14 struct isl_qpolynomial;
15 typedef struct isl_qpolynomial isl_qpolynomial;
17 __isl_give isl_qpolynomial *isl_qpolynomial_zero(__isl_take isl_dim *dim);
18 __isl_give isl_qpolynomial *isl_qpolynomial_infty(__isl_take isl_dim *dim);
19 __isl_give isl_qpolynomial *isl_qpolynomial_nan(__isl_take isl_dim *dim);
20 __isl_give isl_qpolynomial *isl_qpolynomial_rat_cst(__isl_take isl_dim *dim,
21 const isl_int n, const isl_int d);
22 __isl_give isl_qpolynomial *isl_qpolynomial_div(__isl_take isl_div *div);
23 __isl_give isl_qpolynomial *isl_qpolynomial_var(__isl_take isl_dim *dim,
24 enum isl_dim_type type, unsigned pos);
25 __isl_give isl_qpolynomial *isl_qpolynomial_copy(__isl_keep isl_qpolynomial *qp);
26 void isl_qpolynomial_free(__isl_take isl_qpolynomial *qp);
28 int isl_qpolynomial_is_cst(__isl_keep isl_qpolynomial *qp,
29 isl_int *n, isl_int *d);
31 __isl_give isl_qpolynomial *isl_qpolynomial_neg(__isl_take isl_qpolynomial *qp);
32 __isl_give isl_qpolynomial *isl_qpolynomial_add(__isl_take isl_qpolynomial *qp1,
33 __isl_take isl_qpolynomial *qp2);
34 __isl_give isl_qpolynomial *isl_qpolynomial_mul(__isl_take isl_qpolynomial *qp1,
35 __isl_take isl_qpolynomial *qp2);
37 void isl_qpolynomial_print(__isl_keep isl_qpolynomial *qp, FILE *out,
38 unsigned output_format);
40 struct isl_pw_qpolynomial;
41 typedef struct isl_pw_qpolynomial isl_pw_qpolynomial;
43 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_zero(__isl_take isl_dim *dim);
44 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_alloc(__isl_take isl_set *set,
45 __isl_take isl_qpolynomial *qp);
46 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_copy(
47 __isl_keep isl_pw_qpolynomial *pwqp);
48 void isl_pw_qpolynomial_free(__isl_take isl_pw_qpolynomial *pwqp);
50 __isl_give isl_dim *isl_pw_qpolynomial_get_dim(
51 __isl_keep isl_pw_qpolynomial *pwqp);
53 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_add(
54 __isl_take isl_pw_qpolynomial *pwqp1,
55 __isl_take isl_pw_qpolynomial *pwqp2);
56 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_sub(
57 __isl_take isl_pw_qpolynomial *pwqp1,
58 __isl_take isl_pw_qpolynomial *pwqp2);
59 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_add_disjoint(
60 __isl_take isl_pw_qpolynomial *pwqp1,
61 __isl_take isl_pw_qpolynomial *pwqp2);
62 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_neg(
63 __isl_take isl_pw_qpolynomial *pwqp);
64 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_mul(
65 __isl_take isl_pw_qpolynomial *pwqp1,
66 __isl_take isl_pw_qpolynomial *pwqp2);
68 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_move(
69 __isl_take isl_pw_qpolynomial *pwqp,
70 enum isl_dim_type dst_type, unsigned dst_pos,
71 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
73 __isl_give isl_qpolynomial *isl_pw_qpolynomial_eval(
74 __isl_take isl_pw_qpolynomial *pwqp, __isl_take isl_point *pnt);
76 void isl_pw_qpolynomial_print(__isl_keep isl_pw_qpolynomial *pwqp, FILE *out,
77 unsigned output_format);
79 #if defined(__cplusplus)