1 #ifndef ISL_POLYNOMIAL_H
2 #define ISL_POLYNOMIAL_H
5 #include <isl/constraint.h>
7 #include <isl/set_type.h>
9 #include <isl/printer.h>
10 #include <isl/union_set.h>
11 #include <isl/aff_type.h>
12 #include <isl/polynomial_type.h>
14 #if defined(__cplusplus)
18 isl_ctx
*isl_qpolynomial_get_ctx(__isl_keep isl_qpolynomial
*qp
);
19 __isl_give isl_space
*isl_qpolynomial_get_domain_space(
20 __isl_keep isl_qpolynomial
*qp
);
21 __isl_give isl_space
*isl_qpolynomial_get_space(__isl_keep isl_qpolynomial
*qp
);
22 unsigned isl_qpolynomial_dim(__isl_keep isl_qpolynomial
*qp
,
23 enum isl_dim_type type
);
24 int isl_qpolynomial_involves_dims(__isl_keep isl_qpolynomial
*qp
,
25 enum isl_dim_type type
, unsigned first
, unsigned n
);
27 __isl_give isl_qpolynomial
*isl_qpolynomial_set_dim_name(
28 __isl_take isl_qpolynomial
*qp
,
29 enum isl_dim_type type
, unsigned pos
, const char *s
);
31 __isl_give isl_qpolynomial
*isl_qpolynomial_zero_on_domain(__isl_take isl_space
*dim
);
32 __isl_give isl_qpolynomial
*isl_qpolynomial_one_on_domain(__isl_take isl_space
*dim
);
33 __isl_give isl_qpolynomial
*isl_qpolynomial_infty_on_domain(__isl_take isl_space
*dim
);
34 __isl_give isl_qpolynomial
*isl_qpolynomial_neginfty_on_domain(__isl_take isl_space
*dim
);
35 __isl_give isl_qpolynomial
*isl_qpolynomial_nan_on_domain(__isl_take isl_space
*dim
);
36 __isl_give isl_qpolynomial
*isl_qpolynomial_rat_cst_on_domain(__isl_take isl_space
*dim
,
37 const isl_int n
, const isl_int d
);
38 __isl_give isl_qpolynomial
*isl_qpolynomial_var_on_domain(__isl_take isl_space
*dim
,
39 enum isl_dim_type type
, unsigned pos
);
40 __isl_give isl_qpolynomial
*isl_qpolynomial_copy(__isl_keep isl_qpolynomial
*qp
);
41 void *isl_qpolynomial_free(__isl_take isl_qpolynomial
*qp
);
43 int isl_qpolynomial_plain_is_equal(__isl_keep isl_qpolynomial
*qp1
,
44 __isl_keep isl_qpolynomial
*qp2
);
45 int isl_qpolynomial_is_zero(__isl_keep isl_qpolynomial
*qp
);
46 int isl_qpolynomial_is_nan(__isl_keep isl_qpolynomial
*qp
);
47 int isl_qpolynomial_is_infty(__isl_keep isl_qpolynomial
*qp
);
48 int isl_qpolynomial_is_neginfty(__isl_keep isl_qpolynomial
*qp
);
49 int isl_qpolynomial_sgn(__isl_keep isl_qpolynomial
*qp
);
50 int isl_qpolynomial_is_cst(__isl_keep isl_qpolynomial
*qp
,
51 isl_int
*n
, isl_int
*d
);
52 void isl_qpolynomial_get_den(__isl_keep isl_qpolynomial
*qp
, isl_int
*d
);
54 __isl_give isl_qpolynomial
*isl_qpolynomial_neg(__isl_take isl_qpolynomial
*qp
);
55 __isl_give isl_qpolynomial
*isl_qpolynomial_add(__isl_take isl_qpolynomial
*qp1
,
56 __isl_take isl_qpolynomial
*qp2
);
57 __isl_give isl_qpolynomial
*isl_qpolynomial_sub(__isl_take isl_qpolynomial
*qp1
,
58 __isl_take isl_qpolynomial
*qp2
);
59 __isl_give isl_qpolynomial
*isl_qpolynomial_mul(__isl_take isl_qpolynomial
*qp1
,
60 __isl_take isl_qpolynomial
*qp2
);
61 __isl_give isl_qpolynomial
*isl_qpolynomial_pow(__isl_take isl_qpolynomial
*qp
,
63 __isl_give isl_qpolynomial
*isl_qpolynomial_add_isl_int(
64 __isl_take isl_qpolynomial
*qp
, isl_int v
);
65 __isl_give isl_qpolynomial
*isl_qpolynomial_mul_isl_int(
66 __isl_take isl_qpolynomial
*qp
, isl_int v
);
67 __isl_give isl_qpolynomial
*isl_qpolynomial_scale(
68 __isl_take isl_qpolynomial
*qp
, isl_int v
);
70 __isl_give isl_qpolynomial
*isl_qpolynomial_insert_dims(
71 __isl_take isl_qpolynomial
*qp
, enum isl_dim_type type
,
72 unsigned first
, unsigned n
);
73 __isl_give isl_qpolynomial
*isl_qpolynomial_add_dims(
74 __isl_take isl_qpolynomial
*qp
, enum isl_dim_type type
, unsigned n
);
75 __isl_give isl_qpolynomial
*isl_qpolynomial_move_dims(
76 __isl_take isl_qpolynomial
*qp
,
77 enum isl_dim_type dst_type
, unsigned dst_pos
,
78 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
79 __isl_give isl_qpolynomial
*isl_qpolynomial_project_domain_on_params(
80 __isl_take isl_qpolynomial
*qp
);
81 __isl_give isl_qpolynomial
*isl_qpolynomial_drop_dims(
82 __isl_take isl_qpolynomial
*qp
,
83 enum isl_dim_type type
, unsigned first
, unsigned n
);
85 __isl_give isl_qpolynomial
*isl_qpolynomial_substitute(
86 __isl_take isl_qpolynomial
*qp
,
87 enum isl_dim_type type
, unsigned first
, unsigned n
,
88 __isl_keep isl_qpolynomial
**subs
);
90 int isl_qpolynomial_as_polynomial_on_domain(__isl_keep isl_qpolynomial
*qp
,
91 __isl_keep isl_basic_set
*bset
,
92 int (*fn
)(__isl_take isl_basic_set
*bset
,
93 __isl_take isl_qpolynomial
*poly
, void *user
), void *user
);
95 __isl_give isl_qpolynomial
*isl_qpolynomial_homogenize(
96 __isl_take isl_qpolynomial
*poly
);
98 __isl_give isl_qpolynomial
*isl_qpolynomial_align_params(
99 __isl_take isl_qpolynomial
*qp
, __isl_take isl_space
*model
);
101 isl_ctx
*isl_term_get_ctx(__isl_keep isl_term
*term
);
103 __isl_give isl_term
*isl_term_copy(__isl_keep isl_term
*term
);
104 void isl_term_free(__isl_take isl_term
*term
);
106 unsigned isl_term_dim(__isl_keep isl_term
*term
, enum isl_dim_type type
);
107 void isl_term_get_num(__isl_keep isl_term
*term
, isl_int
*n
);
108 void isl_term_get_den(__isl_keep isl_term
*term
, isl_int
*d
);
109 int isl_term_get_exp(__isl_keep isl_term
*term
,
110 enum isl_dim_type type
, unsigned pos
);
111 __isl_give isl_aff
*isl_term_get_div(__isl_keep isl_term
*term
, unsigned pos
);
113 int isl_qpolynomial_foreach_term(__isl_keep isl_qpolynomial
*qp
,
114 int (*fn
)(__isl_take isl_term
*term
, void *user
), void *user
);
116 __isl_give isl_qpolynomial
*isl_qpolynomial_eval(
117 __isl_take isl_qpolynomial
*qp
, __isl_take isl_point
*pnt
);
119 __isl_give isl_qpolynomial
*isl_qpolynomial_gist_params(
120 __isl_take isl_qpolynomial
*qp
, __isl_take isl_set
*context
);
121 __isl_give isl_qpolynomial
*isl_qpolynomial_gist(
122 __isl_take isl_qpolynomial
*qp
, __isl_take isl_set
*context
);
124 __isl_give isl_qpolynomial
*isl_qpolynomial_from_constraint(
125 __isl_take isl_constraint
*c
, enum isl_dim_type type
, unsigned pos
);
126 __isl_give isl_qpolynomial
*isl_qpolynomial_from_term(__isl_take isl_term
*term
);
127 __isl_give isl_qpolynomial
*isl_qpolynomial_from_aff(__isl_take isl_aff
*aff
);
128 __isl_give isl_basic_map
*isl_basic_map_from_qpolynomial(
129 __isl_take isl_qpolynomial
*qp
);
131 __isl_give isl_printer
*isl_printer_print_qpolynomial(
132 __isl_take isl_printer
*p
, __isl_keep isl_qpolynomial
*qp
);
133 void isl_qpolynomial_print(__isl_keep isl_qpolynomial
*qp
, FILE *out
,
134 unsigned output_format
);
135 void isl_qpolynomial_dump(__isl_keep isl_qpolynomial
*qp
);
137 isl_ctx
*isl_pw_qpolynomial_get_ctx(__isl_keep isl_pw_qpolynomial
*pwqp
);
139 int isl_pw_qpolynomial_plain_is_equal(__isl_keep isl_pw_qpolynomial
*pwqp1
,
140 __isl_keep isl_pw_qpolynomial
*pwqp2
);
142 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_zero(__isl_take isl_space
*dim
);
143 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_alloc(__isl_take isl_set
*set
,
144 __isl_take isl_qpolynomial
*qp
);
145 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_from_qpolynomial(
146 __isl_take isl_qpolynomial
*qp
);
147 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_copy(
148 __isl_keep isl_pw_qpolynomial
*pwqp
);
149 void *isl_pw_qpolynomial_free(__isl_take isl_pw_qpolynomial
*pwqp
);
151 int isl_pw_qpolynomial_is_zero(__isl_keep isl_pw_qpolynomial
*pwqp
);
153 __isl_give isl_space
*isl_pw_qpolynomial_get_domain_space(
154 __isl_keep isl_pw_qpolynomial
*pwqp
);
155 __isl_give isl_space
*isl_pw_qpolynomial_get_space(
156 __isl_keep isl_pw_qpolynomial
*pwqp
);
157 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_reset_domain_space(
158 __isl_take isl_pw_qpolynomial
*pwqp
, __isl_take isl_space
*dim
);
159 unsigned isl_pw_qpolynomial_dim(__isl_keep isl_pw_qpolynomial
*pwqp
,
160 enum isl_dim_type type
);
161 int isl_pw_qpolynomial_involves_dims(__isl_keep isl_pw_qpolynomial
*pwqp
,
162 enum isl_dim_type type
, unsigned first
, unsigned n
);
163 int isl_pw_qpolynomial_has_equal_space(__isl_keep isl_pw_qpolynomial
*pwqp1
,
164 __isl_keep isl_pw_qpolynomial
*pwqp2
);
166 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_set_dim_name(
167 __isl_take isl_pw_qpolynomial
*pwqp
,
168 enum isl_dim_type type
, unsigned pos
, const char *s
);
170 __isl_give isl_set
*isl_pw_qpolynomial_domain(__isl_take isl_pw_qpolynomial
*pwqp
);
171 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_intersect_domain(
172 __isl_take isl_pw_qpolynomial
*pwpq
, __isl_take isl_set
*set
);
173 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_intersect_params(
174 __isl_take isl_pw_qpolynomial
*pwpq
, __isl_take isl_set
*set
);
176 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_project_domain_on_params(
177 __isl_take isl_pw_qpolynomial
*pwqp
);
178 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_drop_dims(
179 __isl_take isl_pw_qpolynomial
*pwqp
,
180 enum isl_dim_type type
, unsigned first
, unsigned n
);
181 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_split_dims(
182 __isl_take isl_pw_qpolynomial
*pwqp
,
183 enum isl_dim_type type
, unsigned first
, unsigned n
);
185 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_add(
186 __isl_take isl_pw_qpolynomial
*pwqp1
,
187 __isl_take isl_pw_qpolynomial
*pwqp2
);
188 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_sub(
189 __isl_take isl_pw_qpolynomial
*pwqp1
,
190 __isl_take isl_pw_qpolynomial
*pwqp2
);
191 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_add_disjoint(
192 __isl_take isl_pw_qpolynomial
*pwqp1
,
193 __isl_take isl_pw_qpolynomial
*pwqp2
);
194 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_neg(
195 __isl_take isl_pw_qpolynomial
*pwqp
);
196 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_mul(
197 __isl_take isl_pw_qpolynomial
*pwqp1
,
198 __isl_take isl_pw_qpolynomial
*pwqp2
);
199 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_mul_isl_int(
200 __isl_take isl_pw_qpolynomial
*pwqp
, isl_int v
);
201 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_pow(
202 __isl_take isl_pw_qpolynomial
*pwqp
, unsigned exponent
);
204 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_insert_dims(
205 __isl_take isl_pw_qpolynomial
*pwqp
, enum isl_dim_type type
,
206 unsigned first
, unsigned n
);
207 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_add_dims(
208 __isl_take isl_pw_qpolynomial
*pwqp
,
209 enum isl_dim_type type
, unsigned n
);
210 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_move_dims(
211 __isl_take isl_pw_qpolynomial
*pwqp
,
212 enum isl_dim_type dst_type
, unsigned dst_pos
,
213 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
215 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_fix_dim(
216 __isl_take isl_pw_qpolynomial
*pwqp
,
217 enum isl_dim_type type
, unsigned n
, isl_int v
);
219 __isl_give isl_qpolynomial
*isl_pw_qpolynomial_eval(
220 __isl_take isl_pw_qpolynomial
*pwqp
, __isl_take isl_point
*pnt
);
222 __isl_give isl_qpolynomial
*isl_pw_qpolynomial_max(
223 __isl_take isl_pw_qpolynomial
*pwqp
);
224 __isl_give isl_qpolynomial
*isl_pw_qpolynomial_min(
225 __isl_take isl_pw_qpolynomial
*pwqp
);
227 int isl_pw_qpolynomial_foreach_piece(__isl_keep isl_pw_qpolynomial
*pwqp
,
228 int (*fn
)(__isl_take isl_set
*set
, __isl_take isl_qpolynomial
*qp
,
229 void *user
), void *user
);
230 int isl_pw_qpolynomial_foreach_lifted_piece(__isl_keep isl_pw_qpolynomial
*pwqp
,
231 int (*fn
)(__isl_take isl_set
*set
, __isl_take isl_qpolynomial
*qp
,
232 void *user
), void *user
);
234 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_from_pw_aff(
235 __isl_take isl_pw_aff
*pwaff
);
238 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_read_from_str(isl_ctx
*ctx
,
240 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_read_from_file(isl_ctx
*ctx
,
242 __isl_give isl_printer
*isl_printer_print_pw_qpolynomial(
243 __isl_take isl_printer
*p
, __isl_keep isl_pw_qpolynomial
*pwqp
);
244 void isl_pw_qpolynomial_print(__isl_keep isl_pw_qpolynomial
*pwqp
, FILE *out
,
245 unsigned output_format
);
246 void isl_pw_qpolynomial_dump(__isl_keep isl_pw_qpolynomial
*pwqp
);
248 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_coalesce(
249 __isl_take isl_pw_qpolynomial
*pwqp
);
250 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_gist(
251 __isl_take isl_pw_qpolynomial
*pwqp
, __isl_take isl_set
*context
);
253 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_split_periods(
254 __isl_take isl_pw_qpolynomial
*pwqp
, int max_periods
);
256 __isl_give isl_pw_qpolynomial
*isl_basic_set_multiplicative_call(
257 __isl_take isl_basic_set
*bset
,
258 __isl_give isl_pw_qpolynomial
*(*fn
)(__isl_take isl_basic_set
*bset
));
260 isl_ctx
*isl_qpolynomial_fold_get_ctx(__isl_keep isl_qpolynomial_fold
*fold
);
261 enum isl_fold
isl_qpolynomial_fold_get_type(__isl_keep isl_qpolynomial_fold
*fold
);
263 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_empty(enum isl_fold type
,
264 __isl_take isl_space
*dim
);
265 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_alloc(
266 enum isl_fold type
, __isl_take isl_qpolynomial
*qp
);
267 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_copy(
268 __isl_keep isl_qpolynomial_fold
*fold
);
269 void isl_qpolynomial_fold_free(__isl_take isl_qpolynomial_fold
*fold
);
271 int isl_qpolynomial_fold_is_empty(__isl_keep isl_qpolynomial_fold
*fold
);
272 int isl_qpolynomial_fold_plain_is_equal(__isl_keep isl_qpolynomial_fold
*fold1
,
273 __isl_keep isl_qpolynomial_fold
*fold2
);
275 __isl_give isl_space
*isl_qpolynomial_fold_get_space(
276 __isl_keep isl_qpolynomial_fold
*fold
);
278 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_fold(
279 __isl_take isl_qpolynomial_fold
*fold1
,
280 __isl_take isl_qpolynomial_fold
*fold2
);
282 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_mul_isl_int(
283 __isl_take isl_qpolynomial_fold
*fold
, isl_int v
);
284 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_scale(
285 __isl_take isl_qpolynomial_fold
*fold
, isl_int v
);
287 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_move_dims(
288 __isl_take isl_qpolynomial_fold
*fold
,
289 enum isl_dim_type dst_type
, unsigned dst_pos
,
290 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
292 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_substitute(
293 __isl_take isl_qpolynomial_fold
*fold
,
294 enum isl_dim_type type
, unsigned first
, unsigned n
,
295 __isl_keep isl_qpolynomial
**subs
);
297 __isl_give isl_qpolynomial
*isl_qpolynomial_fold_eval(
298 __isl_take isl_qpolynomial_fold
*fold
, __isl_take isl_point
*pnt
);
300 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_gist_params(
301 __isl_take isl_qpolynomial_fold
*fold
, __isl_take isl_set
*context
);
302 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_gist(
303 __isl_take isl_qpolynomial_fold
*fold
, __isl_take isl_set
*context
);
305 int isl_qpolynomial_fold_foreach_qpolynomial(
306 __isl_keep isl_qpolynomial_fold
*fold
,
307 int (*fn
)(__isl_take isl_qpolynomial
*qp
, void *user
), void *user
);
309 __isl_give isl_printer
*isl_printer_print_qpolynomial_fold(
310 __isl_take isl_printer
*p
, __isl_keep isl_qpolynomial_fold
*fold
);
311 void isl_qpolynomial_fold_print(__isl_keep isl_qpolynomial_fold
*fold
, FILE *out
,
312 unsigned output_format
);
313 void isl_qpolynomial_fold_dump(__isl_keep isl_qpolynomial_fold
*fold
);
315 isl_ctx
*isl_pw_qpolynomial_fold_get_ctx(__isl_keep isl_pw_qpolynomial_fold
*pwf
);
317 int isl_pw_qpolynomial_fold_plain_is_equal(
318 __isl_keep isl_pw_qpolynomial_fold
*pwf1
,
319 __isl_keep isl_pw_qpolynomial_fold
*pwf2
);
321 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_from_pw_qpolynomial(
322 enum isl_fold type
, __isl_take isl_pw_qpolynomial
*pwqp
);
324 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_alloc(
326 __isl_take isl_set
*set
, __isl_take isl_qpolynomial_fold
*fold
);
327 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_copy(
328 __isl_keep isl_pw_qpolynomial_fold
*pwf
);
329 void *isl_pw_qpolynomial_fold_free(__isl_take isl_pw_qpolynomial_fold
*pwf
);
331 int isl_pw_qpolynomial_fold_is_zero(__isl_keep isl_pw_qpolynomial_fold
*pwf
);
333 __isl_give isl_space
*isl_pw_qpolynomial_fold_get_domain_space(
334 __isl_keep isl_pw_qpolynomial_fold
*pwf
);
335 __isl_give isl_space
*isl_pw_qpolynomial_fold_get_space(
336 __isl_keep isl_pw_qpolynomial_fold
*pwf
);
337 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_reset_space(
338 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_space
*dim
);
339 unsigned isl_pw_qpolynomial_fold_dim(__isl_keep isl_pw_qpolynomial_fold
*pwf
,
340 enum isl_dim_type type
);
341 int isl_pw_qpolynomial_fold_has_equal_space(
342 __isl_keep isl_pw_qpolynomial_fold
*pwf1
,
343 __isl_keep isl_pw_qpolynomial_fold
*pwf2
);
345 size_t isl_pw_qpolynomial_fold_size(__isl_keep isl_pw_qpolynomial_fold
*pwf
);
347 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_zero(
348 __isl_take isl_space
*dim
, enum isl_fold type
);
350 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_set_dim_name(
351 __isl_take isl_pw_qpolynomial_fold
*pwf
,
352 enum isl_dim_type type
, unsigned pos
, const char *s
);
354 __isl_give isl_set
*isl_pw_qpolynomial_fold_domain(
355 __isl_take isl_pw_qpolynomial_fold
*pwf
);
356 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_intersect_domain(
357 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_set
*set
);
358 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_intersect_params(
359 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_set
*set
);
361 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_add(
362 __isl_take isl_pw_qpolynomial_fold
*pwf1
,
363 __isl_take isl_pw_qpolynomial_fold
*pwf2
);
364 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_fold(
365 __isl_take isl_pw_qpolynomial_fold
*pwf1
,
366 __isl_take isl_pw_qpolynomial_fold
*pwf2
);
367 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_add_disjoint(
368 __isl_take isl_pw_qpolynomial_fold
*pwf1
,
369 __isl_take isl_pw_qpolynomial_fold
*pwf2
);
370 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_mul_isl_int(
371 __isl_take isl_pw_qpolynomial_fold
*pwf
, isl_int v
);
373 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_project_domain_on_params(
374 __isl_take isl_pw_qpolynomial_fold
*pwf
);
375 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_drop_dims(
376 __isl_take isl_pw_qpolynomial_fold
*pwf
,
377 enum isl_dim_type type
, unsigned first
, unsigned n
);
378 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_move_dims(
379 __isl_take isl_pw_qpolynomial_fold
*pwf
,
380 enum isl_dim_type dst_type
, unsigned dst_pos
,
381 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
383 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_fix_dim(
384 __isl_take isl_pw_qpolynomial_fold
*pwf
,
385 enum isl_dim_type type
, unsigned n
, isl_int v
);
387 __isl_give isl_qpolynomial
*isl_pw_qpolynomial_fold_eval(
388 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_point
*pnt
);
390 int isl_pw_qpolynomial_fold_foreach_piece(
391 __isl_keep isl_pw_qpolynomial_fold
*pwf
,
392 int (*fn
)(__isl_take isl_set
*set
, __isl_take isl_qpolynomial_fold
*fold
,
393 void *user
), void *user
);
394 int isl_pw_qpolynomial_fold_foreach_lifted_piece(
395 __isl_keep isl_pw_qpolynomial_fold
*pwf
,
396 int (*fn
)(__isl_take isl_set
*set
, __isl_take isl_qpolynomial_fold
*fold
,
397 void *user
), void *user
);
399 __isl_give isl_printer
*isl_printer_print_pw_qpolynomial_fold(
400 __isl_take isl_printer
*p
, __isl_keep isl_pw_qpolynomial_fold
*pwf
);
401 void isl_pw_qpolynomial_fold_print(__isl_keep isl_pw_qpolynomial_fold
*pwf
,
402 FILE *out
, unsigned output_format
);
403 void isl_pw_qpolynomial_fold_dump(__isl_keep isl_pw_qpolynomial_fold
*pwf
);
405 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_coalesce(
406 __isl_take isl_pw_qpolynomial_fold
*pwf
);
407 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_gist(
408 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_set
*context
);
410 __isl_give isl_qpolynomial
*isl_pw_qpolynomial_fold_max(
411 __isl_take isl_pw_qpolynomial_fold
*pwf
);
412 __isl_give isl_qpolynomial
*isl_pw_qpolynomial_fold_min(
413 __isl_take isl_pw_qpolynomial_fold
*pwf
);
415 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_bound(
416 __isl_take isl_pw_qpolynomial
*pwqp
, enum isl_fold type
, int *tight
);
417 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_bound(
418 __isl_take isl_pw_qpolynomial_fold
*pwf
, int *tight
);
419 __isl_give isl_pw_qpolynomial_fold
*isl_set_apply_pw_qpolynomial_fold(
420 __isl_take isl_set
*set
, __isl_take isl_pw_qpolynomial_fold
*pwf
,
422 __isl_give isl_pw_qpolynomial_fold
*isl_map_apply_pw_qpolynomial_fold(
423 __isl_take isl_map
*map
, __isl_take isl_pw_qpolynomial_fold
*pwf
,
426 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_to_polynomial(
427 __isl_take isl_pw_qpolynomial
*pwqp
, int sign
);
429 isl_ctx
*isl_union_pw_qpolynomial_get_ctx(
430 __isl_keep isl_union_pw_qpolynomial
*upwqp
);
432 int isl_union_pw_qpolynomial_plain_is_equal(
433 __isl_keep isl_union_pw_qpolynomial
*upwqp1
,
434 __isl_keep isl_union_pw_qpolynomial
*upwqp2
);
436 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_from_pw_qpolynomial(__isl_take isl_pw_qpolynomial
*pwqp
);
437 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_zero(
438 __isl_take isl_space
*dim
);
439 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_add_pw_qpolynomial(
440 __isl_take isl_union_pw_qpolynomial
*upwqp
,
441 __isl_take isl_pw_qpolynomial
*pwqp
);
442 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_copy(
443 __isl_keep isl_union_pw_qpolynomial
*upwqp
);
444 void isl_union_pw_qpolynomial_free(__isl_take isl_union_pw_qpolynomial
*upwqp
);
447 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_read_from_str(
448 isl_ctx
*ctx
, const char *str
);
450 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_add(
451 __isl_take isl_union_pw_qpolynomial
*upwqp1
,
452 __isl_take isl_union_pw_qpolynomial
*upwqp2
);
453 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_sub(
454 __isl_take isl_union_pw_qpolynomial
*upwqp1
,
455 __isl_take isl_union_pw_qpolynomial
*upwqp2
);
456 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_mul(
457 __isl_take isl_union_pw_qpolynomial
*upwqp1
,
458 __isl_take isl_union_pw_qpolynomial
*upwqp2
);
459 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_mul_isl_int(
460 __isl_take isl_union_pw_qpolynomial
*upwqp
, isl_int v
);
462 __isl_give isl_union_set
*isl_union_pw_qpolynomial_domain(
463 __isl_take isl_union_pw_qpolynomial
*upwqp
);
464 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_intersect_domain(
465 __isl_take isl_union_pw_qpolynomial
*upwpq
,
466 __isl_take isl_union_set
*uset
);
467 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_intersect_params(
468 __isl_take isl_union_pw_qpolynomial
*upwpq
,
469 __isl_take isl_set
*set
);
471 __isl_give isl_space
*isl_union_pw_qpolynomial_get_space(
472 __isl_keep isl_union_pw_qpolynomial
*upwqp
);
474 __isl_give isl_qpolynomial
*isl_union_pw_qpolynomial_eval(
475 __isl_take isl_union_pw_qpolynomial
*upwqp
, __isl_take isl_point
*pnt
);
477 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_coalesce(
478 __isl_take isl_union_pw_qpolynomial
*upwqp
);
479 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_gist(
480 __isl_take isl_union_pw_qpolynomial
*upwqp
,
481 __isl_take isl_union_set
*context
);
483 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_align_params(
484 __isl_take isl_union_pw_qpolynomial
*upwqp
,
485 __isl_take isl_space
*model
);
487 int isl_union_pw_qpolynomial_foreach_pw_qpolynomial(
488 __isl_keep isl_union_pw_qpolynomial
*upwqp
,
489 int (*fn
)(__isl_take isl_pw_qpolynomial
*pwqp
, void *user
), void *user
);
490 __isl_give isl_pw_qpolynomial
*isl_union_pw_qpolynomial_extract_pw_qpolynomial(
491 __isl_keep isl_union_pw_qpolynomial
*upwqp
, __isl_take isl_space
*dim
);
493 __isl_give isl_printer
*isl_printer_print_union_pw_qpolynomial(
494 __isl_take isl_printer
*p
, __isl_keep isl_union_pw_qpolynomial
*upwqp
);
496 isl_ctx
*isl_union_pw_qpolynomial_fold_get_ctx(
497 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
499 int isl_union_pw_qpolynomial_fold_plain_is_equal(
500 __isl_keep isl_union_pw_qpolynomial_fold
*upwf1
,
501 __isl_keep isl_union_pw_qpolynomial_fold
*upwf2
);
503 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_from_pw_qpolynomial_fold(__isl_take isl_pw_qpolynomial_fold
*pwf
);
504 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_zero(
505 __isl_take isl_space
*dim
, enum isl_fold type
);
506 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_fold_pw_qpolynomial_fold(
507 __isl_take isl_union_pw_qpolynomial_fold
*upwqp
,
508 __isl_take isl_pw_qpolynomial_fold
*pwqp
);
509 void isl_union_pw_qpolynomial_fold_free(
510 __isl_take isl_union_pw_qpolynomial_fold
*upwf
);
511 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_copy(
512 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
514 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_fold(
515 __isl_take isl_union_pw_qpolynomial_fold
*upwf1
,
516 __isl_take isl_union_pw_qpolynomial_fold
*upwf2
);
517 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_add_union_pw_qpolynomial(
518 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
519 __isl_take isl_union_pw_qpolynomial
*upwqp
);
520 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_mul_isl_int(
521 __isl_take isl_union_pw_qpolynomial_fold
*upwf
, isl_int v
);
523 __isl_give isl_union_set
*isl_union_pw_qpolynomial_fold_domain(
524 __isl_take isl_union_pw_qpolynomial_fold
*upwf
);
525 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_intersect_domain(
526 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
527 __isl_take isl_union_set
*uset
);
528 __isl_give isl_union_pw_qpolynomial_fold
*
529 isl_union_pw_qpolynomial_fold_intersect_params(
530 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
531 __isl_take isl_set
*set
);
533 enum isl_fold
isl_union_pw_qpolynomial_fold_get_type(
534 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
535 __isl_give isl_space
*isl_union_pw_qpolynomial_fold_get_space(
536 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
538 __isl_give isl_qpolynomial
*isl_union_pw_qpolynomial_fold_eval(
539 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
540 __isl_take isl_point
*pnt
);
542 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_coalesce(
543 __isl_take isl_union_pw_qpolynomial_fold
*upwf
);
544 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_gist(
545 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
546 __isl_take isl_union_set
*context
);
548 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_align_params(
549 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
550 __isl_take isl_space
*model
);
552 int isl_union_pw_qpolynomial_fold_foreach_pw_qpolynomial_fold(
553 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
,
554 int (*fn
)(__isl_take isl_pw_qpolynomial_fold
*pwf
,
555 void *user
), void *user
);
556 __isl_give isl_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_extract_pw_qpolynomial_fold(
557 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
, __isl_take isl_space
*dim
);
559 __isl_give isl_printer
*isl_printer_print_union_pw_qpolynomial_fold(
560 __isl_take isl_printer
*p
,
561 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
563 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_bound(
564 __isl_take isl_union_pw_qpolynomial
*upwqp
,
565 enum isl_fold type
, int *tight
);
566 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_set_apply_union_pw_qpolynomial_fold(
567 __isl_take isl_union_set
*uset
,
568 __isl_take isl_union_pw_qpolynomial_fold
*upwf
, int *tight
);
569 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_map_apply_union_pw_qpolynomial_fold(
570 __isl_take isl_union_map
*umap
,
571 __isl_take isl_union_pw_qpolynomial_fold
*upwf
, int *tight
);
573 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_to_polynomial(
574 __isl_take isl_union_pw_qpolynomial
*upwqp
, int sign
);
576 #if defined(__cplusplus)