add isl_qpolynomial_get_constant_val
[isl.git] / include / isl / polynomial.h
blob3dc08c4863bf68be12f08a9897bfbc42a6d49385
1 #ifndef ISL_POLYNOMIAL_H
2 #define ISL_POLYNOMIAL_H
4 #include <isl/ctx.h>
5 #include <isl/constraint.h>
6 #include <isl/space.h>
7 #include <isl/set_type.h>
8 #include <isl/point.h>
9 #include <isl/printer.h>
10 #include <isl/union_set_type.h>
11 #include <isl/aff_type.h>
12 #include <isl/polynomial_type.h>
13 #include <isl/val.h>
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif
19 isl_ctx *isl_qpolynomial_get_ctx(__isl_keep isl_qpolynomial *qp);
20 __isl_give isl_space *isl_qpolynomial_get_domain_space(
21 __isl_keep isl_qpolynomial *qp);
22 __isl_give isl_space *isl_qpolynomial_get_space(__isl_keep isl_qpolynomial *qp);
23 unsigned isl_qpolynomial_dim(__isl_keep isl_qpolynomial *qp,
24 enum isl_dim_type type);
25 int isl_qpolynomial_involves_dims(__isl_keep isl_qpolynomial *qp,
26 enum isl_dim_type type, unsigned first, unsigned n);
28 __isl_give isl_val *isl_qpolynomial_get_constant_val(
29 __isl_keep isl_qpolynomial *qp);
31 __isl_give isl_qpolynomial *isl_qpolynomial_set_dim_name(
32 __isl_take isl_qpolynomial *qp,
33 enum isl_dim_type type, unsigned pos, const char *s);
35 __isl_give isl_qpolynomial *isl_qpolynomial_zero_on_domain(__isl_take isl_space *dim);
36 __isl_give isl_qpolynomial *isl_qpolynomial_one_on_domain(__isl_take isl_space *dim);
37 __isl_give isl_qpolynomial *isl_qpolynomial_infty_on_domain(__isl_take isl_space *dim);
38 __isl_give isl_qpolynomial *isl_qpolynomial_neginfty_on_domain(__isl_take isl_space *dim);
39 __isl_give isl_qpolynomial *isl_qpolynomial_nan_on_domain(__isl_take isl_space *dim);
40 __isl_give isl_qpolynomial *isl_qpolynomial_rat_cst_on_domain(__isl_take isl_space *dim,
41 const isl_int n, const isl_int d);
42 __isl_give isl_qpolynomial *isl_qpolynomial_var_on_domain(__isl_take isl_space *dim,
43 enum isl_dim_type type, unsigned pos);
44 __isl_give isl_qpolynomial *isl_qpolynomial_copy(__isl_keep isl_qpolynomial *qp);
45 void *isl_qpolynomial_free(__isl_take isl_qpolynomial *qp);
47 int isl_qpolynomial_plain_is_equal(__isl_keep isl_qpolynomial *qp1,
48 __isl_keep isl_qpolynomial *qp2);
49 int isl_qpolynomial_is_zero(__isl_keep isl_qpolynomial *qp);
50 int isl_qpolynomial_is_nan(__isl_keep isl_qpolynomial *qp);
51 int isl_qpolynomial_is_infty(__isl_keep isl_qpolynomial *qp);
52 int isl_qpolynomial_is_neginfty(__isl_keep isl_qpolynomial *qp);
53 int isl_qpolynomial_sgn(__isl_keep isl_qpolynomial *qp);
54 int isl_qpolynomial_is_cst(__isl_keep isl_qpolynomial *qp,
55 isl_int *n, isl_int *d);
56 void isl_qpolynomial_get_den(__isl_keep isl_qpolynomial *qp, isl_int *d);
58 __isl_give isl_qpolynomial *isl_qpolynomial_neg(__isl_take isl_qpolynomial *qp);
59 __isl_give isl_qpolynomial *isl_qpolynomial_add(__isl_take isl_qpolynomial *qp1,
60 __isl_take isl_qpolynomial *qp2);
61 __isl_give isl_qpolynomial *isl_qpolynomial_sub(__isl_take isl_qpolynomial *qp1,
62 __isl_take isl_qpolynomial *qp2);
63 __isl_give isl_qpolynomial *isl_qpolynomial_mul(__isl_take isl_qpolynomial *qp1,
64 __isl_take isl_qpolynomial *qp2);
65 __isl_give isl_qpolynomial *isl_qpolynomial_pow(__isl_take isl_qpolynomial *qp,
66 unsigned power);
67 __isl_give isl_qpolynomial *isl_qpolynomial_add_isl_int(
68 __isl_take isl_qpolynomial *qp, isl_int v);
69 __isl_give isl_qpolynomial *isl_qpolynomial_mul_isl_int(
70 __isl_take isl_qpolynomial *qp, isl_int v);
71 __isl_give isl_qpolynomial *isl_qpolynomial_scale(
72 __isl_take isl_qpolynomial *qp, isl_int v);
74 __isl_give isl_qpolynomial *isl_qpolynomial_insert_dims(
75 __isl_take isl_qpolynomial *qp, enum isl_dim_type type,
76 unsigned first, unsigned n);
77 __isl_give isl_qpolynomial *isl_qpolynomial_add_dims(
78 __isl_take isl_qpolynomial *qp, enum isl_dim_type type, unsigned n);
79 __isl_give isl_qpolynomial *isl_qpolynomial_move_dims(
80 __isl_take isl_qpolynomial *qp,
81 enum isl_dim_type dst_type, unsigned dst_pos,
82 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
83 __isl_give isl_qpolynomial *isl_qpolynomial_project_domain_on_params(
84 __isl_take isl_qpolynomial *qp);
85 __isl_give isl_qpolynomial *isl_qpolynomial_drop_dims(
86 __isl_take isl_qpolynomial *qp,
87 enum isl_dim_type type, unsigned first, unsigned n);
89 __isl_give isl_qpolynomial *isl_qpolynomial_substitute(
90 __isl_take isl_qpolynomial *qp,
91 enum isl_dim_type type, unsigned first, unsigned n,
92 __isl_keep isl_qpolynomial **subs);
94 int isl_qpolynomial_as_polynomial_on_domain(__isl_keep isl_qpolynomial *qp,
95 __isl_keep isl_basic_set *bset,
96 int (*fn)(__isl_take isl_basic_set *bset,
97 __isl_take isl_qpolynomial *poly, void *user), void *user);
99 __isl_give isl_qpolynomial *isl_qpolynomial_homogenize(
100 __isl_take isl_qpolynomial *poly);
102 __isl_give isl_qpolynomial *isl_qpolynomial_align_params(
103 __isl_take isl_qpolynomial *qp, __isl_take isl_space *model);
105 isl_ctx *isl_term_get_ctx(__isl_keep isl_term *term);
107 __isl_give isl_term *isl_term_copy(__isl_keep isl_term *term);
108 void isl_term_free(__isl_take isl_term *term);
110 unsigned isl_term_dim(__isl_keep isl_term *term, enum isl_dim_type type);
111 void isl_term_get_num(__isl_keep isl_term *term, isl_int *n);
112 void isl_term_get_den(__isl_keep isl_term *term, isl_int *d);
113 __isl_give isl_val *isl_term_get_coefficient_val(__isl_keep isl_term *term);
114 int isl_term_get_exp(__isl_keep isl_term *term,
115 enum isl_dim_type type, unsigned pos);
116 __isl_give isl_aff *isl_term_get_div(__isl_keep isl_term *term, unsigned pos);
118 int isl_qpolynomial_foreach_term(__isl_keep isl_qpolynomial *qp,
119 int (*fn)(__isl_take isl_term *term, void *user), void *user);
121 __isl_give isl_qpolynomial *isl_qpolynomial_eval(
122 __isl_take isl_qpolynomial *qp, __isl_take isl_point *pnt);
124 __isl_give isl_qpolynomial *isl_qpolynomial_gist_params(
125 __isl_take isl_qpolynomial *qp, __isl_take isl_set *context);
126 __isl_give isl_qpolynomial *isl_qpolynomial_gist(
127 __isl_take isl_qpolynomial *qp, __isl_take isl_set *context);
129 __isl_give isl_qpolynomial *isl_qpolynomial_from_constraint(
130 __isl_take isl_constraint *c, enum isl_dim_type type, unsigned pos);
131 __isl_give isl_qpolynomial *isl_qpolynomial_from_term(__isl_take isl_term *term);
132 __isl_give isl_qpolynomial *isl_qpolynomial_from_aff(__isl_take isl_aff *aff);
133 __isl_give isl_basic_map *isl_basic_map_from_qpolynomial(
134 __isl_take isl_qpolynomial *qp);
136 __isl_give isl_printer *isl_printer_print_qpolynomial(
137 __isl_take isl_printer *p, __isl_keep isl_qpolynomial *qp);
138 void isl_qpolynomial_print(__isl_keep isl_qpolynomial *qp, FILE *out,
139 unsigned output_format);
140 void isl_qpolynomial_dump(__isl_keep isl_qpolynomial *qp);
142 isl_ctx *isl_pw_qpolynomial_get_ctx(__isl_keep isl_pw_qpolynomial *pwqp);
144 int isl_pw_qpolynomial_plain_is_equal(__isl_keep isl_pw_qpolynomial *pwqp1,
145 __isl_keep isl_pw_qpolynomial *pwqp2);
147 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_zero(__isl_take isl_space *dim);
148 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_alloc(__isl_take isl_set *set,
149 __isl_take isl_qpolynomial *qp);
150 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_from_qpolynomial(
151 __isl_take isl_qpolynomial *qp);
152 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_copy(
153 __isl_keep isl_pw_qpolynomial *pwqp);
154 void *isl_pw_qpolynomial_free(__isl_take isl_pw_qpolynomial *pwqp);
156 int isl_pw_qpolynomial_is_zero(__isl_keep isl_pw_qpolynomial *pwqp);
158 __isl_give isl_space *isl_pw_qpolynomial_get_domain_space(
159 __isl_keep isl_pw_qpolynomial *pwqp);
160 __isl_give isl_space *isl_pw_qpolynomial_get_space(
161 __isl_keep isl_pw_qpolynomial *pwqp);
162 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_reset_domain_space(
163 __isl_take isl_pw_qpolynomial *pwqp, __isl_take isl_space *dim);
164 unsigned isl_pw_qpolynomial_dim(__isl_keep isl_pw_qpolynomial *pwqp,
165 enum isl_dim_type type);
166 int isl_pw_qpolynomial_involves_dims(__isl_keep isl_pw_qpolynomial *pwqp,
167 enum isl_dim_type type, unsigned first, unsigned n);
168 int isl_pw_qpolynomial_has_equal_space(__isl_keep isl_pw_qpolynomial *pwqp1,
169 __isl_keep isl_pw_qpolynomial *pwqp2);
171 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_set_dim_name(
172 __isl_take isl_pw_qpolynomial *pwqp,
173 enum isl_dim_type type, unsigned pos, const char *s);
175 __isl_give isl_set *isl_pw_qpolynomial_domain(__isl_take isl_pw_qpolynomial *pwqp);
176 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_intersect_domain(
177 __isl_take isl_pw_qpolynomial *pwpq, __isl_take isl_set *set);
178 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_intersect_params(
179 __isl_take isl_pw_qpolynomial *pwpq, __isl_take isl_set *set);
181 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_project_domain_on_params(
182 __isl_take isl_pw_qpolynomial *pwqp);
183 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_drop_dims(
184 __isl_take isl_pw_qpolynomial *pwqp,
185 enum isl_dim_type type, unsigned first, unsigned n);
186 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_split_dims(
187 __isl_take isl_pw_qpolynomial *pwqp,
188 enum isl_dim_type type, unsigned first, unsigned n);
190 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_add(
191 __isl_take isl_pw_qpolynomial *pwqp1,
192 __isl_take isl_pw_qpolynomial *pwqp2);
193 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_sub(
194 __isl_take isl_pw_qpolynomial *pwqp1,
195 __isl_take isl_pw_qpolynomial *pwqp2);
196 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_add_disjoint(
197 __isl_take isl_pw_qpolynomial *pwqp1,
198 __isl_take isl_pw_qpolynomial *pwqp2);
199 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_neg(
200 __isl_take isl_pw_qpolynomial *pwqp);
201 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_mul(
202 __isl_take isl_pw_qpolynomial *pwqp1,
203 __isl_take isl_pw_qpolynomial *pwqp2);
204 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_mul_isl_int(
205 __isl_take isl_pw_qpolynomial *pwqp, isl_int v);
206 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_pow(
207 __isl_take isl_pw_qpolynomial *pwqp, unsigned exponent);
209 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_insert_dims(
210 __isl_take isl_pw_qpolynomial *pwqp, enum isl_dim_type type,
211 unsigned first, unsigned n);
212 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_add_dims(
213 __isl_take isl_pw_qpolynomial *pwqp,
214 enum isl_dim_type type, unsigned n);
215 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_move_dims(
216 __isl_take isl_pw_qpolynomial *pwqp,
217 enum isl_dim_type dst_type, unsigned dst_pos,
218 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
220 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_fix_dim(
221 __isl_take isl_pw_qpolynomial *pwqp,
222 enum isl_dim_type type, unsigned n, isl_int v);
224 __isl_give isl_qpolynomial *isl_pw_qpolynomial_eval(
225 __isl_take isl_pw_qpolynomial *pwqp, __isl_take isl_point *pnt);
227 __isl_give isl_qpolynomial *isl_pw_qpolynomial_max(
228 __isl_take isl_pw_qpolynomial *pwqp);
229 __isl_give isl_qpolynomial *isl_pw_qpolynomial_min(
230 __isl_take isl_pw_qpolynomial *pwqp);
232 int isl_pw_qpolynomial_foreach_piece(__isl_keep isl_pw_qpolynomial *pwqp,
233 int (*fn)(__isl_take isl_set *set, __isl_take isl_qpolynomial *qp,
234 void *user), void *user);
235 int isl_pw_qpolynomial_foreach_lifted_piece(__isl_keep isl_pw_qpolynomial *pwqp,
236 int (*fn)(__isl_take isl_set *set, __isl_take isl_qpolynomial *qp,
237 void *user), void *user);
239 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_from_pw_aff(
240 __isl_take isl_pw_aff *pwaff);
242 __isl_constructor
243 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_read_from_str(isl_ctx *ctx,
244 const char *str);
245 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_read_from_file(isl_ctx *ctx,
246 FILE *input);
247 __isl_give isl_printer *isl_printer_print_pw_qpolynomial(
248 __isl_take isl_printer *p, __isl_keep isl_pw_qpolynomial *pwqp);
249 void isl_pw_qpolynomial_print(__isl_keep isl_pw_qpolynomial *pwqp, FILE *out,
250 unsigned output_format);
251 void isl_pw_qpolynomial_dump(__isl_keep isl_pw_qpolynomial *pwqp);
253 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_coalesce(
254 __isl_take isl_pw_qpolynomial *pwqp);
255 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_gist(
256 __isl_take isl_pw_qpolynomial *pwqp, __isl_take isl_set *context);
257 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_gist_params(
258 __isl_take isl_pw_qpolynomial *pwqp, __isl_take isl_set *context);
260 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_split_periods(
261 __isl_take isl_pw_qpolynomial *pwqp, int max_periods);
263 __isl_give isl_pw_qpolynomial *isl_basic_set_multiplicative_call(
264 __isl_take isl_basic_set *bset,
265 __isl_give isl_pw_qpolynomial *(*fn)(__isl_take isl_basic_set *bset));
267 isl_ctx *isl_qpolynomial_fold_get_ctx(__isl_keep isl_qpolynomial_fold *fold);
268 enum isl_fold isl_qpolynomial_fold_get_type(__isl_keep isl_qpolynomial_fold *fold);
270 __isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_empty(enum isl_fold type,
271 __isl_take isl_space *dim);
272 __isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_alloc(
273 enum isl_fold type, __isl_take isl_qpolynomial *qp);
274 __isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_copy(
275 __isl_keep isl_qpolynomial_fold *fold);
276 void isl_qpolynomial_fold_free(__isl_take isl_qpolynomial_fold *fold);
278 int isl_qpolynomial_fold_is_empty(__isl_keep isl_qpolynomial_fold *fold);
279 int isl_qpolynomial_fold_plain_is_equal(__isl_keep isl_qpolynomial_fold *fold1,
280 __isl_keep isl_qpolynomial_fold *fold2);
282 __isl_give isl_space *isl_qpolynomial_fold_get_space(
283 __isl_keep isl_qpolynomial_fold *fold);
285 __isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_fold(
286 __isl_take isl_qpolynomial_fold *fold1,
287 __isl_take isl_qpolynomial_fold *fold2);
289 __isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_mul_isl_int(
290 __isl_take isl_qpolynomial_fold *fold, isl_int v);
291 __isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_scale(
292 __isl_take isl_qpolynomial_fold *fold, isl_int v);
294 __isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_move_dims(
295 __isl_take isl_qpolynomial_fold *fold,
296 enum isl_dim_type dst_type, unsigned dst_pos,
297 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
299 __isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_substitute(
300 __isl_take isl_qpolynomial_fold *fold,
301 enum isl_dim_type type, unsigned first, unsigned n,
302 __isl_keep isl_qpolynomial **subs);
304 __isl_give isl_qpolynomial *isl_qpolynomial_fold_eval(
305 __isl_take isl_qpolynomial_fold *fold, __isl_take isl_point *pnt);
307 __isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_gist_params(
308 __isl_take isl_qpolynomial_fold *fold, __isl_take isl_set *context);
309 __isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_gist(
310 __isl_take isl_qpolynomial_fold *fold, __isl_take isl_set *context);
312 int isl_qpolynomial_fold_foreach_qpolynomial(
313 __isl_keep isl_qpolynomial_fold *fold,
314 int (*fn)(__isl_take isl_qpolynomial *qp, void *user), void *user);
316 __isl_give isl_printer *isl_printer_print_qpolynomial_fold(
317 __isl_take isl_printer *p, __isl_keep isl_qpolynomial_fold *fold);
318 void isl_qpolynomial_fold_print(__isl_keep isl_qpolynomial_fold *fold, FILE *out,
319 unsigned output_format);
320 void isl_qpolynomial_fold_dump(__isl_keep isl_qpolynomial_fold *fold);
322 isl_ctx *isl_pw_qpolynomial_fold_get_ctx(__isl_keep isl_pw_qpolynomial_fold *pwf);
324 int isl_pw_qpolynomial_fold_plain_is_equal(
325 __isl_keep isl_pw_qpolynomial_fold *pwf1,
326 __isl_keep isl_pw_qpolynomial_fold *pwf2);
328 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_from_pw_qpolynomial(
329 enum isl_fold type, __isl_take isl_pw_qpolynomial *pwqp);
331 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_alloc(
332 enum isl_fold type,
333 __isl_take isl_set *set, __isl_take isl_qpolynomial_fold *fold);
334 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_copy(
335 __isl_keep isl_pw_qpolynomial_fold *pwf);
336 void *isl_pw_qpolynomial_fold_free(__isl_take isl_pw_qpolynomial_fold *pwf);
338 int isl_pw_qpolynomial_fold_is_zero(__isl_keep isl_pw_qpolynomial_fold *pwf);
340 __isl_give isl_space *isl_pw_qpolynomial_fold_get_domain_space(
341 __isl_keep isl_pw_qpolynomial_fold *pwf);
342 __isl_give isl_space *isl_pw_qpolynomial_fold_get_space(
343 __isl_keep isl_pw_qpolynomial_fold *pwf);
344 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_reset_space(
345 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_space *dim);
346 unsigned isl_pw_qpolynomial_fold_dim(__isl_keep isl_pw_qpolynomial_fold *pwf,
347 enum isl_dim_type type);
348 int isl_pw_qpolynomial_fold_has_equal_space(
349 __isl_keep isl_pw_qpolynomial_fold *pwf1,
350 __isl_keep isl_pw_qpolynomial_fold *pwf2);
352 size_t isl_pw_qpolynomial_fold_size(__isl_keep isl_pw_qpolynomial_fold *pwf);
354 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_zero(
355 __isl_take isl_space *dim, enum isl_fold type);
357 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_set_dim_name(
358 __isl_take isl_pw_qpolynomial_fold *pwf,
359 enum isl_dim_type type, unsigned pos, const char *s);
361 __isl_give isl_set *isl_pw_qpolynomial_fold_domain(
362 __isl_take isl_pw_qpolynomial_fold *pwf);
363 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_intersect_domain(
364 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_set *set);
365 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_intersect_params(
366 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_set *set);
368 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_add(
369 __isl_take isl_pw_qpolynomial_fold *pwf1,
370 __isl_take isl_pw_qpolynomial_fold *pwf2);
371 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_fold(
372 __isl_take isl_pw_qpolynomial_fold *pwf1,
373 __isl_take isl_pw_qpolynomial_fold *pwf2);
374 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_add_disjoint(
375 __isl_take isl_pw_qpolynomial_fold *pwf1,
376 __isl_take isl_pw_qpolynomial_fold *pwf2);
377 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_mul_isl_int(
378 __isl_take isl_pw_qpolynomial_fold *pwf, isl_int v);
380 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_project_domain_on_params(
381 __isl_take isl_pw_qpolynomial_fold *pwf);
382 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_drop_dims(
383 __isl_take isl_pw_qpolynomial_fold *pwf,
384 enum isl_dim_type type, unsigned first, unsigned n);
385 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_move_dims(
386 __isl_take isl_pw_qpolynomial_fold *pwf,
387 enum isl_dim_type dst_type, unsigned dst_pos,
388 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
390 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_fix_dim(
391 __isl_take isl_pw_qpolynomial_fold *pwf,
392 enum isl_dim_type type, unsigned n, isl_int v);
394 __isl_give isl_qpolynomial *isl_pw_qpolynomial_fold_eval(
395 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_point *pnt);
397 int isl_pw_qpolynomial_fold_foreach_piece(
398 __isl_keep isl_pw_qpolynomial_fold *pwf,
399 int (*fn)(__isl_take isl_set *set, __isl_take isl_qpolynomial_fold *fold,
400 void *user), void *user);
401 int isl_pw_qpolynomial_fold_foreach_lifted_piece(
402 __isl_keep isl_pw_qpolynomial_fold *pwf,
403 int (*fn)(__isl_take isl_set *set, __isl_take isl_qpolynomial_fold *fold,
404 void *user), void *user);
406 __isl_give isl_printer *isl_printer_print_pw_qpolynomial_fold(
407 __isl_take isl_printer *p, __isl_keep isl_pw_qpolynomial_fold *pwf);
408 void isl_pw_qpolynomial_fold_print(__isl_keep isl_pw_qpolynomial_fold *pwf,
409 FILE *out, unsigned output_format);
410 void isl_pw_qpolynomial_fold_dump(__isl_keep isl_pw_qpolynomial_fold *pwf);
412 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_coalesce(
413 __isl_take isl_pw_qpolynomial_fold *pwf);
414 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_gist(
415 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_set *context);
416 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_gist_params(
417 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_set *context);
419 __isl_give isl_qpolynomial *isl_pw_qpolynomial_fold_max(
420 __isl_take isl_pw_qpolynomial_fold *pwf);
421 __isl_give isl_qpolynomial *isl_pw_qpolynomial_fold_min(
422 __isl_take isl_pw_qpolynomial_fold *pwf);
424 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_bound(
425 __isl_take isl_pw_qpolynomial *pwqp, enum isl_fold type, int *tight);
426 __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_bound(
427 __isl_take isl_pw_qpolynomial_fold *pwf, int *tight);
428 __isl_give isl_pw_qpolynomial_fold *isl_set_apply_pw_qpolynomial_fold(
429 __isl_take isl_set *set, __isl_take isl_pw_qpolynomial_fold *pwf,
430 int *tight);
431 __isl_give isl_pw_qpolynomial_fold *isl_map_apply_pw_qpolynomial_fold(
432 __isl_take isl_map *map, __isl_take isl_pw_qpolynomial_fold *pwf,
433 int *tight);
435 __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_to_polynomial(
436 __isl_take isl_pw_qpolynomial *pwqp, int sign);
438 isl_ctx *isl_union_pw_qpolynomial_get_ctx(
439 __isl_keep isl_union_pw_qpolynomial *upwqp);
441 int isl_union_pw_qpolynomial_plain_is_equal(
442 __isl_keep isl_union_pw_qpolynomial *upwqp1,
443 __isl_keep isl_union_pw_qpolynomial *upwqp2);
445 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_from_pw_qpolynomial(__isl_take isl_pw_qpolynomial *pwqp);
446 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_zero(
447 __isl_take isl_space *dim);
448 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_add_pw_qpolynomial(
449 __isl_take isl_union_pw_qpolynomial *upwqp,
450 __isl_take isl_pw_qpolynomial *pwqp);
451 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_copy(
452 __isl_keep isl_union_pw_qpolynomial *upwqp);
453 void *isl_union_pw_qpolynomial_free(__isl_take isl_union_pw_qpolynomial *upwqp);
455 __isl_constructor
456 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_read_from_str(
457 isl_ctx *ctx, const char *str);
459 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_add(
460 __isl_take isl_union_pw_qpolynomial *upwqp1,
461 __isl_take isl_union_pw_qpolynomial *upwqp2);
462 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_sub(
463 __isl_take isl_union_pw_qpolynomial *upwqp1,
464 __isl_take isl_union_pw_qpolynomial *upwqp2);
465 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_mul(
466 __isl_take isl_union_pw_qpolynomial *upwqp1,
467 __isl_take isl_union_pw_qpolynomial *upwqp2);
468 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_mul_isl_int(
469 __isl_take isl_union_pw_qpolynomial *upwqp, isl_int v);
471 __isl_give isl_union_set *isl_union_pw_qpolynomial_domain(
472 __isl_take isl_union_pw_qpolynomial *upwqp);
473 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_intersect_domain(
474 __isl_take isl_union_pw_qpolynomial *upwpq,
475 __isl_take isl_union_set *uset);
476 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_intersect_params(
477 __isl_take isl_union_pw_qpolynomial *upwpq,
478 __isl_take isl_set *set);
480 __isl_give isl_space *isl_union_pw_qpolynomial_get_space(
481 __isl_keep isl_union_pw_qpolynomial *upwqp);
483 __isl_give isl_qpolynomial *isl_union_pw_qpolynomial_eval(
484 __isl_take isl_union_pw_qpolynomial *upwqp, __isl_take isl_point *pnt);
486 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_coalesce(
487 __isl_take isl_union_pw_qpolynomial *upwqp);
488 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_gist(
489 __isl_take isl_union_pw_qpolynomial *upwqp,
490 __isl_take isl_union_set *context);
491 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_gist_params(
492 __isl_take isl_union_pw_qpolynomial *upwqp,
493 __isl_take isl_set *context);
495 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_align_params(
496 __isl_take isl_union_pw_qpolynomial *upwqp,
497 __isl_take isl_space *model);
499 int isl_union_pw_qpolynomial_foreach_pw_qpolynomial(
500 __isl_keep isl_union_pw_qpolynomial *upwqp,
501 int (*fn)(__isl_take isl_pw_qpolynomial *pwqp, void *user), void *user);
502 __isl_give isl_pw_qpolynomial *isl_union_pw_qpolynomial_extract_pw_qpolynomial(
503 __isl_keep isl_union_pw_qpolynomial *upwqp, __isl_take isl_space *dim);
505 __isl_give isl_printer *isl_printer_print_union_pw_qpolynomial(
506 __isl_take isl_printer *p, __isl_keep isl_union_pw_qpolynomial *upwqp);
508 isl_ctx *isl_union_pw_qpolynomial_fold_get_ctx(
509 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
511 int isl_union_pw_qpolynomial_fold_plain_is_equal(
512 __isl_keep isl_union_pw_qpolynomial_fold *upwf1,
513 __isl_keep isl_union_pw_qpolynomial_fold *upwf2);
515 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_from_pw_qpolynomial_fold(__isl_take isl_pw_qpolynomial_fold *pwf);
516 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_zero(
517 __isl_take isl_space *dim, enum isl_fold type);
518 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_fold_pw_qpolynomial_fold(
519 __isl_take isl_union_pw_qpolynomial_fold *upwqp,
520 __isl_take isl_pw_qpolynomial_fold *pwqp);
521 void *isl_union_pw_qpolynomial_fold_free(
522 __isl_take isl_union_pw_qpolynomial_fold *upwf);
523 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_copy(
524 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
526 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_fold(
527 __isl_take isl_union_pw_qpolynomial_fold *upwf1,
528 __isl_take isl_union_pw_qpolynomial_fold *upwf2);
529 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_add_union_pw_qpolynomial(
530 __isl_take isl_union_pw_qpolynomial_fold *upwf,
531 __isl_take isl_union_pw_qpolynomial *upwqp);
532 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_mul_isl_int(
533 __isl_take isl_union_pw_qpolynomial_fold *upwf, isl_int v);
535 __isl_give isl_union_set *isl_union_pw_qpolynomial_fold_domain(
536 __isl_take isl_union_pw_qpolynomial_fold *upwf);
537 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_intersect_domain(
538 __isl_take isl_union_pw_qpolynomial_fold *upwf,
539 __isl_take isl_union_set *uset);
540 __isl_give isl_union_pw_qpolynomial_fold *
541 isl_union_pw_qpolynomial_fold_intersect_params(
542 __isl_take isl_union_pw_qpolynomial_fold *upwf,
543 __isl_take isl_set *set);
545 enum isl_fold isl_union_pw_qpolynomial_fold_get_type(
546 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
547 __isl_give isl_space *isl_union_pw_qpolynomial_fold_get_space(
548 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
550 __isl_give isl_qpolynomial *isl_union_pw_qpolynomial_fold_eval(
551 __isl_take isl_union_pw_qpolynomial_fold *upwf,
552 __isl_take isl_point *pnt);
554 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_coalesce(
555 __isl_take isl_union_pw_qpolynomial_fold *upwf);
556 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_gist(
557 __isl_take isl_union_pw_qpolynomial_fold *upwf,
558 __isl_take isl_union_set *context);
559 __isl_give isl_union_pw_qpolynomial_fold *
560 isl_union_pw_qpolynomial_fold_gist_params(
561 __isl_take isl_union_pw_qpolynomial_fold *upwf,
562 __isl_take isl_set *context);
564 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_align_params(
565 __isl_take isl_union_pw_qpolynomial_fold *upwf,
566 __isl_take isl_space *model);
568 int isl_union_pw_qpolynomial_fold_foreach_pw_qpolynomial_fold(
569 __isl_keep isl_union_pw_qpolynomial_fold *upwf,
570 int (*fn)(__isl_take isl_pw_qpolynomial_fold *pwf,
571 void *user), void *user);
572 __isl_give isl_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_extract_pw_qpolynomial_fold(
573 __isl_keep isl_union_pw_qpolynomial_fold *upwf, __isl_take isl_space *dim);
575 __isl_give isl_printer *isl_printer_print_union_pw_qpolynomial_fold(
576 __isl_take isl_printer *p,
577 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
579 __isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_bound(
580 __isl_take isl_union_pw_qpolynomial *upwqp,
581 enum isl_fold type, int *tight);
582 __isl_give isl_union_pw_qpolynomial_fold *isl_union_set_apply_union_pw_qpolynomial_fold(
583 __isl_take isl_union_set *uset,
584 __isl_take isl_union_pw_qpolynomial_fold *upwf, int *tight);
585 __isl_give isl_union_pw_qpolynomial_fold *isl_union_map_apply_union_pw_qpolynomial_fold(
586 __isl_take isl_union_map *umap,
587 __isl_take isl_union_pw_qpolynomial_fold *upwf, int *tight);
589 __isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_to_polynomial(
590 __isl_take isl_union_pw_qpolynomial *upwqp, int sign);
592 #if defined(__cplusplus)
594 #endif
596 #include <isl/dim.h>
598 #endif