1 #ifndef ISL_POLYNOMIAL_H
2 #define ISL_POLYNOMIAL_H
5 #include <isl/constraint.h>
6 #include <isl/space_type.h>
7 #include <isl/set_type.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>
15 #if defined(__cplusplus)
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 isl_size
isl_qpolynomial_dim(__isl_keep isl_qpolynomial
*qp
,
24 enum isl_dim_type type
);
25 isl_bool
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(
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
);
54 isl_bool
isl_qpolynomial_plain_is_equal(__isl_keep isl_qpolynomial
*qp1
,
55 __isl_keep isl_qpolynomial
*qp2
);
56 isl_bool
isl_qpolynomial_is_zero(__isl_keep isl_qpolynomial
*qp
);
57 isl_bool
isl_qpolynomial_is_nan(__isl_keep isl_qpolynomial
*qp
);
58 isl_bool
isl_qpolynomial_is_infty(__isl_keep isl_qpolynomial
*qp
);
59 isl_bool
isl_qpolynomial_is_neginfty(__isl_keep isl_qpolynomial
*qp
);
60 int isl_qpolynomial_sgn(__isl_keep isl_qpolynomial
*qp
);
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
,
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
);
76 __isl_give isl_qpolynomial
*isl_qpolynomial_domain_reverse(
77 __isl_take isl_qpolynomial
*qp
);
78 __isl_give isl_qpolynomial
*isl_qpolynomial_insert_dims(
79 __isl_take isl_qpolynomial
*qp
, enum isl_dim_type type
,
80 unsigned first
, unsigned n
);
81 __isl_give isl_qpolynomial
*isl_qpolynomial_add_dims(
82 __isl_take isl_qpolynomial
*qp
, enum isl_dim_type type
, unsigned n
);
83 __isl_give isl_qpolynomial
*isl_qpolynomial_move_dims(
84 __isl_take isl_qpolynomial
*qp
,
85 enum isl_dim_type dst_type
, unsigned dst_pos
,
86 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
87 __isl_give isl_qpolynomial
*isl_qpolynomial_project_domain_on_params(
88 __isl_take isl_qpolynomial
*qp
);
89 __isl_give isl_qpolynomial
*isl_qpolynomial_drop_dims(
90 __isl_take isl_qpolynomial
*qp
,
91 enum isl_dim_type type
, unsigned first
, unsigned n
);
93 __isl_give isl_qpolynomial
*isl_qpolynomial_substitute(
94 __isl_take isl_qpolynomial
*qp
,
95 enum isl_dim_type type
, unsigned first
, unsigned n
,
96 __isl_keep isl_qpolynomial
**subs
);
98 isl_stat
isl_qpolynomial_as_polynomial_on_domain(__isl_keep isl_qpolynomial
*qp
,
99 __isl_keep isl_basic_set
*bset
,
100 isl_stat (*fn
)(__isl_take isl_basic_set
*bset
,
101 __isl_take isl_qpolynomial
*poly
, void *user
), void *user
);
103 __isl_give isl_qpolynomial
*isl_qpolynomial_homogenize(
104 __isl_take isl_qpolynomial
*poly
);
106 __isl_give isl_qpolynomial
*isl_qpolynomial_align_params(
107 __isl_take isl_qpolynomial
*qp
, __isl_take isl_space
*model
);
109 isl_ctx
*isl_term_get_ctx(__isl_keep isl_term
*term
);
111 __isl_give isl_term
*isl_term_copy(__isl_keep isl_term
*term
);
112 __isl_null isl_term
*isl_term_free(__isl_take isl_term
*term
);
114 isl_size
isl_term_dim(__isl_keep isl_term
*term
, enum isl_dim_type type
);
115 __isl_give isl_val
*isl_term_get_coefficient_val(__isl_keep isl_term
*term
);
116 isl_size
isl_term_get_exp(__isl_keep isl_term
*term
,
117 enum isl_dim_type type
, unsigned pos
);
118 __isl_give isl_aff
*isl_term_get_div(__isl_keep isl_term
*term
, unsigned pos
);
120 isl_stat
isl_qpolynomial_foreach_term(__isl_keep isl_qpolynomial
*qp
,
121 isl_stat (*fn
)(__isl_take isl_term
*term
, void *user
), void *user
);
123 __isl_give isl_val
*isl_qpolynomial_eval(__isl_take isl_qpolynomial
*qp
,
124 __isl_take isl_point
*pnt
);
126 __isl_give isl_qpolynomial
*isl_qpolynomial_gist_params(
127 __isl_take isl_qpolynomial
*qp
, __isl_take isl_set
*context
);
128 __isl_give isl_qpolynomial
*isl_qpolynomial_gist(
129 __isl_take isl_qpolynomial
*qp
, __isl_take isl_set
*context
);
131 __isl_give isl_qpolynomial
*isl_qpolynomial_from_constraint(
132 __isl_take isl_constraint
*c
, enum isl_dim_type type
, unsigned pos
);
133 __isl_give isl_qpolynomial
*isl_qpolynomial_from_term(__isl_take isl_term
*term
);
134 __isl_give isl_qpolynomial
*isl_qpolynomial_from_aff(__isl_take isl_aff
*aff
);
135 isl_bool
isl_qpolynomial_isa_aff(__isl_keep isl_qpolynomial
*qp
);
136 __isl_give isl_aff
*isl_qpolynomial_as_aff(__isl_take isl_qpolynomial
*qp
);
137 __isl_give isl_basic_map
*isl_basic_map_from_qpolynomial(
138 __isl_take isl_qpolynomial
*qp
);
140 __isl_give isl_printer
*isl_printer_print_qpolynomial(
141 __isl_take isl_printer
*p
, __isl_keep isl_qpolynomial
*qp
);
142 void isl_qpolynomial_print(__isl_keep isl_qpolynomial
*qp
, FILE *out
,
143 unsigned output_format
);
144 void isl_qpolynomial_dump(__isl_keep isl_qpolynomial
*qp
);
146 isl_ctx
*isl_pw_qpolynomial_get_ctx(__isl_keep isl_pw_qpolynomial
*pwqp
);
148 isl_bool
isl_pw_qpolynomial_involves_nan(__isl_keep isl_pw_qpolynomial
*pwqp
);
149 isl_bool
isl_pw_qpolynomial_plain_is_equal(__isl_keep isl_pw_qpolynomial
*pwqp1
,
150 __isl_keep isl_pw_qpolynomial
*pwqp2
);
152 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_zero(
153 __isl_take isl_space
*space
);
154 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_alloc(__isl_take isl_set
*set
,
155 __isl_take isl_qpolynomial
*qp
);
156 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_from_qpolynomial(
157 __isl_take isl_qpolynomial
*qp
);
158 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_copy(
159 __isl_keep isl_pw_qpolynomial
*pwqp
);
160 __isl_null isl_pw_qpolynomial
*isl_pw_qpolynomial_free(
161 __isl_take isl_pw_qpolynomial
*pwqp
);
163 isl_bool
isl_pw_qpolynomial_is_zero(__isl_keep isl_pw_qpolynomial
*pwqp
);
165 __isl_give isl_space
*isl_pw_qpolynomial_get_domain_space(
166 __isl_keep isl_pw_qpolynomial
*pwqp
);
167 __isl_give isl_space
*isl_pw_qpolynomial_get_space(
168 __isl_keep isl_pw_qpolynomial
*pwqp
);
169 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_reset_domain_space(
170 __isl_take isl_pw_qpolynomial
*pwqp
, __isl_take isl_space
*space
);
171 isl_size
isl_pw_qpolynomial_dim(__isl_keep isl_pw_qpolynomial
*pwqp
,
172 enum isl_dim_type type
);
173 isl_bool
isl_pw_qpolynomial_involves_param_id(
174 __isl_keep isl_pw_qpolynomial
*pwqp
, __isl_keep isl_id
*id
);
175 isl_bool
isl_pw_qpolynomial_involves_dims(__isl_keep isl_pw_qpolynomial
*pwqp
,
176 enum isl_dim_type type
, unsigned first
, unsigned n
);
177 isl_bool
isl_pw_qpolynomial_has_equal_space(
178 __isl_keep isl_pw_qpolynomial
*pwqp1
,
179 __isl_keep isl_pw_qpolynomial
*pwqp2
);
181 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_set_dim_name(
182 __isl_take isl_pw_qpolynomial
*pwqp
,
183 enum isl_dim_type type
, unsigned pos
, const char *s
);
185 int isl_pw_qpolynomial_find_dim_by_name(__isl_keep isl_pw_qpolynomial
*pwqp
,
186 enum isl_dim_type type
, const char *name
);
188 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_reset_user(
189 __isl_take isl_pw_qpolynomial
*pwqp
);
192 __isl_give isl_set
*isl_pw_qpolynomial_domain(__isl_take isl_pw_qpolynomial
*pwqp
);
193 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_intersect_domain(
194 __isl_take isl_pw_qpolynomial
*pwpq
, __isl_take isl_set
*set
);
195 __isl_give isl_pw_qpolynomial
*
196 isl_pw_qpolynomial_intersect_domain_wrapped_domain(
197 __isl_take isl_pw_qpolynomial
*pwpq
, __isl_take isl_set
*set
);
198 __isl_give isl_pw_qpolynomial
*
199 isl_pw_qpolynomial_intersect_domain_wrapped_range(
200 __isl_take isl_pw_qpolynomial
*pwpq
, __isl_take isl_set
*set
);
201 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_intersect_params(
202 __isl_take isl_pw_qpolynomial
*pwpq
, __isl_take isl_set
*set
);
203 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_subtract_domain(
204 __isl_take isl_pw_qpolynomial
*pwpq
, __isl_take isl_set
*set
);
206 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_project_domain_on_params(
207 __isl_take isl_pw_qpolynomial
*pwqp
);
208 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_from_range(
209 __isl_take isl_pw_qpolynomial
*pwqp
);
210 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_drop_dims(
211 __isl_take isl_pw_qpolynomial
*pwqp
,
212 enum isl_dim_type type
, unsigned first
, unsigned n
);
213 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_split_dims(
214 __isl_take isl_pw_qpolynomial
*pwqp
,
215 enum isl_dim_type type
, unsigned first
, unsigned n
);
217 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_drop_unused_params(
218 __isl_take isl_pw_qpolynomial
*pwqp
);
220 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_add(
221 __isl_take isl_pw_qpolynomial
*pwqp1
,
222 __isl_take isl_pw_qpolynomial
*pwqp2
);
223 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_sub(
224 __isl_take isl_pw_qpolynomial
*pwqp1
,
225 __isl_take isl_pw_qpolynomial
*pwqp2
);
226 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_add_disjoint(
227 __isl_take isl_pw_qpolynomial
*pwqp1
,
228 __isl_take isl_pw_qpolynomial
*pwqp2
);
229 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_neg(
230 __isl_take isl_pw_qpolynomial
*pwqp
);
231 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_mul(
232 __isl_take isl_pw_qpolynomial
*pwqp1
,
233 __isl_take isl_pw_qpolynomial
*pwqp2
);
234 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_scale_val(
235 __isl_take isl_pw_qpolynomial
*pwqp
, __isl_take isl_val
*v
);
236 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_scale_down_val(
237 __isl_take isl_pw_qpolynomial
*pwqp
, __isl_take isl_val
*v
);
238 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_pow(
239 __isl_take isl_pw_qpolynomial
*pwqp
, unsigned exponent
);
241 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_domain_reverse(
242 __isl_take isl_pw_qpolynomial
*pwqp
);
243 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_insert_dims(
244 __isl_take isl_pw_qpolynomial
*pwqp
, enum isl_dim_type type
,
245 unsigned first
, unsigned n
);
246 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_add_dims(
247 __isl_take isl_pw_qpolynomial
*pwqp
,
248 enum isl_dim_type type
, unsigned n
);
249 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_move_dims(
250 __isl_take isl_pw_qpolynomial
*pwqp
,
251 enum isl_dim_type dst_type
, unsigned dst_pos
,
252 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
254 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_fix_val(
255 __isl_take isl_pw_qpolynomial
*pwqp
,
256 enum isl_dim_type type
, unsigned n
, __isl_take isl_val
*v
);
259 __isl_give isl_val
*isl_pw_qpolynomial_eval(
260 __isl_take isl_pw_qpolynomial
*pwqp
, __isl_take isl_point
*pnt
);
262 __isl_give isl_val
*isl_pw_qpolynomial_max(__isl_take isl_pw_qpolynomial
*pwqp
);
263 __isl_give isl_val
*isl_pw_qpolynomial_min(__isl_take isl_pw_qpolynomial
*pwqp
);
265 isl_size
isl_pw_qpolynomial_n_piece(__isl_keep isl_pw_qpolynomial
*pwqp
);
266 isl_stat
isl_pw_qpolynomial_foreach_piece(__isl_keep isl_pw_qpolynomial
*pwqp
,
267 isl_stat (*fn
)(__isl_take isl_set
*set
, __isl_take isl_qpolynomial
*qp
,
268 void *user
), void *user
);
269 isl_bool
isl_pw_qpolynomial_every_piece(__isl_keep isl_pw_qpolynomial
*pwqp
,
270 isl_bool (*test
)(__isl_keep isl_set
*set
,
271 __isl_keep isl_qpolynomial
*qp
, void *user
), void *user
);
272 isl_stat
isl_pw_qpolynomial_foreach_lifted_piece(
273 __isl_keep isl_pw_qpolynomial
*pwqp
,
274 isl_stat (*fn
)(__isl_take isl_set
*set
, __isl_take isl_qpolynomial
*qp
,
275 void *user
), void *user
);
276 isl_bool
isl_pw_qpolynomial_isa_qpolynomial(
277 __isl_keep isl_pw_qpolynomial
*pwqp
);
278 __isl_give isl_qpolynomial
*isl_pw_qpolynomial_as_qpolynomial(
279 __isl_take isl_pw_qpolynomial
*pwqp
);
281 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_from_pw_aff(
282 __isl_take isl_pw_aff
*pwaff
);
285 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_read_from_str(isl_ctx
*ctx
,
287 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_read_from_file(isl_ctx
*ctx
,
289 __isl_give
char *isl_pw_qpolynomial_to_str(__isl_keep isl_pw_qpolynomial
*pwqp
);
290 __isl_give isl_printer
*isl_printer_print_pw_qpolynomial(
291 __isl_take isl_printer
*p
, __isl_keep isl_pw_qpolynomial
*pwqp
);
292 void isl_pw_qpolynomial_print(__isl_keep isl_pw_qpolynomial
*pwqp
, FILE *out
,
293 unsigned output_format
);
294 void isl_pw_qpolynomial_dump(__isl_keep isl_pw_qpolynomial
*pwqp
);
296 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_coalesce(
297 __isl_take isl_pw_qpolynomial
*pwqp
);
298 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_gist(
299 __isl_take isl_pw_qpolynomial
*pwqp
, __isl_take isl_set
*context
);
300 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_gist_params(
301 __isl_take isl_pw_qpolynomial
*pwqp
, __isl_take isl_set
*context
);
303 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_split_periods(
304 __isl_take isl_pw_qpolynomial
*pwqp
, int max_periods
);
306 __isl_give isl_pw_qpolynomial
*isl_basic_set_multiplicative_call(
307 __isl_take isl_basic_set
*bset
,
308 __isl_give isl_pw_qpolynomial
*(*fn
)(__isl_take isl_basic_set
*bset
));
310 isl_ctx
*isl_qpolynomial_fold_get_ctx(__isl_keep isl_qpolynomial_fold
*fold
);
311 enum isl_fold
isl_qpolynomial_fold_get_type(__isl_keep isl_qpolynomial_fold
*fold
);
313 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_empty(enum isl_fold type
,
314 __isl_take isl_space
*space
);
315 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_alloc(
316 enum isl_fold type
, __isl_take isl_qpolynomial
*qp
);
317 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_copy(
318 __isl_keep isl_qpolynomial_fold
*fold
);
319 __isl_null isl_qpolynomial_fold
*isl_qpolynomial_fold_free(
320 __isl_take isl_qpolynomial_fold
*fold
);
322 isl_bool
isl_qpolynomial_fold_is_empty(__isl_keep isl_qpolynomial_fold
*fold
);
323 isl_bool
isl_qpolynomial_fold_is_nan(__isl_keep isl_qpolynomial_fold
*fold
);
324 isl_bool
isl_qpolynomial_fold_plain_is_equal(
325 __isl_keep isl_qpolynomial_fold
*fold1
,
326 __isl_keep isl_qpolynomial_fold
*fold2
);
328 __isl_give isl_space
*isl_qpolynomial_fold_get_domain_space(
329 __isl_keep isl_qpolynomial_fold
*fold
);
330 __isl_give isl_space
*isl_qpolynomial_fold_get_space(
331 __isl_keep isl_qpolynomial_fold
*fold
);
333 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_fold(
334 __isl_take isl_qpolynomial_fold
*fold1
,
335 __isl_take isl_qpolynomial_fold
*fold2
);
337 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_scale_val(
338 __isl_take isl_qpolynomial_fold
*fold
, __isl_take isl_val
*v
);
339 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_scale_down_val(
340 __isl_take isl_qpolynomial_fold
*fold
, __isl_take isl_val
*v
);
342 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_move_dims(
343 __isl_take isl_qpolynomial_fold
*fold
,
344 enum isl_dim_type dst_type
, unsigned dst_pos
,
345 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
347 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_substitute(
348 __isl_take isl_qpolynomial_fold
*fold
,
349 enum isl_dim_type type
, unsigned first
, unsigned n
,
350 __isl_keep isl_qpolynomial
**subs
);
352 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_fix_val(
353 __isl_take isl_pw_qpolynomial_fold
*pwf
,
354 enum isl_dim_type type
, unsigned n
, __isl_take isl_val
*v
);
356 __isl_give isl_val
*isl_qpolynomial_fold_eval(
357 __isl_take isl_qpolynomial_fold
*fold
, __isl_take isl_point
*pnt
);
359 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_gist_params(
360 __isl_take isl_qpolynomial_fold
*fold
, __isl_take isl_set
*context
);
361 __isl_give isl_qpolynomial_fold
*isl_qpolynomial_fold_gist(
362 __isl_take isl_qpolynomial_fold
*fold
, __isl_take isl_set
*context
);
364 isl_stat
isl_qpolynomial_fold_foreach_qpolynomial(
365 __isl_keep isl_qpolynomial_fold
*fold
,
366 isl_stat (*fn
)(__isl_take isl_qpolynomial
*qp
, void *user
), void *user
);
368 __isl_give isl_printer
*isl_printer_print_qpolynomial_fold(
369 __isl_take isl_printer
*p
, __isl_keep isl_qpolynomial_fold
*fold
);
370 void isl_qpolynomial_fold_print(__isl_keep isl_qpolynomial_fold
*fold
, FILE *out
,
371 unsigned output_format
);
372 void isl_qpolynomial_fold_dump(__isl_keep isl_qpolynomial_fold
*fold
);
374 isl_ctx
*isl_pw_qpolynomial_fold_get_ctx(__isl_keep isl_pw_qpolynomial_fold
*pwf
);
375 enum isl_fold
isl_pw_qpolynomial_fold_get_type(
376 __isl_keep isl_pw_qpolynomial_fold
*pwf
);
378 isl_bool
isl_pw_qpolynomial_fold_involves_nan(
379 __isl_keep isl_pw_qpolynomial_fold
*pwf
);
380 isl_bool
isl_pw_qpolynomial_fold_plain_is_equal(
381 __isl_keep isl_pw_qpolynomial_fold
*pwf1
,
382 __isl_keep isl_pw_qpolynomial_fold
*pwf2
);
384 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_from_pw_qpolynomial(
385 enum isl_fold type
, __isl_take isl_pw_qpolynomial
*pwqp
);
387 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_alloc(
389 __isl_take isl_set
*set
, __isl_take isl_qpolynomial_fold
*fold
);
390 __isl_give isl_pw_qpolynomial_fold
*
391 isl_pw_qpolynomial_fold_from_qpolynomial_fold(
392 __isl_take isl_qpolynomial_fold
*fold
);
393 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_copy(
394 __isl_keep isl_pw_qpolynomial_fold
*pwf
);
395 __isl_null isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_free(
396 __isl_take isl_pw_qpolynomial_fold
*pwf
);
398 isl_bool
isl_pw_qpolynomial_fold_is_zero(
399 __isl_keep isl_pw_qpolynomial_fold
*pwf
);
401 __isl_give isl_space
*isl_pw_qpolynomial_fold_get_domain_space(
402 __isl_keep isl_pw_qpolynomial_fold
*pwf
);
403 __isl_give isl_space
*isl_pw_qpolynomial_fold_get_space(
404 __isl_keep isl_pw_qpolynomial_fold
*pwf
);
405 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_reset_space(
406 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_space
*space
);
407 isl_size
isl_pw_qpolynomial_fold_dim(__isl_keep isl_pw_qpolynomial_fold
*pwf
,
408 enum isl_dim_type type
);
409 isl_bool
isl_pw_qpolynomial_fold_involves_param_id(
410 __isl_keep isl_pw_qpolynomial_fold
*pwf
, __isl_keep isl_id
*id
);
411 isl_bool
isl_pw_qpolynomial_fold_has_equal_space(
412 __isl_keep isl_pw_qpolynomial_fold
*pwf1
,
413 __isl_keep isl_pw_qpolynomial_fold
*pwf2
);
415 size_t isl_pw_qpolynomial_fold_size(__isl_keep isl_pw_qpolynomial_fold
*pwf
);
417 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_zero(
418 __isl_take isl_space
*space
, enum isl_fold type
);
420 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_set_dim_name(
421 __isl_take isl_pw_qpolynomial_fold
*pwf
,
422 enum isl_dim_type type
, unsigned pos
, const char *s
);
424 int isl_pw_qpolynomial_fold_find_dim_by_name(
425 __isl_keep isl_pw_qpolynomial_fold
*pwf
,
426 enum isl_dim_type type
, const char *name
);
428 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_reset_user(
429 __isl_take isl_pw_qpolynomial_fold
*pwf
);
431 __isl_give isl_set
*isl_pw_qpolynomial_fold_domain(
432 __isl_take isl_pw_qpolynomial_fold
*pwf
);
433 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_intersect_domain(
434 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_set
*set
);
435 __isl_give isl_pw_qpolynomial_fold
*
436 isl_pw_qpolynomial_fold_intersect_domain_wrapped_domain(
437 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_set
*set
);
438 __isl_give isl_pw_qpolynomial_fold
*
439 isl_pw_qpolynomial_fold_intersect_domain_wrapped_range(
440 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_set
*set
);
441 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_intersect_params(
442 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_set
*set
);
443 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_subtract_domain(
444 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_set
*set
);
446 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_add(
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_fold(
450 __isl_take isl_pw_qpolynomial_fold
*pwf1
,
451 __isl_take isl_pw_qpolynomial_fold
*pwf2
);
452 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_add_disjoint(
453 __isl_take isl_pw_qpolynomial_fold
*pwf1
,
454 __isl_take isl_pw_qpolynomial_fold
*pwf2
);
455 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_scale_val(
456 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_val
*v
);
457 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_scale_down_val(
458 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_val
*v
);
460 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_project_domain_on_params(
461 __isl_take isl_pw_qpolynomial_fold
*pwf
);
462 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_from_range(
463 __isl_take isl_pw_qpolynomial_fold
*pwf
);
464 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_drop_dims(
465 __isl_take isl_pw_qpolynomial_fold
*pwf
,
466 enum isl_dim_type type
, unsigned first
, unsigned n
);
467 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_move_dims(
468 __isl_take isl_pw_qpolynomial_fold
*pwf
,
469 enum isl_dim_type dst_type
, unsigned dst_pos
,
470 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
472 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_drop_unused_params(
473 __isl_take isl_pw_qpolynomial_fold
*pwf
);
475 __isl_give isl_val
*isl_pw_qpolynomial_fold_eval(
476 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_point
*pnt
);
478 isl_size
isl_pw_qpolynomial_fold_n_piece(
479 __isl_keep isl_pw_qpolynomial_fold
*pwf
);
480 isl_stat
isl_pw_qpolynomial_fold_foreach_piece(
481 __isl_keep isl_pw_qpolynomial_fold
*pwf
,
482 isl_stat (*fn
)(__isl_take isl_set
*set
,
483 __isl_take isl_qpolynomial_fold
*fold
, void *user
), void *user
);
484 isl_bool
isl_pw_qpolynomial_fold_every_piece(
485 __isl_keep isl_pw_qpolynomial_fold
*pwf
,
486 isl_bool (*test
)(__isl_keep isl_set
*set
,
487 __isl_keep isl_qpolynomial_fold
*fold
, void *user
), void *user
);
488 isl_stat
isl_pw_qpolynomial_fold_foreach_lifted_piece(
489 __isl_keep isl_pw_qpolynomial_fold
*pwf
,
490 isl_stat (*fn
)(__isl_take isl_set
*set
,
491 __isl_take isl_qpolynomial_fold
*fold
, void *user
), void *user
);
492 isl_bool
isl_pw_qpolynomial_fold_isa_qpolynomial_fold(
493 __isl_keep isl_pw_qpolynomial_fold
*pwf
);
494 __isl_give isl_qpolynomial_fold
*isl_pw_qpolynomial_fold_as_qpolynomial_fold(
495 __isl_take isl_pw_qpolynomial_fold
*pwf
);
497 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_read_from_str(
498 isl_ctx
*ctx
, const char *str
);
499 __isl_give isl_printer
*isl_printer_print_pw_qpolynomial_fold(
500 __isl_take isl_printer
*p
, __isl_keep isl_pw_qpolynomial_fold
*pwf
);
501 void isl_pw_qpolynomial_fold_print(__isl_keep isl_pw_qpolynomial_fold
*pwf
,
502 FILE *out
, unsigned output_format
);
503 void isl_pw_qpolynomial_fold_dump(__isl_keep isl_pw_qpolynomial_fold
*pwf
);
505 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_coalesce(
506 __isl_take isl_pw_qpolynomial_fold
*pwf
);
507 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_gist(
508 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_set
*context
);
509 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_gist_params(
510 __isl_take isl_pw_qpolynomial_fold
*pwf
, __isl_take isl_set
*context
);
512 __isl_give isl_val
*isl_pw_qpolynomial_fold_max(
513 __isl_take isl_pw_qpolynomial_fold
*pwf
);
514 __isl_give isl_val
*isl_pw_qpolynomial_fold_min(
515 __isl_take isl_pw_qpolynomial_fold
*pwf
);
517 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_bound(
518 __isl_take isl_pw_qpolynomial
*pwqp
, enum isl_fold type
,
520 __isl_give isl_pw_qpolynomial_fold
*isl_pw_qpolynomial_fold_bound(
521 __isl_take isl_pw_qpolynomial_fold
*pwf
, isl_bool
*tight
);
522 __isl_give isl_pw_qpolynomial_fold
*isl_set_apply_pw_qpolynomial_fold(
523 __isl_take isl_set
*set
, __isl_take isl_pw_qpolynomial_fold
*pwf
,
525 __isl_give isl_pw_qpolynomial_fold
*isl_map_apply_pw_qpolynomial_fold(
526 __isl_take isl_map
*map
, __isl_take isl_pw_qpolynomial_fold
*pwf
,
529 __isl_give isl_pw_qpolynomial
*isl_pw_qpolynomial_to_polynomial(
530 __isl_take isl_pw_qpolynomial
*pwqp
, int sign
);
532 isl_ctx
*isl_union_pw_qpolynomial_get_ctx(
533 __isl_keep isl_union_pw_qpolynomial
*upwqp
);
535 isl_size
isl_union_pw_qpolynomial_dim(
536 __isl_keep isl_union_pw_qpolynomial
*upwqp
, enum isl_dim_type type
);
538 isl_bool
isl_union_pw_qpolynomial_involves_nan(
539 __isl_keep isl_union_pw_qpolynomial
*upwqp
);
540 isl_bool
isl_union_pw_qpolynomial_plain_is_equal(
541 __isl_keep isl_union_pw_qpolynomial
*upwqp1
,
542 __isl_keep isl_union_pw_qpolynomial
*upwqp2
);
544 __isl_give isl_union_pw_qpolynomial
*isl_pw_qpolynomial_to_union_pw_qpolynomial(
545 __isl_take isl_pw_qpolynomial
*pwqp
);
546 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_from_pw_qpolynomial(__isl_take isl_pw_qpolynomial
*pwqp
);
547 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_zero_ctx(
549 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_zero_space(
550 __isl_take isl_space
*space
);
551 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_zero(
552 __isl_take isl_space
*space
);
553 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_add_pw_qpolynomial(
554 __isl_take isl_union_pw_qpolynomial
*upwqp
,
555 __isl_take isl_pw_qpolynomial
*pwqp
);
556 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_copy(
557 __isl_keep isl_union_pw_qpolynomial
*upwqp
);
558 __isl_null isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_free(
559 __isl_take isl_union_pw_qpolynomial
*upwqp
);
562 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_read_from_str(
563 isl_ctx
*ctx
, const char *str
);
564 __isl_give
char *isl_union_pw_qpolynomial_to_str(
565 __isl_keep isl_union_pw_qpolynomial
*upwqp
);
567 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_neg(
568 __isl_take isl_union_pw_qpolynomial
*upwqp
);
570 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_add(
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_sub(
574 __isl_take isl_union_pw_qpolynomial
*upwqp1
,
575 __isl_take isl_union_pw_qpolynomial
*upwqp2
);
576 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_mul(
577 __isl_take isl_union_pw_qpolynomial
*upwqp1
,
578 __isl_take isl_union_pw_qpolynomial
*upwqp2
);
579 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_scale_val(
580 __isl_take isl_union_pw_qpolynomial
*upwqp
, __isl_take isl_val
*v
);
581 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_scale_down_val(
582 __isl_take isl_union_pw_qpolynomial
*upwqp
, __isl_take isl_val
*v
);
585 __isl_give isl_union_set
*isl_union_pw_qpolynomial_domain(
586 __isl_take isl_union_pw_qpolynomial
*upwqp
);
587 __isl_give isl_union_pw_qpolynomial
*
588 isl_union_pw_qpolynomial_intersect_domain_space(
589 __isl_take isl_union_pw_qpolynomial
*upwpq
,
590 __isl_take isl_space
*space
);
591 __isl_give isl_union_pw_qpolynomial
*
592 isl_union_pw_qpolynomial_intersect_domain_union_set(
593 __isl_take isl_union_pw_qpolynomial
*upwpq
,
594 __isl_take isl_union_set
*uset
);
595 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_intersect_domain(
596 __isl_take isl_union_pw_qpolynomial
*upwpq
,
597 __isl_take isl_union_set
*uset
);
598 __isl_give isl_union_pw_qpolynomial
*
599 isl_union_pw_qpolynomial_intersect_domain_wrapped_domain(
600 __isl_take isl_union_pw_qpolynomial
*upwpq
,
601 __isl_take isl_union_set
*uset
);
602 __isl_give isl_union_pw_qpolynomial
*
603 isl_union_pw_qpolynomial_intersect_domain_wrapped_range(
604 __isl_take isl_union_pw_qpolynomial
*upwpq
,
605 __isl_take isl_union_set
*uset
);
606 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_intersect_params(
607 __isl_take isl_union_pw_qpolynomial
*upwpq
,
608 __isl_take isl_set
*set
);
609 __isl_give isl_union_pw_qpolynomial
*
610 isl_union_pw_qpolynomial_subtract_domain_union_set(
611 __isl_take isl_union_pw_qpolynomial
*upwpq
,
612 __isl_take isl_union_set
*uset
);
613 __isl_give isl_union_pw_qpolynomial
*
614 isl_union_pw_qpolynomial_subtract_domain_space(
615 __isl_take isl_union_pw_qpolynomial
*upwpq
,
616 __isl_take isl_space
*space
);
617 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_subtract_domain(
618 __isl_take isl_union_pw_qpolynomial
*upwpq
,
619 __isl_take isl_union_set
*uset
);
621 __isl_give isl_space
*isl_union_pw_qpolynomial_get_space(
622 __isl_keep isl_union_pw_qpolynomial
*upwqp
);
623 __isl_give isl_pw_qpolynomial_list
*
624 isl_union_pw_qpolynomial_get_pw_qpolynomial_list(
625 __isl_keep isl_union_pw_qpolynomial
*upwqp
);
627 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_set_dim_name(
628 __isl_take isl_union_pw_qpolynomial
*upwqp
,
629 enum isl_dim_type type
, unsigned pos
, const char *s
);
631 int isl_union_pw_qpolynomial_find_dim_by_name(
632 __isl_keep isl_union_pw_qpolynomial
*upwqp
,
633 enum isl_dim_type type
, const char *name
);
635 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_domain_reverse(
636 __isl_take isl_union_pw_qpolynomial
*upwqp
);
637 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_drop_dims(
638 __isl_take isl_union_pw_qpolynomial
*upwqp
,
639 enum isl_dim_type type
, unsigned first
, unsigned n
);
640 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_reset_user(
641 __isl_take isl_union_pw_qpolynomial
*upwqp
);
644 __isl_give isl_val
*isl_union_pw_qpolynomial_eval(
645 __isl_take isl_union_pw_qpolynomial
*upwqp
, __isl_take isl_point
*pnt
);
647 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_coalesce(
648 __isl_take isl_union_pw_qpolynomial
*upwqp
);
649 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_gist(
650 __isl_take isl_union_pw_qpolynomial
*upwqp
,
651 __isl_take isl_union_set
*context
);
652 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_gist_params(
653 __isl_take isl_union_pw_qpolynomial
*upwqp
,
654 __isl_take isl_set
*context
);
656 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_align_params(
657 __isl_take isl_union_pw_qpolynomial
*upwqp
,
658 __isl_take isl_space
*model
);
659 __isl_give isl_union_pw_qpolynomial
*
660 isl_union_pw_qpolynomial_drop_unused_params(
661 __isl_take isl_union_pw_qpolynomial
*upwqp
);
663 isl_size
isl_union_pw_qpolynomial_n_pw_qpolynomial(
664 __isl_keep isl_union_pw_qpolynomial
*upwqp
);
665 isl_stat
isl_union_pw_qpolynomial_foreach_pw_qpolynomial(
666 __isl_keep isl_union_pw_qpolynomial
*upwqp
,
667 isl_stat (*fn
)(__isl_take isl_pw_qpolynomial
*pwqp
, void *user
),
669 isl_bool
isl_union_pw_qpolynomial_every_pw_qpolynomial(
670 __isl_keep isl_union_pw_qpolynomial
*upwqp
,
671 isl_bool (*test
)(__isl_keep isl_pw_qpolynomial
*pwqp
, void *user
),
673 __isl_give isl_pw_qpolynomial
*isl_union_pw_qpolynomial_extract_pw_qpolynomial(
674 __isl_keep isl_union_pw_qpolynomial
*upwqp
,
675 __isl_take isl_space
*space
);
677 __isl_give isl_printer
*isl_printer_print_union_pw_qpolynomial(
678 __isl_take isl_printer
*p
, __isl_keep isl_union_pw_qpolynomial
*upwqp
);
680 isl_ctx
*isl_union_pw_qpolynomial_fold_get_ctx(
681 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
683 isl_size
isl_union_pw_qpolynomial_fold_dim(
684 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
, enum isl_dim_type type
);
686 isl_bool
isl_union_pw_qpolynomial_fold_involves_nan(
687 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
688 isl_bool
isl_union_pw_qpolynomial_fold_plain_is_equal(
689 __isl_keep isl_union_pw_qpolynomial_fold
*upwf1
,
690 __isl_keep isl_union_pw_qpolynomial_fold
*upwf2
);
692 __isl_give isl_union_pw_qpolynomial_fold
*
693 isl_pw_qpolynomial_fold_to_union_pw_qpolynomial_fold(
694 __isl_take isl_pw_qpolynomial_fold
*pwf
);
695 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_from_pw_qpolynomial_fold(__isl_take isl_pw_qpolynomial_fold
*pwf
);
696 __isl_give isl_union_pw_qpolynomial_fold
*
697 isl_union_pw_qpolynomial_fold_zero_ctx(isl_ctx
*ctx
, enum isl_fold type
);
698 __isl_give isl_union_pw_qpolynomial_fold
*
699 isl_union_pw_qpolynomial_fold_zero_space(__isl_take isl_space
*space
,
701 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_zero(
702 __isl_take isl_space
*space
, enum isl_fold type
);
703 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_fold_pw_qpolynomial_fold(
704 __isl_take isl_union_pw_qpolynomial_fold
*upwqp
,
705 __isl_take isl_pw_qpolynomial_fold
*pwqp
);
706 __isl_null isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_free(
707 __isl_take isl_union_pw_qpolynomial_fold
*upwf
);
708 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_copy(
709 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
711 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_fold(
712 __isl_take isl_union_pw_qpolynomial_fold
*upwf1
,
713 __isl_take isl_union_pw_qpolynomial_fold
*upwf2
);
714 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_add_union_pw_qpolynomial(
715 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
716 __isl_take isl_union_pw_qpolynomial
*upwqp
);
717 __isl_give isl_union_pw_qpolynomial_fold
*
718 isl_union_pw_qpolynomial_fold_scale_val(
719 __isl_take isl_union_pw_qpolynomial_fold
*upwf
, __isl_take isl_val
*v
);
720 __isl_give isl_union_pw_qpolynomial_fold
*
721 isl_union_pw_qpolynomial_fold_scale_down_val(
722 __isl_take isl_union_pw_qpolynomial_fold
*upwf
, __isl_take isl_val
*v
);
724 __isl_give isl_union_set
*isl_union_pw_qpolynomial_fold_domain(
725 __isl_take isl_union_pw_qpolynomial_fold
*upwf
);
726 __isl_give isl_union_pw_qpolynomial_fold
*
727 isl_union_pw_qpolynomial_fold_intersect_domain_space(
728 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
729 __isl_take isl_space
*space
);
730 __isl_give isl_union_pw_qpolynomial_fold
*
731 isl_union_pw_qpolynomial_fold_intersect_domain_union_set(
732 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
733 __isl_take isl_union_set
*uset
);
734 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_intersect_domain(
735 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
736 __isl_take isl_union_set
*uset
);
737 __isl_give isl_union_pw_qpolynomial_fold
*
738 isl_union_pw_qpolynomial_fold_intersect_domain_wrapped_domain(
739 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
740 __isl_take isl_union_set
*uset
);
741 __isl_give isl_union_pw_qpolynomial_fold
*
742 isl_union_pw_qpolynomial_fold_intersect_domain_wrapped_range(
743 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
744 __isl_take isl_union_set
*uset
);
745 __isl_give isl_union_pw_qpolynomial_fold
*
746 isl_union_pw_qpolynomial_fold_intersect_params(
747 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
748 __isl_take isl_set
*set
);
749 __isl_give isl_union_pw_qpolynomial_fold
*
750 isl_union_pw_qpolynomial_fold_subtract_domain_union_set(
751 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
752 __isl_take isl_union_set
*uset
);
753 __isl_give isl_union_pw_qpolynomial_fold
*
754 isl_union_pw_qpolynomial_fold_subtract_domain_space(
755 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
756 __isl_take isl_space
*space
);
757 __isl_give isl_union_pw_qpolynomial_fold
*
758 isl_union_pw_qpolynomial_fold_subtract_domain(
759 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
760 __isl_take isl_union_set
*uset
);
762 enum isl_fold
isl_union_pw_qpolynomial_fold_get_type(
763 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
764 __isl_give isl_space
*isl_union_pw_qpolynomial_fold_get_space(
765 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
766 __isl_give isl_pw_qpolynomial_fold_list
*
767 isl_union_pw_qpolynomial_fold_get_pw_qpolynomial_fold_list(
768 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
770 __isl_give isl_union_pw_qpolynomial_fold
*
771 isl_union_pw_qpolynomial_fold_set_dim_name(
772 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
773 enum isl_dim_type type
, unsigned pos
, const char *s
);
775 int isl_union_pw_qpolynomial_fold_find_dim_by_name(
776 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
,
777 enum isl_dim_type type
, const char *name
);
779 __isl_give isl_union_pw_qpolynomial_fold
*
780 isl_union_pw_qpolynomial_fold_drop_dims(
781 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
782 enum isl_dim_type type
, unsigned first
, unsigned n
);
783 __isl_give isl_union_pw_qpolynomial_fold
*
784 isl_union_pw_qpolynomial_fold_reset_user(
785 __isl_take isl_union_pw_qpolynomial_fold
*upwf
);
787 __isl_give isl_val
*isl_union_pw_qpolynomial_fold_eval(
788 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
789 __isl_take isl_point
*pnt
);
791 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_coalesce(
792 __isl_take isl_union_pw_qpolynomial_fold
*upwf
);
793 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_gist(
794 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
795 __isl_take isl_union_set
*context
);
796 __isl_give isl_union_pw_qpolynomial_fold
*
797 isl_union_pw_qpolynomial_fold_gist_params(
798 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
799 __isl_take isl_set
*context
);
801 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_align_params(
802 __isl_take isl_union_pw_qpolynomial_fold
*upwf
,
803 __isl_take isl_space
*model
);
804 __isl_give isl_union_pw_qpolynomial_fold
*
805 isl_union_pw_qpolynomial_fold_drop_unused_params(
806 __isl_take isl_union_pw_qpolynomial_fold
*upwf
);
808 isl_size
isl_union_pw_qpolynomial_fold_n_pw_qpolynomial_fold(
809 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
810 isl_stat
isl_union_pw_qpolynomial_fold_foreach_pw_qpolynomial_fold(
811 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
,
812 isl_stat (*fn
)(__isl_take isl_pw_qpolynomial_fold
*pwf
,
813 void *user
), void *user
);
814 isl_bool
isl_union_pw_qpolynomial_fold_every_pw_qpolynomial_fold(
815 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
,
816 isl_bool (*test
)(__isl_keep isl_pw_qpolynomial_fold
*pwf
,
817 void *user
), void *user
);
818 __isl_give isl_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_fold_extract_pw_qpolynomial_fold(
819 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
,
820 __isl_take isl_space
*space
);
822 __isl_give isl_printer
*isl_printer_print_union_pw_qpolynomial_fold(
823 __isl_take isl_printer
*p
,
824 __isl_keep isl_union_pw_qpolynomial_fold
*upwf
);
826 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_pw_qpolynomial_bound(
827 __isl_take isl_union_pw_qpolynomial
*upwqp
,
828 enum isl_fold type
, isl_bool
*tight
);
829 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_set_apply_union_pw_qpolynomial_fold(
830 __isl_take isl_union_set
*uset
,
831 __isl_take isl_union_pw_qpolynomial_fold
*upwf
, isl_bool
*tight
);
832 __isl_give isl_union_pw_qpolynomial_fold
*isl_union_map_apply_union_pw_qpolynomial_fold(
833 __isl_take isl_union_map
*umap
,
834 __isl_take isl_union_pw_qpolynomial_fold
*upwf
, isl_bool
*tight
);
836 __isl_give isl_union_pw_qpolynomial
*isl_union_pw_qpolynomial_to_polynomial(
837 __isl_take isl_union_pw_qpolynomial
*upwqp
, int sign
);
839 ISL_DECLARE_LIST_FN(qpolynomial
)
840 ISL_DECLARE_LIST_FN(pw_qpolynomial
)
841 ISL_DECLARE_LIST_FN(pw_qpolynomial_fold
)
843 #if defined(__cplusplus)