source: Daodan/MSYS2/mingw32/include/isl/polynomial.h@ 1181

Last change on this file since 1181 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 37.1 KB
RevLine 
[1166]1#ifndef ISL_POLYNOMIAL_H
2#define ISL_POLYNOMIAL_H
3
4#include <isl/ctx.h>
5#include <isl/constraint.h>
6#include <isl/space_type.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_type.h>
14
15#if defined(__cplusplus)
16extern "C" {
17#endif
18
19isl_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);
23isl_size isl_qpolynomial_dim(__isl_keep isl_qpolynomial *qp,
24 enum isl_dim_type type);
25isl_bool isl_qpolynomial_involves_dims(__isl_keep isl_qpolynomial *qp,
26 enum isl_dim_type type, unsigned first, unsigned n);
27
28__isl_give isl_val *isl_qpolynomial_get_constant_val(
29 __isl_keep isl_qpolynomial *qp);
30
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);
34
35__isl_give isl_qpolynomial *isl_qpolynomial_zero_on_domain(
36 __isl_take isl_space *domain);
37__isl_give isl_qpolynomial *isl_qpolynomial_one_on_domain(
38 __isl_take isl_space *domain);
39__isl_give isl_qpolynomial *isl_qpolynomial_infty_on_domain(
40 __isl_take isl_space *domain);
41__isl_give isl_qpolynomial *isl_qpolynomial_neginfty_on_domain(
42 __isl_take isl_space *domain);
43__isl_give isl_qpolynomial *isl_qpolynomial_nan_on_domain(
44 __isl_take isl_space *domain);
45__isl_give isl_qpolynomial *isl_qpolynomial_val_on_domain(
46 __isl_take isl_space *space, __isl_take isl_val *val);
47__isl_give isl_qpolynomial *isl_qpolynomial_var_on_domain(
48 __isl_take isl_space *domain,
49 enum isl_dim_type type, unsigned pos);
50__isl_give isl_qpolynomial *isl_qpolynomial_copy(__isl_keep isl_qpolynomial *qp);
51__isl_null isl_qpolynomial *isl_qpolynomial_free(
52 __isl_take isl_qpolynomial *qp);
53
54isl_bool isl_qpolynomial_plain_is_equal(__isl_keep isl_qpolynomial *qp1,
55 __isl_keep isl_qpolynomial *qp2);
56isl_bool isl_qpolynomial_is_zero(__isl_keep isl_qpolynomial *qp);
57isl_bool isl_qpolynomial_is_nan(__isl_keep isl_qpolynomial *qp);
58isl_bool isl_qpolynomial_is_infty(__isl_keep isl_qpolynomial *qp);
59isl_bool isl_qpolynomial_is_neginfty(__isl_keep isl_qpolynomial *qp);
60int isl_qpolynomial_sgn(__isl_keep isl_qpolynomial *qp);
61
62__isl_give isl_qpolynomial *isl_qpolynomial_neg(__isl_take isl_qpolynomial *qp);
63__isl_give isl_qpolynomial *isl_qpolynomial_add(__isl_take isl_qpolynomial *qp1,
64 __isl_take isl_qpolynomial *qp2);
65__isl_give isl_qpolynomial *isl_qpolynomial_sub(__isl_take isl_qpolynomial *qp1,
66 __isl_take isl_qpolynomial *qp2);
67__isl_give isl_qpolynomial *isl_qpolynomial_mul(__isl_take isl_qpolynomial *qp1,
68 __isl_take isl_qpolynomial *qp2);
69__isl_give isl_qpolynomial *isl_qpolynomial_pow(__isl_take isl_qpolynomial *qp,
70 unsigned power);
71__isl_give isl_qpolynomial *isl_qpolynomial_scale_val(
72 __isl_take isl_qpolynomial *qp, __isl_take isl_val *v);
73__isl_give isl_qpolynomial *isl_qpolynomial_scale_down_val(
74 __isl_take isl_qpolynomial *qp, __isl_take isl_val *v);
75
76__isl_give isl_qpolynomial *isl_qpolynomial_insert_dims(
77 __isl_take isl_qpolynomial *qp, enum isl_dim_type type,
78 unsigned first, unsigned n);
79__isl_give isl_qpolynomial *isl_qpolynomial_add_dims(
80 __isl_take isl_qpolynomial *qp, enum isl_dim_type type, unsigned n);
81__isl_give isl_qpolynomial *isl_qpolynomial_move_dims(
82 __isl_take isl_qpolynomial *qp,
83 enum isl_dim_type dst_type, unsigned dst_pos,
84 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
85__isl_give isl_qpolynomial *isl_qpolynomial_project_domain_on_params(
86 __isl_take isl_qpolynomial *qp);
87__isl_give isl_qpolynomial *isl_qpolynomial_drop_dims(
88 __isl_take isl_qpolynomial *qp,
89 enum isl_dim_type type, unsigned first, unsigned n);
90
91__isl_give isl_qpolynomial *isl_qpolynomial_substitute(
92 __isl_take isl_qpolynomial *qp,
93 enum isl_dim_type type, unsigned first, unsigned n,
94 __isl_keep isl_qpolynomial **subs);
95
96isl_stat isl_qpolynomial_as_polynomial_on_domain(__isl_keep isl_qpolynomial *qp,
97 __isl_keep isl_basic_set *bset,
98 isl_stat (*fn)(__isl_take isl_basic_set *bset,
99 __isl_take isl_qpolynomial *poly, void *user), void *user);
100
101__isl_give isl_qpolynomial *isl_qpolynomial_homogenize(
102 __isl_take isl_qpolynomial *poly);
103
104__isl_give isl_qpolynomial *isl_qpolynomial_align_params(
105 __isl_take isl_qpolynomial *qp, __isl_take isl_space *model);
106
107isl_ctx *isl_term_get_ctx(__isl_keep isl_term *term);
108
109__isl_give isl_term *isl_term_copy(__isl_keep isl_term *term);
110__isl_null isl_term *isl_term_free(__isl_take isl_term *term);
111
112isl_size isl_term_dim(__isl_keep isl_term *term, enum isl_dim_type type);
113__isl_give isl_val *isl_term_get_coefficient_val(__isl_keep isl_term *term);
114isl_size 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);
117
118isl_stat isl_qpolynomial_foreach_term(__isl_keep isl_qpolynomial *qp,
119 isl_stat (*fn)(__isl_take isl_term *term, void *user), void *user);
120
121__isl_give isl_val *isl_qpolynomial_eval(__isl_take isl_qpolynomial *qp,
122 __isl_take isl_point *pnt);
123
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);
128
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);
135
136__isl_give isl_printer *isl_printer_print_qpolynomial(
137 __isl_take isl_printer *p, __isl_keep isl_qpolynomial *qp);
138void isl_qpolynomial_print(__isl_keep isl_qpolynomial *qp, FILE *out,
139 unsigned output_format);
140void isl_qpolynomial_dump(__isl_keep isl_qpolynomial *qp);
141
142isl_ctx *isl_pw_qpolynomial_get_ctx(__isl_keep isl_pw_qpolynomial *pwqp);
143
144isl_bool isl_pw_qpolynomial_involves_nan(__isl_keep isl_pw_qpolynomial *pwqp);
145isl_bool isl_pw_qpolynomial_plain_is_equal(__isl_keep isl_pw_qpolynomial *pwqp1,
146 __isl_keep isl_pw_qpolynomial *pwqp2);
147
148__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_zero(
149 __isl_take isl_space *space);
150__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_alloc(__isl_take isl_set *set,
151 __isl_take isl_qpolynomial *qp);
152__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_from_qpolynomial(
153 __isl_take isl_qpolynomial *qp);
154__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_copy(
155 __isl_keep isl_pw_qpolynomial *pwqp);
156__isl_null isl_pw_qpolynomial *isl_pw_qpolynomial_free(
157 __isl_take isl_pw_qpolynomial *pwqp);
158
159isl_bool isl_pw_qpolynomial_is_zero(__isl_keep isl_pw_qpolynomial *pwqp);
160
161__isl_give isl_space *isl_pw_qpolynomial_get_domain_space(
162 __isl_keep isl_pw_qpolynomial *pwqp);
163__isl_give isl_space *isl_pw_qpolynomial_get_space(
164 __isl_keep isl_pw_qpolynomial *pwqp);
165__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_reset_domain_space(
166 __isl_take isl_pw_qpolynomial *pwqp, __isl_take isl_space *space);
167isl_size isl_pw_qpolynomial_dim(__isl_keep isl_pw_qpolynomial *pwqp,
168 enum isl_dim_type type);
169isl_bool isl_pw_qpolynomial_involves_param_id(
170 __isl_keep isl_pw_qpolynomial *pwqp, __isl_keep isl_id *id);
171isl_bool isl_pw_qpolynomial_involves_dims(__isl_keep isl_pw_qpolynomial *pwqp,
172 enum isl_dim_type type, unsigned first, unsigned n);
173isl_bool isl_pw_qpolynomial_has_equal_space(
174 __isl_keep isl_pw_qpolynomial *pwqp1,
175 __isl_keep isl_pw_qpolynomial *pwqp2);
176
177__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_set_dim_name(
178 __isl_take isl_pw_qpolynomial *pwqp,
179 enum isl_dim_type type, unsigned pos, const char *s);
180
181int isl_pw_qpolynomial_find_dim_by_name(__isl_keep isl_pw_qpolynomial *pwqp,
182 enum isl_dim_type type, const char *name);
183
184__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_reset_user(
185 __isl_take isl_pw_qpolynomial *pwqp);
186
187__isl_export
188__isl_give isl_set *isl_pw_qpolynomial_domain(__isl_take isl_pw_qpolynomial *pwqp);
189__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_intersect_domain(
190 __isl_take isl_pw_qpolynomial *pwpq, __isl_take isl_set *set);
191__isl_give isl_pw_qpolynomial *
192isl_pw_qpolynomial_intersect_domain_wrapped_domain(
193 __isl_take isl_pw_qpolynomial *pwpq, __isl_take isl_set *set);
194__isl_give isl_pw_qpolynomial *
195isl_pw_qpolynomial_intersect_domain_wrapped_range(
196 __isl_take isl_pw_qpolynomial *pwpq, __isl_take isl_set *set);
197__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_intersect_params(
198 __isl_take isl_pw_qpolynomial *pwpq, __isl_take isl_set *set);
199__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_subtract_domain(
200 __isl_take isl_pw_qpolynomial *pwpq, __isl_take isl_set *set);
201
202__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_project_domain_on_params(
203 __isl_take isl_pw_qpolynomial *pwqp);
204__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_from_range(
205 __isl_take isl_pw_qpolynomial *pwqp);
206__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_drop_dims(
207 __isl_take isl_pw_qpolynomial *pwqp,
208 enum isl_dim_type type, unsigned first, unsigned n);
209__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_split_dims(
210 __isl_take isl_pw_qpolynomial *pwqp,
211 enum isl_dim_type type, unsigned first, unsigned n);
212
213__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_drop_unused_params(
214 __isl_take isl_pw_qpolynomial *pwqp);
215
216__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_add(
217 __isl_take isl_pw_qpolynomial *pwqp1,
218 __isl_take isl_pw_qpolynomial *pwqp2);
219__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_sub(
220 __isl_take isl_pw_qpolynomial *pwqp1,
221 __isl_take isl_pw_qpolynomial *pwqp2);
222__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_add_disjoint(
223 __isl_take isl_pw_qpolynomial *pwqp1,
224 __isl_take isl_pw_qpolynomial *pwqp2);
225__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_neg(
226 __isl_take isl_pw_qpolynomial *pwqp);
227__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_mul(
228 __isl_take isl_pw_qpolynomial *pwqp1,
229 __isl_take isl_pw_qpolynomial *pwqp2);
230__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_scale_val(
231 __isl_take isl_pw_qpolynomial *pwqp, __isl_take isl_val *v);
232__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_scale_down_val(
233 __isl_take isl_pw_qpolynomial *pwqp, __isl_take isl_val *v);
234__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_pow(
235 __isl_take isl_pw_qpolynomial *pwqp, unsigned exponent);
236
237__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_insert_dims(
238 __isl_take isl_pw_qpolynomial *pwqp, enum isl_dim_type type,
239 unsigned first, unsigned n);
240__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_add_dims(
241 __isl_take isl_pw_qpolynomial *pwqp,
242 enum isl_dim_type type, unsigned n);
243__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_move_dims(
244 __isl_take isl_pw_qpolynomial *pwqp,
245 enum isl_dim_type dst_type, unsigned dst_pos,
246 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
247
248__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_fix_val(
249 __isl_take isl_pw_qpolynomial *pwqp,
250 enum isl_dim_type type, unsigned n, __isl_take isl_val *v);
251
252__isl_export
253__isl_give isl_val *isl_pw_qpolynomial_eval(
254 __isl_take isl_pw_qpolynomial *pwqp, __isl_take isl_point *pnt);
255
256__isl_give isl_val *isl_pw_qpolynomial_max(__isl_take isl_pw_qpolynomial *pwqp);
257__isl_give isl_val *isl_pw_qpolynomial_min(__isl_take isl_pw_qpolynomial *pwqp);
258
259isl_size isl_pw_qpolynomial_n_piece(__isl_keep isl_pw_qpolynomial *pwqp);
260isl_stat isl_pw_qpolynomial_foreach_piece(__isl_keep isl_pw_qpolynomial *pwqp,
261 isl_stat (*fn)(__isl_take isl_set *set, __isl_take isl_qpolynomial *qp,
262 void *user), void *user);
263isl_bool isl_pw_qpolynomial_every_piece(__isl_keep isl_pw_qpolynomial *pwqp,
264 isl_bool (*test)(__isl_keep isl_set *set,
265 __isl_keep isl_qpolynomial *qp, void *user), void *user);
266isl_stat isl_pw_qpolynomial_foreach_lifted_piece(
267 __isl_keep isl_pw_qpolynomial *pwqp,
268 isl_stat (*fn)(__isl_take isl_set *set, __isl_take isl_qpolynomial *qp,
269 void *user), void *user);
270isl_bool isl_pw_qpolynomial_isa_qpolynomial(
271 __isl_keep isl_pw_qpolynomial *pwqp);
272__isl_give isl_qpolynomial *isl_pw_qpolynomial_as_qpolynomial(
273 __isl_take isl_pw_qpolynomial *pwqp);
274
275__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_from_pw_aff(
276 __isl_take isl_pw_aff *pwaff);
277
278__isl_constructor
279__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_read_from_str(isl_ctx *ctx,
280 const char *str);
281__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_read_from_file(isl_ctx *ctx,
282 FILE *input);
283__isl_give char *isl_pw_qpolynomial_to_str(__isl_keep isl_pw_qpolynomial *pwqp);
284__isl_give isl_printer *isl_printer_print_pw_qpolynomial(
285 __isl_take isl_printer *p, __isl_keep isl_pw_qpolynomial *pwqp);
286void isl_pw_qpolynomial_print(__isl_keep isl_pw_qpolynomial *pwqp, FILE *out,
287 unsigned output_format);
288void isl_pw_qpolynomial_dump(__isl_keep isl_pw_qpolynomial *pwqp);
289
290__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_coalesce(
291 __isl_take isl_pw_qpolynomial *pwqp);
292__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_gist(
293 __isl_take isl_pw_qpolynomial *pwqp, __isl_take isl_set *context);
294__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_gist_params(
295 __isl_take isl_pw_qpolynomial *pwqp, __isl_take isl_set *context);
296
297__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_split_periods(
298 __isl_take isl_pw_qpolynomial *pwqp, int max_periods);
299
300__isl_give isl_pw_qpolynomial *isl_basic_set_multiplicative_call(
301 __isl_take isl_basic_set *bset,
302 __isl_give isl_pw_qpolynomial *(*fn)(__isl_take isl_basic_set *bset));
303
304isl_ctx *isl_qpolynomial_fold_get_ctx(__isl_keep isl_qpolynomial_fold *fold);
305enum isl_fold isl_qpolynomial_fold_get_type(__isl_keep isl_qpolynomial_fold *fold);
306
307__isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_empty(enum isl_fold type,
308 __isl_take isl_space *space);
309__isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_alloc(
310 enum isl_fold type, __isl_take isl_qpolynomial *qp);
311__isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_copy(
312 __isl_keep isl_qpolynomial_fold *fold);
313__isl_null isl_qpolynomial_fold *isl_qpolynomial_fold_free(
314 __isl_take isl_qpolynomial_fold *fold);
315
316isl_bool isl_qpolynomial_fold_is_empty(__isl_keep isl_qpolynomial_fold *fold);
317isl_bool isl_qpolynomial_fold_is_nan(__isl_keep isl_qpolynomial_fold *fold);
318isl_bool isl_qpolynomial_fold_plain_is_equal(
319 __isl_keep isl_qpolynomial_fold *fold1,
320 __isl_keep isl_qpolynomial_fold *fold2);
321
322__isl_give isl_space *isl_qpolynomial_fold_get_domain_space(
323 __isl_keep isl_qpolynomial_fold *fold);
324__isl_give isl_space *isl_qpolynomial_fold_get_space(
325 __isl_keep isl_qpolynomial_fold *fold);
326
327__isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_fold(
328 __isl_take isl_qpolynomial_fold *fold1,
329 __isl_take isl_qpolynomial_fold *fold2);
330
331__isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_scale_val(
332 __isl_take isl_qpolynomial_fold *fold, __isl_take isl_val *v);
333__isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_scale_down_val(
334 __isl_take isl_qpolynomial_fold *fold, __isl_take isl_val *v);
335
336__isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_move_dims(
337 __isl_take isl_qpolynomial_fold *fold,
338 enum isl_dim_type dst_type, unsigned dst_pos,
339 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
340
341__isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_substitute(
342 __isl_take isl_qpolynomial_fold *fold,
343 enum isl_dim_type type, unsigned first, unsigned n,
344 __isl_keep isl_qpolynomial **subs);
345
346__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_fix_val(
347 __isl_take isl_pw_qpolynomial_fold *pwf,
348 enum isl_dim_type type, unsigned n, __isl_take isl_val *v);
349
350__isl_give isl_val *isl_qpolynomial_fold_eval(
351 __isl_take isl_qpolynomial_fold *fold, __isl_take isl_point *pnt);
352
353__isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_gist_params(
354 __isl_take isl_qpolynomial_fold *fold, __isl_take isl_set *context);
355__isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_gist(
356 __isl_take isl_qpolynomial_fold *fold, __isl_take isl_set *context);
357
358isl_stat isl_qpolynomial_fold_foreach_qpolynomial(
359 __isl_keep isl_qpolynomial_fold *fold,
360 isl_stat (*fn)(__isl_take isl_qpolynomial *qp, void *user), void *user);
361
362__isl_give isl_printer *isl_printer_print_qpolynomial_fold(
363 __isl_take isl_printer *p, __isl_keep isl_qpolynomial_fold *fold);
364void isl_qpolynomial_fold_print(__isl_keep isl_qpolynomial_fold *fold, FILE *out,
365 unsigned output_format);
366void isl_qpolynomial_fold_dump(__isl_keep isl_qpolynomial_fold *fold);
367
368isl_ctx *isl_pw_qpolynomial_fold_get_ctx(__isl_keep isl_pw_qpolynomial_fold *pwf);
369enum isl_fold isl_pw_qpolynomial_fold_get_type(
370 __isl_keep isl_pw_qpolynomial_fold *pwf);
371
372isl_bool isl_pw_qpolynomial_fold_involves_nan(
373 __isl_keep isl_pw_qpolynomial_fold *pwf);
374isl_bool isl_pw_qpolynomial_fold_plain_is_equal(
375 __isl_keep isl_pw_qpolynomial_fold *pwf1,
376 __isl_keep isl_pw_qpolynomial_fold *pwf2);
377
378__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_from_pw_qpolynomial(
379 enum isl_fold type, __isl_take isl_pw_qpolynomial *pwqp);
380
381__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_alloc(
382 enum isl_fold type,
383 __isl_take isl_set *set, __isl_take isl_qpolynomial_fold *fold);
384__isl_give isl_pw_qpolynomial_fold *
385isl_pw_qpolynomial_fold_from_qpolynomial_fold(
386 __isl_take isl_qpolynomial_fold *fold);
387__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_copy(
388 __isl_keep isl_pw_qpolynomial_fold *pwf);
389__isl_null isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_free(
390 __isl_take isl_pw_qpolynomial_fold *pwf);
391
392isl_bool isl_pw_qpolynomial_fold_is_zero(
393 __isl_keep isl_pw_qpolynomial_fold *pwf);
394
395__isl_give isl_space *isl_pw_qpolynomial_fold_get_domain_space(
396 __isl_keep isl_pw_qpolynomial_fold *pwf);
397__isl_give isl_space *isl_pw_qpolynomial_fold_get_space(
398 __isl_keep isl_pw_qpolynomial_fold *pwf);
399__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_reset_space(
400 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_space *space);
401isl_size isl_pw_qpolynomial_fold_dim(__isl_keep isl_pw_qpolynomial_fold *pwf,
402 enum isl_dim_type type);
403isl_bool isl_pw_qpolynomial_fold_involves_param_id(
404 __isl_keep isl_pw_qpolynomial_fold *pwf, __isl_keep isl_id *id);
405isl_bool isl_pw_qpolynomial_fold_has_equal_space(
406 __isl_keep isl_pw_qpolynomial_fold *pwf1,
407 __isl_keep isl_pw_qpolynomial_fold *pwf2);
408
409size_t isl_pw_qpolynomial_fold_size(__isl_keep isl_pw_qpolynomial_fold *pwf);
410
411__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_zero(
412 __isl_take isl_space *space, enum isl_fold type);
413
414__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_set_dim_name(
415 __isl_take isl_pw_qpolynomial_fold *pwf,
416 enum isl_dim_type type, unsigned pos, const char *s);
417
418int isl_pw_qpolynomial_fold_find_dim_by_name(
419 __isl_keep isl_pw_qpolynomial_fold *pwf,
420 enum isl_dim_type type, const char *name);
421
422__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_reset_user(
423 __isl_take isl_pw_qpolynomial_fold *pwf);
424
425__isl_give isl_set *isl_pw_qpolynomial_fold_domain(
426 __isl_take isl_pw_qpolynomial_fold *pwf);
427__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_intersect_domain(
428 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_set *set);
429__isl_give isl_pw_qpolynomial_fold *
430isl_pw_qpolynomial_fold_intersect_domain_wrapped_domain(
431 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_set *set);
432__isl_give isl_pw_qpolynomial_fold *
433isl_pw_qpolynomial_fold_intersect_domain_wrapped_range(
434 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_set *set);
435__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_intersect_params(
436 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_set *set);
437__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_subtract_domain(
438 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_set *set);
439
440__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_add(
441 __isl_take isl_pw_qpolynomial_fold *pwf1,
442 __isl_take isl_pw_qpolynomial_fold *pwf2);
443__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_fold(
444 __isl_take isl_pw_qpolynomial_fold *pwf1,
445 __isl_take isl_pw_qpolynomial_fold *pwf2);
446__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_add_disjoint(
447 __isl_take isl_pw_qpolynomial_fold *pwf1,
448 __isl_take isl_pw_qpolynomial_fold *pwf2);
449__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_scale_val(
450 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_val *v);
451__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_scale_down_val(
452 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_val *v);
453
454__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_project_domain_on_params(
455 __isl_take isl_pw_qpolynomial_fold *pwf);
456__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_from_range(
457 __isl_take isl_pw_qpolynomial_fold *pwf);
458__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_drop_dims(
459 __isl_take isl_pw_qpolynomial_fold *pwf,
460 enum isl_dim_type type, unsigned first, unsigned n);
461__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_move_dims(
462 __isl_take isl_pw_qpolynomial_fold *pwf,
463 enum isl_dim_type dst_type, unsigned dst_pos,
464 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
465
466__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_drop_unused_params(
467 __isl_take isl_pw_qpolynomial_fold *pwf);
468
469__isl_give isl_val *isl_pw_qpolynomial_fold_eval(
470 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_point *pnt);
471
472isl_size isl_pw_qpolynomial_fold_n_piece(
473 __isl_keep isl_pw_qpolynomial_fold *pwf);
474isl_stat isl_pw_qpolynomial_fold_foreach_piece(
475 __isl_keep isl_pw_qpolynomial_fold *pwf,
476 isl_stat (*fn)(__isl_take isl_set *set,
477 __isl_take isl_qpolynomial_fold *fold, void *user), void *user);
478isl_bool isl_pw_qpolynomial_fold_every_piece(
479 __isl_keep isl_pw_qpolynomial_fold *pwf,
480 isl_bool (*test)(__isl_keep isl_set *set,
481 __isl_keep isl_qpolynomial_fold *fold, void *user), void *user);
482isl_stat isl_pw_qpolynomial_fold_foreach_lifted_piece(
483 __isl_keep isl_pw_qpolynomial_fold *pwf,
484 isl_stat (*fn)(__isl_take isl_set *set,
485 __isl_take isl_qpolynomial_fold *fold, void *user), void *user);
486isl_bool isl_pw_qpolynomial_fold_isa_qpolynomial_fold(
487 __isl_keep isl_pw_qpolynomial_fold *pwf);
488__isl_give isl_qpolynomial_fold *isl_pw_qpolynomial_fold_as_qpolynomial_fold(
489 __isl_take isl_pw_qpolynomial_fold *pwf);
490
491__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_read_from_str(
492 isl_ctx *ctx, const char *str);
493__isl_give isl_printer *isl_printer_print_pw_qpolynomial_fold(
494 __isl_take isl_printer *p, __isl_keep isl_pw_qpolynomial_fold *pwf);
495void isl_pw_qpolynomial_fold_print(__isl_keep isl_pw_qpolynomial_fold *pwf,
496 FILE *out, unsigned output_format);
497void isl_pw_qpolynomial_fold_dump(__isl_keep isl_pw_qpolynomial_fold *pwf);
498
499__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_coalesce(
500 __isl_take isl_pw_qpolynomial_fold *pwf);
501__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_gist(
502 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_set *context);
503__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_gist_params(
504 __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_set *context);
505
506__isl_give isl_val *isl_pw_qpolynomial_fold_max(
507 __isl_take isl_pw_qpolynomial_fold *pwf);
508__isl_give isl_val *isl_pw_qpolynomial_fold_min(
509 __isl_take isl_pw_qpolynomial_fold *pwf);
510
511__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_bound(
512 __isl_take isl_pw_qpolynomial *pwqp, enum isl_fold type,
513 isl_bool *tight);
514__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_bound(
515 __isl_take isl_pw_qpolynomial_fold *pwf, isl_bool *tight);
516__isl_give isl_pw_qpolynomial_fold *isl_set_apply_pw_qpolynomial_fold(
517 __isl_take isl_set *set, __isl_take isl_pw_qpolynomial_fold *pwf,
518 isl_bool *tight);
519__isl_give isl_pw_qpolynomial_fold *isl_map_apply_pw_qpolynomial_fold(
520 __isl_take isl_map *map, __isl_take isl_pw_qpolynomial_fold *pwf,
521 isl_bool *tight);
522
523__isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_to_polynomial(
524 __isl_take isl_pw_qpolynomial *pwqp, int sign);
525
526isl_ctx *isl_union_pw_qpolynomial_get_ctx(
527 __isl_keep isl_union_pw_qpolynomial *upwqp);
528
529isl_size isl_union_pw_qpolynomial_dim(
530 __isl_keep isl_union_pw_qpolynomial *upwqp, enum isl_dim_type type);
531
532isl_bool isl_union_pw_qpolynomial_involves_nan(
533 __isl_keep isl_union_pw_qpolynomial *upwqp);
534isl_bool isl_union_pw_qpolynomial_plain_is_equal(
535 __isl_keep isl_union_pw_qpolynomial *upwqp1,
536 __isl_keep isl_union_pw_qpolynomial *upwqp2);
537
538__isl_give isl_union_pw_qpolynomial *isl_pw_qpolynomial_to_union_pw_qpolynomial(
539 __isl_take isl_pw_qpolynomial *pwqp);
540__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_from_pw_qpolynomial(__isl_take isl_pw_qpolynomial *pwqp);
541__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_zero_ctx(
542 isl_ctx *ctx);
543__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_zero_space(
544 __isl_take isl_space *space);
545__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_zero(
546 __isl_take isl_space *space);
547__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_add_pw_qpolynomial(
548 __isl_take isl_union_pw_qpolynomial *upwqp,
549 __isl_take isl_pw_qpolynomial *pwqp);
550__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_copy(
551 __isl_keep isl_union_pw_qpolynomial *upwqp);
552__isl_null isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_free(
553 __isl_take isl_union_pw_qpolynomial *upwqp);
554
555__isl_constructor
556__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_read_from_str(
557 isl_ctx *ctx, const char *str);
558__isl_give char *isl_union_pw_qpolynomial_to_str(
559 __isl_keep isl_union_pw_qpolynomial *upwqp);
560
561__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_neg(
562 __isl_take isl_union_pw_qpolynomial *upwqp);
563
564__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_add(
565 __isl_take isl_union_pw_qpolynomial *upwqp1,
566 __isl_take isl_union_pw_qpolynomial *upwqp2);
567__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_sub(
568 __isl_take isl_union_pw_qpolynomial *upwqp1,
569 __isl_take isl_union_pw_qpolynomial *upwqp2);
570__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_mul(
571 __isl_take isl_union_pw_qpolynomial *upwqp1,
572 __isl_take isl_union_pw_qpolynomial *upwqp2);
573__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_scale_val(
574 __isl_take isl_union_pw_qpolynomial *upwqp, __isl_take isl_val *v);
575__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_scale_down_val(
576 __isl_take isl_union_pw_qpolynomial *upwqp, __isl_take isl_val *v);
577
578__isl_export
579__isl_give isl_union_set *isl_union_pw_qpolynomial_domain(
580 __isl_take isl_union_pw_qpolynomial *upwqp);
581__isl_give isl_union_pw_qpolynomial *
582isl_union_pw_qpolynomial_intersect_domain_space(
583 __isl_take isl_union_pw_qpolynomial *upwpq,
584 __isl_take isl_space *space);
585__isl_give isl_union_pw_qpolynomial *
586isl_union_pw_qpolynomial_intersect_domain_union_set(
587 __isl_take isl_union_pw_qpolynomial *upwpq,
588 __isl_take isl_union_set *uset);
589__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_intersect_domain(
590 __isl_take isl_union_pw_qpolynomial *upwpq,
591 __isl_take isl_union_set *uset);
592__isl_give isl_union_pw_qpolynomial *
593isl_union_pw_qpolynomial_intersect_domain_wrapped_domain(
594 __isl_take isl_union_pw_qpolynomial *upwpq,
595 __isl_take isl_union_set *uset);
596__isl_give isl_union_pw_qpolynomial *
597isl_union_pw_qpolynomial_intersect_domain_wrapped_range(
598 __isl_take isl_union_pw_qpolynomial *upwpq,
599 __isl_take isl_union_set *uset);
600__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_intersect_params(
601 __isl_take isl_union_pw_qpolynomial *upwpq,
602 __isl_take isl_set *set);
603__isl_give isl_union_pw_qpolynomial *
604isl_union_pw_qpolynomial_subtract_domain_union_set(
605 __isl_take isl_union_pw_qpolynomial *upwpq,
606 __isl_take isl_union_set *uset);
607__isl_give isl_union_pw_qpolynomial *
608isl_union_pw_qpolynomial_subtract_domain_space(
609 __isl_take isl_union_pw_qpolynomial *upwpq,
610 __isl_take isl_space *space);
611__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_subtract_domain(
612 __isl_take isl_union_pw_qpolynomial *upwpq,
613 __isl_take isl_union_set *uset);
614
615__isl_give isl_space *isl_union_pw_qpolynomial_get_space(
616 __isl_keep isl_union_pw_qpolynomial *upwqp);
617__isl_give isl_pw_qpolynomial_list *
618isl_union_pw_qpolynomial_get_pw_qpolynomial_list(
619 __isl_keep isl_union_pw_qpolynomial *upwqp);
620
621__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_set_dim_name(
622 __isl_take isl_union_pw_qpolynomial *upwqp,
623 enum isl_dim_type type, unsigned pos, const char *s);
624
625int isl_union_pw_qpolynomial_find_dim_by_name(
626 __isl_keep isl_union_pw_qpolynomial *upwqp,
627 enum isl_dim_type type, const char *name);
628
629__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_drop_dims(
630 __isl_take isl_union_pw_qpolynomial *upwqp,
631 enum isl_dim_type type, unsigned first, unsigned n);
632__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_reset_user(
633 __isl_take isl_union_pw_qpolynomial *upwqp);
634
635__isl_export
636__isl_give isl_val *isl_union_pw_qpolynomial_eval(
637 __isl_take isl_union_pw_qpolynomial *upwqp, __isl_take isl_point *pnt);
638
639__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_coalesce(
640 __isl_take isl_union_pw_qpolynomial *upwqp);
641__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_gist(
642 __isl_take isl_union_pw_qpolynomial *upwqp,
643 __isl_take isl_union_set *context);
644__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_gist_params(
645 __isl_take isl_union_pw_qpolynomial *upwqp,
646 __isl_take isl_set *context);
647
648__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_align_params(
649 __isl_take isl_union_pw_qpolynomial *upwqp,
650 __isl_take isl_space *model);
651
652isl_size isl_union_pw_qpolynomial_n_pw_qpolynomial(
653 __isl_keep isl_union_pw_qpolynomial *upwqp);
654isl_stat isl_union_pw_qpolynomial_foreach_pw_qpolynomial(
655 __isl_keep isl_union_pw_qpolynomial *upwqp,
656 isl_stat (*fn)(__isl_take isl_pw_qpolynomial *pwqp, void *user),
657 void *user);
658isl_bool isl_union_pw_qpolynomial_every_pw_qpolynomial(
659 __isl_keep isl_union_pw_qpolynomial *upwqp,
660 isl_bool (*test)(__isl_keep isl_pw_qpolynomial *pwqp, void *user),
661 void *user);
662__isl_give isl_pw_qpolynomial *isl_union_pw_qpolynomial_extract_pw_qpolynomial(
663 __isl_keep isl_union_pw_qpolynomial *upwqp,
664 __isl_take isl_space *space);
665
666__isl_give isl_printer *isl_printer_print_union_pw_qpolynomial(
667 __isl_take isl_printer *p, __isl_keep isl_union_pw_qpolynomial *upwqp);
668
669isl_ctx *isl_union_pw_qpolynomial_fold_get_ctx(
670 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
671
672isl_size isl_union_pw_qpolynomial_fold_dim(
673 __isl_keep isl_union_pw_qpolynomial_fold *upwf, enum isl_dim_type type);
674
675isl_bool isl_union_pw_qpolynomial_fold_involves_nan(
676 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
677isl_bool isl_union_pw_qpolynomial_fold_plain_is_equal(
678 __isl_keep isl_union_pw_qpolynomial_fold *upwf1,
679 __isl_keep isl_union_pw_qpolynomial_fold *upwf2);
680
681__isl_give isl_union_pw_qpolynomial_fold *
682isl_pw_qpolynomial_fold_to_union_pw_qpolynomial_fold(
683 __isl_take isl_pw_qpolynomial_fold *pwf);
684__isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_from_pw_qpolynomial_fold(__isl_take isl_pw_qpolynomial_fold *pwf);
685__isl_give isl_union_pw_qpolynomial_fold *
686isl_union_pw_qpolynomial_fold_zero_ctx(isl_ctx *ctx, enum isl_fold type);
687__isl_give isl_union_pw_qpolynomial_fold *
688isl_union_pw_qpolynomial_fold_zero_space(__isl_take isl_space *space,
689 enum isl_fold type);
690__isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_zero(
691 __isl_take isl_space *space, enum isl_fold type);
692__isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_fold_pw_qpolynomial_fold(
693 __isl_take isl_union_pw_qpolynomial_fold *upwqp,
694 __isl_take isl_pw_qpolynomial_fold *pwqp);
695__isl_null isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_free(
696 __isl_take isl_union_pw_qpolynomial_fold *upwf);
697__isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_copy(
698 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
699
700__isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_fold(
701 __isl_take isl_union_pw_qpolynomial_fold *upwf1,
702 __isl_take isl_union_pw_qpolynomial_fold *upwf2);
703__isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_add_union_pw_qpolynomial(
704 __isl_take isl_union_pw_qpolynomial_fold *upwf,
705 __isl_take isl_union_pw_qpolynomial *upwqp);
706__isl_give isl_union_pw_qpolynomial_fold *
707isl_union_pw_qpolynomial_fold_scale_val(
708 __isl_take isl_union_pw_qpolynomial_fold *upwf, __isl_take isl_val *v);
709__isl_give isl_union_pw_qpolynomial_fold *
710isl_union_pw_qpolynomial_fold_scale_down_val(
711 __isl_take isl_union_pw_qpolynomial_fold *upwf, __isl_take isl_val *v);
712
713__isl_give isl_union_set *isl_union_pw_qpolynomial_fold_domain(
714 __isl_take isl_union_pw_qpolynomial_fold *upwf);
715__isl_give isl_union_pw_qpolynomial_fold *
716isl_union_pw_qpolynomial_fold_intersect_domain_space(
717 __isl_take isl_union_pw_qpolynomial_fold *upwf,
718 __isl_take isl_space *space);
719__isl_give isl_union_pw_qpolynomial_fold *
720isl_union_pw_qpolynomial_fold_intersect_domain_union_set(
721 __isl_take isl_union_pw_qpolynomial_fold *upwf,
722 __isl_take isl_union_set *uset);
723__isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_intersect_domain(
724 __isl_take isl_union_pw_qpolynomial_fold *upwf,
725 __isl_take isl_union_set *uset);
726__isl_give isl_union_pw_qpolynomial_fold *
727isl_union_pw_qpolynomial_fold_intersect_domain_wrapped_domain(
728 __isl_take isl_union_pw_qpolynomial_fold *upwf,
729 __isl_take isl_union_set *uset);
730__isl_give isl_union_pw_qpolynomial_fold *
731isl_union_pw_qpolynomial_fold_intersect_domain_wrapped_range(
732 __isl_take isl_union_pw_qpolynomial_fold *upwf,
733 __isl_take isl_union_set *uset);
734__isl_give isl_union_pw_qpolynomial_fold *
735isl_union_pw_qpolynomial_fold_intersect_params(
736 __isl_take isl_union_pw_qpolynomial_fold *upwf,
737 __isl_take isl_set *set);
738__isl_give isl_union_pw_qpolynomial_fold *
739isl_union_pw_qpolynomial_fold_subtract_domain_union_set(
740 __isl_take isl_union_pw_qpolynomial_fold *upwf,
741 __isl_take isl_union_set *uset);
742__isl_give isl_union_pw_qpolynomial_fold *
743isl_union_pw_qpolynomial_fold_subtract_domain_space(
744 __isl_take isl_union_pw_qpolynomial_fold *upwf,
745 __isl_take isl_space *space);
746__isl_give isl_union_pw_qpolynomial_fold *
747isl_union_pw_qpolynomial_fold_subtract_domain(
748 __isl_take isl_union_pw_qpolynomial_fold *upwf,
749 __isl_take isl_union_set *uset);
750
751enum isl_fold isl_union_pw_qpolynomial_fold_get_type(
752 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
753__isl_give isl_space *isl_union_pw_qpolynomial_fold_get_space(
754 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
755__isl_give isl_pw_qpolynomial_fold_list *
756isl_union_pw_qpolynomial_fold_get_pw_qpolynomial_fold_list(
757 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
758
759__isl_give isl_union_pw_qpolynomial_fold *
760isl_union_pw_qpolynomial_fold_set_dim_name(
761 __isl_take isl_union_pw_qpolynomial_fold *upwf,
762 enum isl_dim_type type, unsigned pos, const char *s);
763
764int isl_union_pw_qpolynomial_fold_find_dim_by_name(
765 __isl_keep isl_union_pw_qpolynomial_fold *upwf,
766 enum isl_dim_type type, const char *name);
767
768__isl_give isl_union_pw_qpolynomial_fold *
769 isl_union_pw_qpolynomial_fold_drop_dims(
770 __isl_take isl_union_pw_qpolynomial_fold *upwf,
771 enum isl_dim_type type, unsigned first, unsigned n);
772__isl_give isl_union_pw_qpolynomial_fold *
773isl_union_pw_qpolynomial_fold_reset_user(
774 __isl_take isl_union_pw_qpolynomial_fold *upwf);
775
776__isl_give isl_val *isl_union_pw_qpolynomial_fold_eval(
777 __isl_take isl_union_pw_qpolynomial_fold *upwf,
778 __isl_take isl_point *pnt);
779
780__isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_coalesce(
781 __isl_take isl_union_pw_qpolynomial_fold *upwf);
782__isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_gist(
783 __isl_take isl_union_pw_qpolynomial_fold *upwf,
784 __isl_take isl_union_set *context);
785__isl_give isl_union_pw_qpolynomial_fold *
786isl_union_pw_qpolynomial_fold_gist_params(
787 __isl_take isl_union_pw_qpolynomial_fold *upwf,
788 __isl_take isl_set *context);
789
790__isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_align_params(
791 __isl_take isl_union_pw_qpolynomial_fold *upwf,
792 __isl_take isl_space *model);
793
794isl_size isl_union_pw_qpolynomial_fold_n_pw_qpolynomial_fold(
795 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
796isl_stat isl_union_pw_qpolynomial_fold_foreach_pw_qpolynomial_fold(
797 __isl_keep isl_union_pw_qpolynomial_fold *upwf,
798 isl_stat (*fn)(__isl_take isl_pw_qpolynomial_fold *pwf,
799 void *user), void *user);
800isl_bool isl_union_pw_qpolynomial_fold_every_pw_qpolynomial_fold(
801 __isl_keep isl_union_pw_qpolynomial_fold *upwf,
802 isl_bool (*test)(__isl_keep isl_pw_qpolynomial_fold *pwf,
803 void *user), void *user);
804__isl_give isl_pw_qpolynomial_fold *isl_union_pw_qpolynomial_fold_extract_pw_qpolynomial_fold(
805 __isl_keep isl_union_pw_qpolynomial_fold *upwf,
806 __isl_take isl_space *space);
807
808__isl_give isl_printer *isl_printer_print_union_pw_qpolynomial_fold(
809 __isl_take isl_printer *p,
810 __isl_keep isl_union_pw_qpolynomial_fold *upwf);
811
812__isl_give isl_union_pw_qpolynomial_fold *isl_union_pw_qpolynomial_bound(
813 __isl_take isl_union_pw_qpolynomial *upwqp,
814 enum isl_fold type, isl_bool *tight);
815__isl_give isl_union_pw_qpolynomial_fold *isl_union_set_apply_union_pw_qpolynomial_fold(
816 __isl_take isl_union_set *uset,
817 __isl_take isl_union_pw_qpolynomial_fold *upwf, isl_bool *tight);
818__isl_give isl_union_pw_qpolynomial_fold *isl_union_map_apply_union_pw_qpolynomial_fold(
819 __isl_take isl_union_map *umap,
820 __isl_take isl_union_pw_qpolynomial_fold *upwf, isl_bool *tight);
821
822__isl_give isl_union_pw_qpolynomial *isl_union_pw_qpolynomial_to_polynomial(
823 __isl_take isl_union_pw_qpolynomial *upwqp, int sign);
824
825ISL_DECLARE_LIST_FN(qpolynomial)
826ISL_DECLARE_LIST_FN(pw_qpolynomial)
827ISL_DECLARE_LIST_FN(pw_qpolynomial_fold)
828
829#if defined(__cplusplus)
830}
831#endif
832
833#endif
Note: See TracBrowser for help on using the repository browser.