4 #include <isl/stdint.h>
5 #include <isl/local_space.h>
6 #include <isl/printer.h>
7 #include <isl/id_type.h>
8 #include <isl/set_type.h>
9 #include <isl/aff_type.h>
11 #include <isl/multi.h>
12 #include <isl/union_set_type.h>
13 #include <isl/val_type.h>
14 #include <isl/point.h>
16 #if defined(__cplusplus)
21 __isl_give isl_aff
*isl_aff_zero_on_domain_space(__isl_take isl_space
*space
);
23 __isl_give isl_aff
*isl_space_zero_aff_on_domain(__isl_take isl_space
*space
);
24 __isl_give isl_aff
*isl_aff_zero_on_domain(__isl_take isl_local_space
*ls
);
25 __isl_give isl_aff
*isl_aff_val_on_domain_space(__isl_take isl_space
*space
,
26 __isl_take isl_val
*val
);
27 __isl_give isl_aff
*isl_aff_val_on_domain(__isl_take isl_local_space
*ls
,
28 __isl_take isl_val
*val
);
29 __isl_give isl_aff
*isl_aff_var_on_domain(__isl_take isl_local_space
*ls
,
30 enum isl_dim_type type
, unsigned pos
);
31 __isl_give isl_aff
*isl_aff_nan_on_domain_space(__isl_take isl_space
*space
);
32 __isl_give isl_aff
*isl_aff_nan_on_domain(__isl_take isl_local_space
*ls
);
33 __isl_give isl_aff
*isl_aff_param_on_domain_space_id(
34 __isl_take isl_space
*space
, __isl_take isl_id
*id
);
36 __isl_give isl_aff
*isl_space_param_aff_on_domain_id(
37 __isl_take isl_space
*space
, __isl_take isl_id
*id
);
39 __isl_give isl_aff
*isl_aff_copy(__isl_keep isl_aff
*aff
);
40 __isl_null isl_aff
*isl_aff_free(__isl_take isl_aff
*aff
);
42 isl_ctx
*isl_aff_get_ctx(__isl_keep isl_aff
*aff
);
43 uint32_t isl_aff_get_hash(__isl_keep isl_aff
*aff
);
45 isl_bool
isl_aff_involves_locals(__isl_keep isl_aff
*aff
);
47 isl_size
isl_aff_dim(__isl_keep isl_aff
*aff
, enum isl_dim_type type
);
48 isl_bool
isl_aff_involves_dims(__isl_keep isl_aff
*aff
,
49 enum isl_dim_type type
, unsigned first
, unsigned n
);
51 __isl_give isl_space
*isl_aff_get_domain_space(__isl_keep isl_aff
*aff
);
52 __isl_give isl_space
*isl_aff_get_space(__isl_keep isl_aff
*aff
);
53 __isl_give isl_local_space
*isl_aff_get_domain_local_space(
54 __isl_keep isl_aff
*aff
);
55 __isl_give isl_local_space
*isl_aff_get_local_space(__isl_keep isl_aff
*aff
);
57 const char *isl_aff_get_dim_name(__isl_keep isl_aff
*aff
,
58 enum isl_dim_type type
, unsigned pos
);
60 __isl_give isl_val
*isl_aff_get_constant_val(__isl_keep isl_aff
*aff
);
61 __isl_give isl_val
*isl_aff_get_coefficient_val(__isl_keep isl_aff
*aff
,
62 enum isl_dim_type type
, int pos
);
63 int isl_aff_coefficient_sgn(__isl_keep isl_aff
*aff
,
64 enum isl_dim_type type
, int pos
);
65 __isl_give isl_val
*isl_aff_get_denominator_val(__isl_keep isl_aff
*aff
);
66 __isl_give isl_aff
*isl_aff_set_constant_si(__isl_take isl_aff
*aff
, int v
);
67 __isl_give isl_aff
*isl_aff_set_constant_val(__isl_take isl_aff
*aff
,
68 __isl_take isl_val
*v
);
69 __isl_give isl_aff
*isl_aff_set_coefficient_si(__isl_take isl_aff
*aff
,
70 enum isl_dim_type type
, int pos
, int v
);
71 __isl_give isl_aff
*isl_aff_set_coefficient_val(__isl_take isl_aff
*aff
,
72 enum isl_dim_type type
, int pos
, __isl_take isl_val
*v
);
73 __isl_give isl_aff
*isl_aff_add_constant_si(__isl_take isl_aff
*aff
, int v
);
75 __isl_give isl_aff
*isl_aff_add_constant_val(__isl_take isl_aff
*aff
,
76 __isl_take isl_val
*v
);
77 __isl_give isl_aff
*isl_aff_add_constant_num_si(__isl_take isl_aff
*aff
, int v
);
78 __isl_give isl_aff
*isl_aff_add_coefficient_si(__isl_take isl_aff
*aff
,
79 enum isl_dim_type type
, int pos
, int v
);
80 __isl_give isl_aff
*isl_aff_add_coefficient_val(__isl_take isl_aff
*aff
,
81 enum isl_dim_type type
, int pos
, __isl_take isl_val
*v
);
84 isl_bool
isl_aff_is_cst(__isl_keep isl_aff
*aff
);
86 __isl_give isl_aff
*isl_aff_set_tuple_id(__isl_take isl_aff
*aff
,
87 enum isl_dim_type type
, __isl_take isl_id
*id
);
88 __isl_give isl_aff
*isl_aff_set_dim_name(__isl_take isl_aff
*aff
,
89 enum isl_dim_type type
, unsigned pos
, const char *s
);
90 __isl_give isl_aff
*isl_aff_set_dim_id(__isl_take isl_aff
*aff
,
91 enum isl_dim_type type
, unsigned pos
, __isl_take isl_id
*id
);
93 int isl_aff_find_dim_by_name(__isl_keep isl_aff
*aff
, enum isl_dim_type type
,
96 isl_bool
isl_aff_plain_is_equal(__isl_keep isl_aff
*aff1
,
97 __isl_keep isl_aff
*aff2
);
98 isl_bool
isl_aff_plain_is_zero(__isl_keep isl_aff
*aff
);
99 isl_bool
isl_aff_is_nan(__isl_keep isl_aff
*aff
);
101 __isl_give isl_aff
*isl_aff_get_div(__isl_keep isl_aff
*aff
, int pos
);
103 __isl_give isl_aff
*isl_aff_from_range(__isl_take isl_aff
*aff
);
106 __isl_give isl_aff
*isl_aff_neg(__isl_take isl_aff
*aff
);
108 __isl_give isl_aff
*isl_aff_ceil(__isl_take isl_aff
*aff
);
110 __isl_give isl_aff
*isl_aff_floor(__isl_take isl_aff
*aff
);
112 __isl_give isl_aff
*isl_aff_mod_val(__isl_take isl_aff
*aff
,
113 __isl_take isl_val
*mod
);
116 __isl_give isl_aff
*isl_aff_mul(__isl_take isl_aff
*aff1
,
117 __isl_take isl_aff
*aff2
);
119 __isl_give isl_aff
*isl_aff_div(__isl_take isl_aff
*aff1
,
120 __isl_take isl_aff
*aff2
);
122 __isl_give isl_aff
*isl_aff_add(__isl_take isl_aff
*aff1
,
123 __isl_take isl_aff
*aff2
);
125 __isl_give isl_aff
*isl_aff_sub(__isl_take isl_aff
*aff1
,
126 __isl_take isl_aff
*aff2
);
129 __isl_give isl_aff
*isl_aff_scale_val(__isl_take isl_aff
*aff
,
130 __isl_take isl_val
*v
);
131 __isl_give isl_aff
*isl_aff_scale_down_ui(__isl_take isl_aff
*aff
, unsigned f
);
133 __isl_give isl_aff
*isl_aff_scale_down_val(__isl_take isl_aff
*aff
,
134 __isl_take isl_val
*v
);
136 __isl_give isl_aff
*isl_aff_insert_dims(__isl_take isl_aff
*aff
,
137 enum isl_dim_type type
, unsigned first
, unsigned n
);
138 __isl_give isl_aff
*isl_aff_add_dims(__isl_take isl_aff
*aff
,
139 enum isl_dim_type type
, unsigned n
);
140 __isl_give isl_aff
*isl_aff_move_dims(__isl_take isl_aff
*aff
,
141 enum isl_dim_type dst_type
, unsigned dst_pos
,
142 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
143 __isl_give isl_aff
*isl_aff_drop_dims(__isl_take isl_aff
*aff
,
144 enum isl_dim_type type
, unsigned first
, unsigned n
);
145 __isl_give isl_aff
*isl_aff_project_domain_on_params(__isl_take isl_aff
*aff
);
147 __isl_give isl_aff
*isl_aff_unbind_params_insert_domain(
148 __isl_take isl_aff
*aff
, __isl_take isl_multi_id
*domain
);
150 __isl_give isl_aff
*isl_aff_align_params(__isl_take isl_aff
*aff
,
151 __isl_take isl_space
*model
);
154 __isl_give isl_aff
*isl_aff_gist(__isl_take isl_aff
*aff
,
155 __isl_take isl_set
*context
);
156 __isl_give isl_aff
*isl_aff_gist_params(__isl_take isl_aff
*aff
,
157 __isl_take isl_set
*context
);
160 __isl_give isl_val
*isl_aff_eval(__isl_take isl_aff
*aff
,
161 __isl_take isl_point
*pnt
);
163 __isl_give isl_aff
*isl_aff_pullback_aff(__isl_take isl_aff
*aff1
,
164 __isl_take isl_aff
*aff2
);
166 __isl_give isl_aff
*isl_aff_pullback_multi_aff(__isl_take isl_aff
*aff
,
167 __isl_take isl_multi_aff
*ma
);
169 __isl_give isl_basic_set
*isl_aff_zero_basic_set(__isl_take isl_aff
*aff
);
170 __isl_give isl_basic_set
*isl_aff_neg_basic_set(__isl_take isl_aff
*aff
);
172 __isl_give isl_basic_set
*isl_aff_eq_basic_set(__isl_take isl_aff
*aff1
,
173 __isl_take isl_aff
*aff2
);
175 __isl_give isl_set
*isl_aff_eq_set(__isl_take isl_aff
*aff1
,
176 __isl_take isl_aff
*aff2
);
178 __isl_give isl_set
*isl_aff_ne_set(__isl_take isl_aff
*aff1
,
179 __isl_take isl_aff
*aff2
);
180 __isl_give isl_basic_set
*isl_aff_le_basic_set(__isl_take isl_aff
*aff1
,
181 __isl_take isl_aff
*aff2
);
183 __isl_give isl_set
*isl_aff_le_set(__isl_take isl_aff
*aff1
,
184 __isl_take isl_aff
*aff2
);
185 __isl_give isl_basic_set
*isl_aff_lt_basic_set(__isl_take isl_aff
*aff1
,
186 __isl_take isl_aff
*aff2
);
188 __isl_give isl_set
*isl_aff_lt_set(__isl_take isl_aff
*aff1
,
189 __isl_take isl_aff
*aff2
);
190 __isl_give isl_basic_set
*isl_aff_ge_basic_set(__isl_take isl_aff
*aff1
,
191 __isl_take isl_aff
*aff2
);
193 __isl_give isl_set
*isl_aff_ge_set(__isl_take isl_aff
*aff1
,
194 __isl_take isl_aff
*aff2
);
195 __isl_give isl_basic_set
*isl_aff_gt_basic_set(__isl_take isl_aff
*aff1
,
196 __isl_take isl_aff
*aff2
);
198 __isl_give isl_set
*isl_aff_gt_set(__isl_take isl_aff
*aff1
,
199 __isl_take isl_aff
*aff2
);
202 __isl_give isl_basic_set
*isl_aff_bind_id(__isl_take isl_aff
*aff
,
203 __isl_take isl_id
*id
);
206 __isl_give isl_aff
*isl_aff_read_from_str(isl_ctx
*ctx
, const char *str
);
207 __isl_give
char *isl_aff_to_str(__isl_keep isl_aff
*aff
);
208 __isl_give isl_printer
*isl_printer_print_aff(__isl_take isl_printer
*p
,
209 __isl_keep isl_aff
*aff
);
210 void isl_aff_dump(__isl_keep isl_aff
*aff
);
212 isl_ctx
*isl_pw_aff_get_ctx(__isl_keep isl_pw_aff
*pwaff
);
213 uint32_t isl_pw_aff_get_hash(__isl_keep isl_pw_aff
*pa
);
214 __isl_give isl_space
*isl_pw_aff_get_domain_space(__isl_keep isl_pw_aff
*pwaff
);
216 __isl_give isl_space
*isl_pw_aff_get_space(__isl_keep isl_pw_aff
*pwaff
);
219 __isl_give isl_pw_aff
*isl_pw_aff_from_aff(__isl_take isl_aff
*aff
);
220 __isl_give isl_pw_aff
*isl_pw_aff_empty(__isl_take isl_space
*space
);
221 __isl_give isl_pw_aff
*isl_pw_aff_alloc(__isl_take isl_set
*set
,
222 __isl_take isl_aff
*aff
);
223 __isl_give isl_pw_aff
*isl_pw_aff_zero_on_domain(
224 __isl_take isl_local_space
*ls
);
225 __isl_give isl_pw_aff
*isl_pw_aff_var_on_domain(__isl_take isl_local_space
*ls
,
226 enum isl_dim_type type
, unsigned pos
);
227 __isl_give isl_pw_aff
*isl_pw_aff_nan_on_domain_space(
228 __isl_take isl_space
*space
);
229 __isl_give isl_pw_aff
*isl_pw_aff_nan_on_domain(__isl_take isl_local_space
*ls
);
230 __isl_give isl_pw_aff
*isl_pw_aff_val_on_domain(__isl_take isl_set
*domain
,
231 __isl_take isl_val
*v
);
233 __isl_give isl_pw_aff
*isl_pw_aff_param_on_domain_id(
234 __isl_take isl_set
*domain
, __isl_take isl_id
*id
);
237 __isl_give isl_pw_aff
*isl_set_indicator_function(__isl_take isl_set
*set
);
239 const char *isl_pw_aff_get_dim_name(__isl_keep isl_pw_aff
*pa
,
240 enum isl_dim_type type
, unsigned pos
);
241 isl_bool
isl_pw_aff_has_dim_id(__isl_keep isl_pw_aff
*pa
,
242 enum isl_dim_type type
, unsigned pos
);
243 __isl_give isl_id
*isl_pw_aff_get_dim_id(__isl_keep isl_pw_aff
*pa
,
244 enum isl_dim_type type
, unsigned pos
);
245 __isl_give isl_pw_aff
*isl_pw_aff_set_dim_id(__isl_take isl_pw_aff
*pma
,
246 enum isl_dim_type type
, unsigned pos
, __isl_take isl_id
*id
);
248 int isl_pw_aff_find_dim_by_name(__isl_keep isl_pw_aff
*pa
,
249 enum isl_dim_type type
, const char *name
);
251 isl_bool
isl_pw_aff_is_empty(__isl_keep isl_pw_aff
*pwaff
);
252 isl_bool
isl_pw_aff_involves_nan(__isl_keep isl_pw_aff
*pa
);
253 int isl_pw_aff_plain_cmp(__isl_keep isl_pw_aff
*pa1
,
254 __isl_keep isl_pw_aff
*pa2
);
255 isl_bool
isl_pw_aff_plain_is_equal(__isl_keep isl_pw_aff
*pwaff1
,
256 __isl_keep isl_pw_aff
*pwaff2
);
257 isl_bool
isl_pw_aff_is_equal(__isl_keep isl_pw_aff
*pa1
,
258 __isl_keep isl_pw_aff
*pa2
);
260 __isl_give isl_pw_aff
*isl_pw_aff_union_min(__isl_take isl_pw_aff
*pwaff1
,
261 __isl_take isl_pw_aff
*pwaff2
);
262 __isl_give isl_pw_aff
*isl_pw_aff_union_max(__isl_take isl_pw_aff
*pwaff1
,
263 __isl_take isl_pw_aff
*pwaff2
);
265 __isl_give isl_pw_aff
*isl_pw_aff_union_add(__isl_take isl_pw_aff
*pwaff1
,
266 __isl_take isl_pw_aff
*pwaff2
);
268 __isl_give isl_pw_aff
*isl_pw_aff_copy(__isl_keep isl_pw_aff
*pwaff
);
269 __isl_null isl_pw_aff
*isl_pw_aff_free(__isl_take isl_pw_aff
*pwaff
);
271 isl_size
isl_pw_aff_dim(__isl_keep isl_pw_aff
*pwaff
, enum isl_dim_type type
);
272 isl_bool
isl_pw_aff_involves_param_id(__isl_keep isl_pw_aff
*pa
,
273 __isl_keep isl_id
*id
);
274 isl_bool
isl_pw_aff_involves_dims(__isl_keep isl_pw_aff
*pwaff
,
275 enum isl_dim_type type
, unsigned first
, unsigned n
);
277 isl_bool
isl_pw_aff_is_cst(__isl_keep isl_pw_aff
*pwaff
);
280 __isl_give isl_pw_aff
*isl_pw_aff_insert_domain(__isl_take isl_pw_aff
*pa
,
281 __isl_take isl_space
*domain
);
282 __isl_give isl_pw_aff
*isl_pw_aff_project_domain_on_params(
283 __isl_take isl_pw_aff
*pa
);
285 __isl_give isl_pw_aff
*isl_pw_aff_align_params(__isl_take isl_pw_aff
*pwaff
,
286 __isl_take isl_space
*model
);
287 __isl_give isl_pw_aff
*isl_pw_aff_drop_unused_params(
288 __isl_take isl_pw_aff
*pa
);
290 isl_bool
isl_pw_aff_has_tuple_id(__isl_keep isl_pw_aff
*pa
,
291 enum isl_dim_type type
);
292 __isl_give isl_id
*isl_pw_aff_get_tuple_id(__isl_keep isl_pw_aff
*pa
,
293 enum isl_dim_type type
);
294 __isl_give isl_pw_aff
*isl_pw_aff_set_tuple_id(__isl_take isl_pw_aff
*pwaff
,
295 enum isl_dim_type type
, __isl_take isl_id
*id
);
296 __isl_give isl_pw_aff
*isl_pw_aff_reset_tuple_id(__isl_take isl_pw_aff
*pa
,
297 enum isl_dim_type type
);
298 __isl_give isl_pw_aff
*isl_pw_aff_reset_user(__isl_take isl_pw_aff
*pa
);
300 __isl_give isl_set
*isl_pw_aff_params(__isl_take isl_pw_aff
*pwa
);
302 __isl_give isl_set
*isl_pw_aff_domain(__isl_take isl_pw_aff
*pwaff
);
303 __isl_give isl_pw_aff
*isl_pw_aff_from_range(__isl_take isl_pw_aff
*pwa
);
306 __isl_give isl_pw_aff
*isl_pw_aff_min(__isl_take isl_pw_aff
*pwaff1
,
307 __isl_take isl_pw_aff
*pwaff2
);
309 __isl_give isl_pw_aff
*isl_pw_aff_max(__isl_take isl_pw_aff
*pwaff1
,
310 __isl_take isl_pw_aff
*pwaff2
);
312 __isl_give isl_pw_aff
*isl_pw_aff_mul(__isl_take isl_pw_aff
*pwaff1
,
313 __isl_take isl_pw_aff
*pwaff2
);
315 __isl_give isl_pw_aff
*isl_pw_aff_div(__isl_take isl_pw_aff
*pa1
,
316 __isl_take isl_pw_aff
*pa2
);
318 __isl_give isl_pw_aff
*isl_pw_aff_add(__isl_take isl_pw_aff
*pwaff1
,
319 __isl_take isl_pw_aff
*pwaff2
);
321 __isl_give isl_pw_aff
*isl_pw_aff_sub(__isl_take isl_pw_aff
*pwaff1
,
322 __isl_take isl_pw_aff
*pwaff2
);
324 __isl_give isl_pw_aff
*isl_pw_aff_neg(__isl_take isl_pw_aff
*pwaff
);
326 __isl_give isl_pw_aff
*isl_pw_aff_ceil(__isl_take isl_pw_aff
*pwaff
);
328 __isl_give isl_pw_aff
*isl_pw_aff_floor(__isl_take isl_pw_aff
*pwaff
);
330 __isl_give isl_pw_aff
*isl_pw_aff_mod_val(__isl_take isl_pw_aff
*pa
,
331 __isl_take isl_val
*mod
);
333 __isl_give isl_pw_aff
*isl_pw_aff_tdiv_q(__isl_take isl_pw_aff
*pa1
,
334 __isl_take isl_pw_aff
*pa2
);
336 __isl_give isl_pw_aff
*isl_pw_aff_tdiv_r(__isl_take isl_pw_aff
*pa1
,
337 __isl_take isl_pw_aff
*pa2
);
340 __isl_give isl_pw_aff
*isl_pw_aff_intersect_params(__isl_take isl_pw_aff
*pa
,
341 __isl_take isl_set
*set
);
343 __isl_give isl_pw_aff
*isl_pw_aff_intersect_domain(__isl_take isl_pw_aff
*pa
,
344 __isl_take isl_set
*set
);
345 __isl_give isl_pw_aff
*isl_pw_aff_intersect_domain_wrapped_domain(
346 __isl_take isl_pw_aff
*pa
, __isl_take isl_set
*set
);
347 __isl_give isl_pw_aff
*isl_pw_aff_intersect_domain_wrapped_range(
348 __isl_take isl_pw_aff
*pa
, __isl_take isl_set
*set
);
350 __isl_give isl_pw_aff
*isl_pw_aff_subtract_domain(__isl_take isl_pw_aff
*pa
,
351 __isl_take isl_set
*set
);
354 __isl_give isl_pw_aff
*isl_pw_aff_cond(__isl_take isl_pw_aff
*cond
,
355 __isl_take isl_pw_aff
*pwaff_true
, __isl_take isl_pw_aff
*pwaff_false
);
358 __isl_give isl_pw_aff
*isl_pw_aff_add_constant_val(__isl_take isl_pw_aff
*pa
,
359 __isl_take isl_val
*v
);
361 __isl_give isl_pw_aff
*isl_pw_aff_scale_val(__isl_take isl_pw_aff
*pa
,
362 __isl_take isl_val
*v
);
364 __isl_give isl_pw_aff
*isl_pw_aff_scale_down_val(__isl_take isl_pw_aff
*pa
,
365 __isl_take isl_val
*f
);
367 __isl_give isl_pw_aff
*isl_pw_aff_insert_dims(__isl_take isl_pw_aff
*pwaff
,
368 enum isl_dim_type type
, unsigned first
, unsigned n
);
369 __isl_give isl_pw_aff
*isl_pw_aff_add_dims(__isl_take isl_pw_aff
*pwaff
,
370 enum isl_dim_type type
, unsigned n
);
371 __isl_give isl_pw_aff
*isl_pw_aff_move_dims(__isl_take isl_pw_aff
*pa
,
372 enum isl_dim_type dst_type
, unsigned dst_pos
,
373 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
374 __isl_give isl_pw_aff
*isl_pw_aff_drop_dims(__isl_take isl_pw_aff
*pwaff
,
375 enum isl_dim_type type
, unsigned first
, unsigned n
);
378 __isl_give isl_pw_aff
*isl_pw_aff_coalesce(__isl_take isl_pw_aff
*pa
);
380 __isl_give isl_pw_aff
*isl_pw_aff_gist(__isl_take isl_pw_aff
*pwaff
,
381 __isl_take isl_set
*context
);
382 __isl_give isl_pw_aff
*isl_pw_aff_gist_params(__isl_take isl_pw_aff
*pwaff
,
383 __isl_take isl_set
*context
);
386 __isl_give isl_val
*isl_pw_aff_eval(__isl_take isl_pw_aff
*pa
,
387 __isl_take isl_point
*pnt
);
390 __isl_give isl_pw_aff
*isl_pw_aff_pullback_multi_aff(
391 __isl_take isl_pw_aff
*pa
, __isl_take isl_multi_aff
*ma
);
393 __isl_give isl_pw_aff
*isl_pw_aff_pullback_pw_multi_aff(
394 __isl_take isl_pw_aff
*pa
, __isl_take isl_pw_multi_aff
*pma
);
396 __isl_give isl_pw_aff
*isl_pw_aff_pullback_multi_pw_aff(
397 __isl_take isl_pw_aff
*pa
, __isl_take isl_multi_pw_aff
*mpa
);
399 isl_size
isl_pw_aff_n_piece(__isl_keep isl_pw_aff
*pwaff
);
400 isl_stat
isl_pw_aff_foreach_piece(__isl_keep isl_pw_aff
*pwaff
,
401 isl_stat (*fn
)(__isl_take isl_set
*set
, __isl_take isl_aff
*aff
,
402 void *user
), void *user
);
403 isl_bool
isl_pw_aff_every_piece(__isl_keep isl_pw_aff
*pa
,
404 isl_bool (*test
)(__isl_keep isl_set
*set
, __isl_keep isl_aff
*aff
,
405 void *user
), void *user
);
407 isl_bool
isl_pw_aff_isa_aff(__isl_keep isl_pw_aff
*pa
);
409 __isl_give isl_aff
*isl_pw_aff_as_aff(__isl_take isl_pw_aff
*pa
);
412 __isl_give isl_map
*isl_pw_aff_as_map(__isl_take isl_pw_aff
*pa
);
413 __isl_give isl_set
*isl_set_from_pw_aff(__isl_take isl_pw_aff
*pwaff
);
414 __isl_give isl_map
*isl_map_from_pw_aff(__isl_take isl_pw_aff
*pwaff
);
416 __isl_give isl_set
*isl_pw_aff_pos_set(__isl_take isl_pw_aff
*pa
);
417 __isl_give isl_set
*isl_pw_aff_nonneg_set(__isl_take isl_pw_aff
*pwaff
);
418 __isl_give isl_set
*isl_pw_aff_zero_set(__isl_take isl_pw_aff
*pwaff
);
419 __isl_give isl_set
*isl_pw_aff_non_zero_set(__isl_take isl_pw_aff
*pwaff
);
422 __isl_give isl_set
*isl_pw_aff_eq_set(__isl_take isl_pw_aff
*pwaff1
,
423 __isl_take isl_pw_aff
*pwaff2
);
425 __isl_give isl_set
*isl_pw_aff_ne_set(__isl_take isl_pw_aff
*pwaff1
,
426 __isl_take isl_pw_aff
*pwaff2
);
428 __isl_give isl_set
*isl_pw_aff_le_set(__isl_take isl_pw_aff
*pwaff1
,
429 __isl_take isl_pw_aff
*pwaff2
);
431 __isl_give isl_set
*isl_pw_aff_lt_set(__isl_take isl_pw_aff
*pwaff1
,
432 __isl_take isl_pw_aff
*pwaff2
);
434 __isl_give isl_set
*isl_pw_aff_ge_set(__isl_take isl_pw_aff
*pwaff1
,
435 __isl_take isl_pw_aff
*pwaff2
);
437 __isl_give isl_set
*isl_pw_aff_gt_set(__isl_take isl_pw_aff
*pwaff1
,
438 __isl_take isl_pw_aff
*pwaff2
);
440 __isl_give isl_map
*isl_pw_aff_eq_map(__isl_take isl_pw_aff
*pa1
,
441 __isl_take isl_pw_aff
*pa2
);
442 __isl_give isl_map
*isl_pw_aff_le_map(__isl_take isl_pw_aff
*pa1
,
443 __isl_take isl_pw_aff
*pa2
);
444 __isl_give isl_map
*isl_pw_aff_lt_map(__isl_take isl_pw_aff
*pa1
,
445 __isl_take isl_pw_aff
*pa2
);
446 __isl_give isl_map
*isl_pw_aff_ge_map(__isl_take isl_pw_aff
*pa1
,
447 __isl_take isl_pw_aff
*pa2
);
448 __isl_give isl_map
*isl_pw_aff_gt_map(__isl_take isl_pw_aff
*pa1
,
449 __isl_take isl_pw_aff
*pa2
);
452 __isl_give isl_pw_aff
*isl_pw_aff_bind_domain(__isl_take isl_pw_aff
*pa
,
453 __isl_take isl_multi_id
*tuple
);
455 __isl_give isl_pw_aff
*isl_pw_aff_bind_domain_wrapped_domain(
456 __isl_take isl_pw_aff
*pa
, __isl_take isl_multi_id
*tuple
);
458 __isl_give isl_set
*isl_pw_aff_bind_id(__isl_take isl_pw_aff
*pa
,
459 __isl_take isl_id
*id
);
462 __isl_give isl_pw_aff
*isl_pw_aff_read_from_str(isl_ctx
*ctx
, const char *str
);
463 __isl_give
char *isl_pw_aff_to_str(__isl_keep isl_pw_aff
*pa
);
464 __isl_give isl_printer
*isl_printer_print_pw_aff(__isl_take isl_printer
*p
,
465 __isl_keep isl_pw_aff
*pwaff
);
466 void isl_pw_aff_dump(__isl_keep isl_pw_aff
*pwaff
);
468 __isl_give isl_pw_aff
*isl_pw_aff_list_min(__isl_take isl_pw_aff_list
*list
);
469 __isl_give isl_pw_aff
*isl_pw_aff_list_max(__isl_take isl_pw_aff_list
*list
);
471 __isl_give isl_set
*isl_pw_aff_list_eq_set(__isl_take isl_pw_aff_list
*list1
,
472 __isl_take isl_pw_aff_list
*list2
);
473 __isl_give isl_set
*isl_pw_aff_list_ne_set(__isl_take isl_pw_aff_list
*list1
,
474 __isl_take isl_pw_aff_list
*list2
);
475 __isl_give isl_set
*isl_pw_aff_list_le_set(__isl_take isl_pw_aff_list
*list1
,
476 __isl_take isl_pw_aff_list
*list2
);
477 __isl_give isl_set
*isl_pw_aff_list_lt_set(__isl_take isl_pw_aff_list
*list1
,
478 __isl_take isl_pw_aff_list
*list2
);
479 __isl_give isl_set
*isl_pw_aff_list_ge_set(__isl_take isl_pw_aff_list
*list1
,
480 __isl_take isl_pw_aff_list
*list2
);
481 __isl_give isl_set
*isl_pw_aff_list_gt_set(__isl_take isl_pw_aff_list
*list1
,
482 __isl_take isl_pw_aff_list
*list2
);
484 ISL_DECLARE_MULTI(aff
)
485 ISL_DECLARE_MULTI_IDENTITY(aff
)
486 ISL_DECLARE_MULTI_CMP(aff
)
487 ISL_DECLARE_MULTI_ARITH(aff
)
488 ISL_DECLARE_MULTI_ADD_CONSTANT(aff
)
489 ISL_DECLARE_MULTI_ZERO(aff
)
490 ISL_DECLARE_MULTI_NAN(aff
)
491 ISL_DECLARE_MULTI_DIMS(aff
)
492 ISL_DECLARE_MULTI_INSERT_DOMAIN(aff
)
493 ISL_DECLARE_MULTI_LOCALS(aff
)
494 ISL_DECLARE_MULTI_DIM_ID(aff
)
495 ISL_DECLARE_MULTI_TUPLE_ID(aff
)
496 ISL_DECLARE_MULTI_WITH_DOMAIN(aff
)
497 ISL_DECLARE_MULTI_BIND_DOMAIN(aff
)
498 ISL_DECLARE_MULTI_UNBIND_PARAMS(aff
)
501 __isl_give isl_multi_aff
*isl_multi_aff_from_aff(__isl_take isl_aff
*aff
);
503 __isl_give isl_multi_aff
*isl_multi_aff_domain_map(__isl_take isl_space
*space
);
505 __isl_give isl_multi_aff
*isl_space_domain_map_multi_aff(
506 __isl_take isl_space
*space
);
508 __isl_give isl_multi_aff
*isl_multi_aff_range_map(__isl_take isl_space
*space
);
510 __isl_give isl_multi_aff
*isl_space_range_map_multi_aff(
511 __isl_take isl_space
*space
);
512 __isl_give isl_multi_aff
*isl_multi_aff_project_out_map(
513 __isl_take isl_space
*space
, enum isl_dim_type type
,
514 unsigned first
, unsigned n
);
517 __isl_give isl_multi_aff
*isl_multi_aff_multi_val_on_domain_space(
518 __isl_take isl_space
*space
, __isl_take isl_multi_val
*mv
);
520 __isl_give isl_multi_aff
*isl_space_multi_aff_on_domain_multi_val(
521 __isl_take isl_space
*space
, __isl_take isl_multi_val
*mv
);
522 __isl_give isl_multi_aff
*isl_multi_aff_multi_val_on_space(
523 __isl_take isl_space
*space
, __isl_take isl_multi_val
*mv
);
526 __isl_give isl_multi_val
*isl_multi_aff_get_constant_multi_val(
527 __isl_keep isl_multi_aff
*ma
);
530 __isl_give isl_multi_aff
*isl_multi_aff_floor(__isl_take isl_multi_aff
*ma
);
532 __isl_give isl_multi_aff
*isl_multi_aff_gist_params(
533 __isl_take isl_multi_aff
*maff
, __isl_take isl_set
*context
);
535 __isl_give isl_multi_aff
*isl_multi_aff_gist(__isl_take isl_multi_aff
*maff
,
536 __isl_take isl_set
*context
);
538 __isl_give isl_multi_aff
*isl_multi_aff_lift(__isl_take isl_multi_aff
*maff
,
539 __isl_give isl_local_space
**ls
);
542 __isl_give isl_multi_aff
*isl_multi_aff_pullback_multi_aff(
543 __isl_take isl_multi_aff
*ma1
, __isl_take isl_multi_aff
*ma2
);
545 __isl_give isl_multi_aff
*isl_multi_aff_move_dims(__isl_take isl_multi_aff
*ma
,
546 enum isl_dim_type dst_type
, unsigned dst_pos
,
547 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
549 __isl_give isl_set
*isl_multi_aff_lex_lt_set(__isl_take isl_multi_aff
*ma1
,
550 __isl_take isl_multi_aff
*ma2
);
551 __isl_give isl_set
*isl_multi_aff_lex_le_set(__isl_take isl_multi_aff
*ma1
,
552 __isl_take isl_multi_aff
*ma2
);
553 __isl_give isl_set
*isl_multi_aff_lex_gt_set(__isl_take isl_multi_aff
*ma1
,
554 __isl_take isl_multi_aff
*ma2
);
555 __isl_give isl_set
*isl_multi_aff_lex_ge_set(__isl_take isl_multi_aff
*ma1
,
556 __isl_take isl_multi_aff
*ma2
);
559 __isl_give isl_basic_set
*isl_multi_aff_bind(__isl_take isl_multi_aff
*ma
,
560 __isl_take isl_multi_id
*tuple
);
562 __isl_give
char *isl_multi_aff_to_str(__isl_keep isl_multi_aff
*ma
);
563 __isl_give isl_printer
*isl_printer_print_multi_aff(__isl_take isl_printer
*p
,
564 __isl_keep isl_multi_aff
*maff
);
567 __isl_give isl_multi_aff
*isl_multi_aff_read_from_str(isl_ctx
*ctx
,
569 void isl_multi_aff_dump(__isl_keep isl_multi_aff
*maff
);
571 ISL_DECLARE_MULTI(pw_aff
)
572 ISL_DECLARE_MULTI_IDENTITY(pw_aff
)
573 ISL_DECLARE_MULTI_ARITH(pw_aff
)
574 ISL_DECLARE_MULTI_MIN_MAX(pw_aff
)
575 ISL_DECLARE_MULTI_ADD_CONSTANT(pw_aff
)
576 ISL_DECLARE_MULTI_ZERO(pw_aff
)
577 ISL_DECLARE_MULTI_NAN(pw_aff
)
578 ISL_DECLARE_MULTI_DIMS(pw_aff
)
579 ISL_DECLARE_MULTI_DIM_ID(pw_aff
)
580 ISL_DECLARE_MULTI_INSERT_DOMAIN(pw_aff
)
581 ISL_DECLARE_MULTI_TUPLE_ID(pw_aff
)
582 ISL_DECLARE_MULTI_WITH_DOMAIN(pw_aff
)
583 ISL_DECLARE_MULTI_BIND_DOMAIN(pw_aff
)
584 ISL_DECLARE_MULTI_PARAM(pw_aff
)
585 ISL_DECLARE_MULTI_UNBIND_PARAMS(pw_aff
)
588 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_zero(__isl_take isl_space
*space
);
590 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_identity_on_domain_space(
591 __isl_take isl_space
*space
);
593 __isl_give isl_pw_multi_aff
*isl_space_identity_pw_multi_aff_on_domain(
594 __isl_take isl_space
*space
);
595 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_identity(
596 __isl_take isl_space
*space
);
598 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_domain_map(
599 __isl_take isl_space
*space
);
601 __isl_give isl_pw_multi_aff
*isl_space_domain_map_pw_multi_aff(
602 __isl_take isl_space
*space
);
604 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_range_map(
605 __isl_take isl_space
*space
);
607 __isl_give isl_pw_multi_aff
*isl_space_range_map_pw_multi_aff(
608 __isl_take isl_space
*space
);
609 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_project_out_map(
610 __isl_take isl_space
*space
, enum isl_dim_type type
,
611 unsigned first
, unsigned n
);
613 __isl_give isl_pw_multi_aff
*isl_multi_aff_to_pw_multi_aff(
614 __isl_take isl_multi_aff
*ma
);
616 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_multi_aff(
617 __isl_take isl_multi_aff
*ma
);
619 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_pw_aff(
620 __isl_take isl_pw_aff
*pa
);
621 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_alloc(__isl_take isl_set
*set
,
622 __isl_take isl_multi_aff
*maff
);
623 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_copy(
624 __isl_keep isl_pw_multi_aff
*pma
);
625 __isl_null isl_pw_multi_aff
*isl_pw_multi_aff_free(
626 __isl_take isl_pw_multi_aff
*pma
);
628 isl_size
isl_pw_multi_aff_dim(__isl_keep isl_pw_multi_aff
*pma
,
629 enum isl_dim_type type
);
631 isl_bool
isl_pw_multi_aff_involves_locals(__isl_keep isl_pw_multi_aff
*pma
);
632 isl_bool
isl_pw_multi_aff_involves_param_id(__isl_keep isl_pw_multi_aff
*pma
,
633 __isl_keep isl_id
*id
);
634 isl_bool
isl_pw_multi_aff_involves_dims(__isl_keep isl_pw_multi_aff
*pma
,
635 enum isl_dim_type type
, unsigned first
, unsigned n
);
637 __isl_give isl_pw_aff
*isl_pw_multi_aff_get_at(
638 __isl_keep isl_pw_multi_aff
*pma
, int pos
);
639 __isl_give isl_pw_aff
*isl_pw_multi_aff_get_pw_aff(
640 __isl_keep isl_pw_multi_aff
*pma
, int pos
);
641 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_set_pw_aff(
642 __isl_take isl_pw_multi_aff
*pma
, unsigned pos
,
643 __isl_take isl_pw_aff
*pa
);
645 isl_ctx
*isl_pw_multi_aff_get_ctx(__isl_keep isl_pw_multi_aff
*pma
);
646 __isl_give isl_space
*isl_pw_multi_aff_get_domain_space(
647 __isl_keep isl_pw_multi_aff
*pma
);
649 __isl_give isl_space
*isl_pw_multi_aff_get_space(
650 __isl_keep isl_pw_multi_aff
*pma
);
651 isl_bool
isl_pw_multi_aff_has_tuple_name(__isl_keep isl_pw_multi_aff
*pma
,
652 enum isl_dim_type type
);
653 const char *isl_pw_multi_aff_get_tuple_name(__isl_keep isl_pw_multi_aff
*pma
,
654 enum isl_dim_type type
);
656 __isl_give isl_id
*isl_pw_multi_aff_get_range_tuple_id(
657 __isl_keep isl_pw_multi_aff
*pma
);
658 __isl_give isl_id
*isl_pw_multi_aff_get_tuple_id(
659 __isl_keep isl_pw_multi_aff
*pma
, enum isl_dim_type type
);
661 isl_bool
isl_pw_multi_aff_has_range_tuple_id(__isl_keep isl_pw_multi_aff
*pma
);
662 isl_bool
isl_pw_multi_aff_has_tuple_id(__isl_keep isl_pw_multi_aff
*pma
,
663 enum isl_dim_type type
);
664 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_set_tuple_id(
665 __isl_take isl_pw_multi_aff
*pma
,
666 enum isl_dim_type type
, __isl_take isl_id
*id
);
668 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_set_range_tuple_id(
669 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_id
*id
);
670 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_reset_tuple_id(
671 __isl_take isl_pw_multi_aff
*pma
, enum isl_dim_type type
);
672 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_reset_user(
673 __isl_take isl_pw_multi_aff
*pma
);
675 int isl_pw_multi_aff_find_dim_by_name(__isl_keep isl_pw_multi_aff
*pma
,
676 enum isl_dim_type type
, const char *name
);
678 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_drop_dims(
679 __isl_take isl_pw_multi_aff
*pma
,
680 enum isl_dim_type type
, unsigned first
, unsigned n
);
683 __isl_give isl_set
*isl_pw_multi_aff_domain(__isl_take isl_pw_multi_aff
*pma
);
685 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_empty(__isl_take isl_space
*space
);
686 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_domain(
687 __isl_take isl_set
*set
);
690 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_multi_val_on_domain(
691 __isl_take isl_set
*domain
, __isl_take isl_multi_val
*mv
);
693 __isl_give isl_pw_multi_aff
*isl_set_pw_multi_aff_on_domain_multi_val(
694 __isl_take isl_set
*domain
, __isl_take isl_multi_val
*mv
);
696 const char *isl_pw_multi_aff_get_dim_name(__isl_keep isl_pw_multi_aff
*pma
,
697 enum isl_dim_type type
, unsigned pos
);
698 __isl_give isl_id
*isl_pw_multi_aff_get_dim_id(
699 __isl_keep isl_pw_multi_aff
*pma
, enum isl_dim_type type
,
701 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_set_dim_id(
702 __isl_take isl_pw_multi_aff
*pma
,
703 enum isl_dim_type type
, unsigned pos
, __isl_take isl_id
*id
);
705 isl_bool
isl_pw_multi_aff_involves_nan(__isl_keep isl_pw_multi_aff
*pma
);
706 isl_bool
isl_pw_multi_aff_plain_is_equal(__isl_keep isl_pw_multi_aff
*pma1
,
707 __isl_keep isl_pw_multi_aff
*pma2
);
708 isl_bool
isl_pw_multi_aff_is_equal(__isl_keep isl_pw_multi_aff
*pma1
,
709 __isl_keep isl_pw_multi_aff
*pma2
);
711 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_fix_si(
712 __isl_take isl_pw_multi_aff
*pma
, enum isl_dim_type type
,
713 unsigned pos
, int value
);
716 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_union_add(
717 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
719 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_neg(
720 __isl_take isl_pw_multi_aff
*pma
);
723 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_add(
724 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
726 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_sub(
727 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
730 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_add_constant_val(
731 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_val
*v
);
733 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_add_constant_multi_val(
734 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_multi_val
*mv
);
736 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_scale_val(
737 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_val
*v
);
739 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_scale_down_val(
740 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_val
*v
);
742 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_scale_multi_val(
743 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_multi_val
*mv
);
745 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_union_lexmin(
746 __isl_take isl_pw_multi_aff
*pma1
,
747 __isl_take isl_pw_multi_aff
*pma2
);
748 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_union_lexmax(
749 __isl_take isl_pw_multi_aff
*pma1
,
750 __isl_take isl_pw_multi_aff
*pma2
);
752 __isl_give isl_multi_aff
*isl_multi_aff_flatten_domain(
753 __isl_take isl_multi_aff
*ma
);
756 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_range_product(
757 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
759 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_flat_range_product(
760 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
762 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_product(
763 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
765 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_range_factor_domain(
766 __isl_take isl_pw_multi_aff
*pma
);
768 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_range_factor_range(
769 __isl_take isl_pw_multi_aff
*pma
);
772 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_intersect_params(
773 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
775 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_intersect_domain(
776 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
777 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_intersect_domain_wrapped_domain(
778 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
779 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_intersect_domain_wrapped_range(
780 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
782 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_subtract_domain(
783 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
786 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_insert_domain(
787 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_space
*domain
);
788 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_project_domain_on_params(
789 __isl_take isl_pw_multi_aff
*pma
);
791 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_align_params(
792 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_space
*model
);
793 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_drop_unused_params(
794 __isl_take isl_pw_multi_aff
*pma
);
797 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_coalesce(
798 __isl_take isl_pw_multi_aff
*pma
);
799 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_gist_params(
800 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
802 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_gist(
803 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
806 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_pullback_multi_aff(
807 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_multi_aff
*ma
);
809 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_pullback_pw_multi_aff(
810 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
812 __isl_give isl_pw_multi_aff
*
813 isl_pw_multi_aff_preimage_domain_wrapped_domain_pw_multi_aff(
814 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
817 isl_size
isl_pw_multi_aff_n_piece(__isl_keep isl_pw_multi_aff
*pma
);
819 isl_stat
isl_pw_multi_aff_foreach_piece(__isl_keep isl_pw_multi_aff
*pma
,
820 isl_stat (*fn
)(__isl_take isl_set
*set
, __isl_take isl_multi_aff
*maff
,
821 void *user
), void *user
);
822 isl_bool
isl_pw_multi_aff_every_piece(__isl_keep isl_pw_multi_aff
*pma
,
823 isl_bool (*test
)(__isl_keep isl_set
*set
, __isl_keep isl_multi_aff
*ma
,
824 void *user
), void *user
);
826 isl_bool
isl_pw_multi_aff_isa_multi_aff(__isl_keep isl_pw_multi_aff
*pma
);
828 __isl_give isl_multi_aff
*isl_pw_multi_aff_as_multi_aff(
829 __isl_take isl_pw_multi_aff
*pma
);
832 __isl_give isl_map
*isl_pw_multi_aff_as_map(__isl_take isl_pw_multi_aff
*pma
);
833 __isl_give isl_map
*isl_map_from_pw_multi_aff(__isl_take isl_pw_multi_aff
*pma
);
835 __isl_give isl_set
*isl_pw_multi_aff_as_set(__isl_take isl_pw_multi_aff
*pma
);
836 __isl_give isl_set
*isl_set_from_pw_multi_aff(__isl_take isl_pw_multi_aff
*pma
);
838 __isl_give
char *isl_pw_multi_aff_to_str(__isl_keep isl_pw_multi_aff
*pma
);
839 __isl_give isl_printer
*isl_printer_print_pw_multi_aff(__isl_take isl_printer
*p
,
840 __isl_keep isl_pw_multi_aff
*pma
);
843 __isl_give isl_pw_multi_aff
*isl_set_as_pw_multi_aff(__isl_take isl_set
*set
);
844 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_set(__isl_take isl_set
*set
);
846 __isl_give isl_pw_multi_aff
*isl_map_as_pw_multi_aff(__isl_take isl_map
*map
);
847 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_map(__isl_take isl_map
*map
);
850 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_bind_domain(
851 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_multi_id
*tuple
);
853 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_bind_domain_wrapped_domain(
854 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_multi_id
*tuple
);
857 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_read_from_str(isl_ctx
*ctx
,
859 void isl_pw_multi_aff_dump(__isl_keep isl_pw_multi_aff
*pma
);
863 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_empty_ctx(
865 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_empty_space(
866 __isl_take isl_space
*space
);
867 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_empty(
868 __isl_take isl_space
*space
);
869 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_aff(
870 __isl_take isl_aff
*aff
);
872 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_multi_aff(
873 __isl_take isl_multi_aff
*ma
);
875 __isl_give isl_union_pw_multi_aff
*isl_pw_multi_aff_to_union_pw_multi_aff(
876 __isl_take isl_pw_multi_aff
*pma
);
878 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_pw_multi_aff(
879 __isl_take isl_pw_multi_aff
*pma
);
880 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_domain(
881 __isl_take isl_union_set
*uset
);
882 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_multi_val_on_domain(
883 __isl_take isl_union_set
*domain
, __isl_take isl_multi_val
*mv
);
884 __isl_give isl_union_pw_aff
*isl_union_pw_aff_param_on_domain_id(
885 __isl_take isl_union_set
*domain
, __isl_take isl_id
*id
);
886 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_copy(
887 __isl_keep isl_union_pw_multi_aff
*upma
);
888 __isl_null isl_union_pw_multi_aff
*isl_union_pw_multi_aff_free(
889 __isl_take isl_union_pw_multi_aff
*upma
);
891 __isl_give isl_union_pw_multi_aff
*isl_union_set_identity_union_pw_multi_aff(
892 __isl_take isl_union_set
*uset
);
894 __isl_give isl_union_pw_aff
*isl_union_pw_multi_aff_get_union_pw_aff(
895 __isl_keep isl_union_pw_multi_aff
*upma
, int pos
);
897 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_add_pw_multi_aff(
898 __isl_take isl_union_pw_multi_aff
*upma
,
899 __isl_take isl_pw_multi_aff
*pma
);
901 isl_ctx
*isl_union_pw_multi_aff_get_ctx(
902 __isl_keep isl_union_pw_multi_aff
*upma
);
904 __isl_give isl_space
*isl_union_pw_multi_aff_get_space(
905 __isl_keep isl_union_pw_multi_aff
*upma
);
907 __isl_give isl_pw_multi_aff_list
*isl_union_pw_multi_aff_get_pw_multi_aff_list(
908 __isl_keep isl_union_pw_multi_aff
*upma
);
910 isl_size
isl_union_pw_multi_aff_dim(__isl_keep isl_union_pw_multi_aff
*upma
,
911 enum isl_dim_type type
);
912 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_set_dim_name(
913 __isl_take isl_union_pw_multi_aff
*upma
,
914 enum isl_dim_type type
, unsigned pos
, const char *s
);
916 int isl_union_pw_multi_aff_find_dim_by_name(
917 __isl_keep isl_union_pw_multi_aff
*upma
, enum isl_dim_type type
,
920 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_drop_dims(
921 __isl_take isl_union_pw_multi_aff
*upma
,
922 enum isl_dim_type type
, unsigned first
, unsigned n
);
923 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_reset_user(
924 __isl_take isl_union_pw_multi_aff
*upma
);
927 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_coalesce(
928 __isl_take isl_union_pw_multi_aff
*upma
);
929 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_gist_params(
930 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_set
*context
);
932 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_gist(
933 __isl_take isl_union_pw_multi_aff
*upma
,
934 __isl_take isl_union_set
*context
);
937 __isl_give isl_union_pw_multi_aff
*
938 isl_union_pw_multi_aff_pullback_union_pw_multi_aff(
939 __isl_take isl_union_pw_multi_aff
*upma1
,
940 __isl_take isl_union_pw_multi_aff
*upma2
);
942 __isl_give isl_union_pw_multi_aff
*
943 isl_union_pw_multi_aff_apply_union_pw_multi_aff(
944 __isl_take isl_union_pw_multi_aff
*upma1
,
945 __isl_take isl_union_pw_multi_aff
*upma2
);
947 __isl_give isl_union_pw_multi_aff
*
948 isl_union_pw_multi_aff_preimage_domain_wrapped_domain_union_pw_multi_aff(
949 __isl_take isl_union_pw_multi_aff
*upma1
,
950 __isl_take isl_union_pw_multi_aff
*upma2
);
952 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_align_params(
953 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_space
*model
);
955 isl_size
isl_union_pw_multi_aff_n_pw_multi_aff(
956 __isl_keep isl_union_pw_multi_aff
*upma
);
958 isl_stat
isl_union_pw_multi_aff_foreach_pw_multi_aff(
959 __isl_keep isl_union_pw_multi_aff
*upma
,
960 isl_stat (*fn
)(__isl_take isl_pw_multi_aff
*pma
, void *user
),
962 isl_bool
isl_union_pw_multi_aff_every_pw_multi_aff(
963 __isl_keep isl_union_pw_multi_aff
*upma
,
964 isl_bool (*test
)(__isl_keep isl_pw_multi_aff
*pma
, void *user
),
967 __isl_give isl_pw_multi_aff
*isl_union_pw_multi_aff_extract_pw_multi_aff(
968 __isl_keep isl_union_pw_multi_aff
*upma
, __isl_take isl_space
*space
);
970 isl_bool
isl_union_pw_multi_aff_isa_pw_multi_aff(
971 __isl_keep isl_union_pw_multi_aff
*upma
);
973 __isl_give isl_pw_multi_aff
*isl_union_pw_multi_aff_as_pw_multi_aff(
974 __isl_take isl_union_pw_multi_aff
*upma
);
977 isl_bool
isl_union_pw_multi_aff_plain_is_empty(
978 __isl_keep isl_union_pw_multi_aff
*upma
);
980 isl_bool
isl_union_pw_multi_aff_involves_locals(
981 __isl_keep isl_union_pw_multi_aff
*upma
);
982 isl_bool
isl_union_pw_multi_aff_involves_nan(
983 __isl_keep isl_union_pw_multi_aff
*upma
);
984 isl_bool
isl_union_pw_multi_aff_plain_is_equal(
985 __isl_keep isl_union_pw_multi_aff
*upma1
,
986 __isl_keep isl_union_pw_multi_aff
*upma2
);
989 __isl_give isl_union_set
*isl_union_pw_multi_aff_domain(
990 __isl_take isl_union_pw_multi_aff
*upma
);
992 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_neg(
993 __isl_take isl_union_pw_multi_aff
*upma
);
996 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_add(
997 __isl_take isl_union_pw_multi_aff
*upma1
,
998 __isl_take isl_union_pw_multi_aff
*upma2
);
1000 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_union_add(
1001 __isl_take isl_union_pw_multi_aff
*upma1
,
1002 __isl_take isl_union_pw_multi_aff
*upma2
);
1004 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_sub(
1005 __isl_take isl_union_pw_multi_aff
*upma1
,
1006 __isl_take isl_union_pw_multi_aff
*upma2
);
1008 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_scale_val(
1009 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_val
*val
);
1010 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_scale_down_val(
1011 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_val
*val
);
1012 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_scale_multi_val(
1013 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_multi_val
*mv
);
1016 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_range_product(
1017 __isl_take isl_union_pw_multi_aff
*upma1
,
1018 __isl_take isl_union_pw_multi_aff
*upma2
);
1020 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_flat_range_product(
1021 __isl_take isl_union_pw_multi_aff
*upma1
,
1022 __isl_take isl_union_pw_multi_aff
*upma2
);
1024 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_range_factor_domain(
1025 __isl_take isl_union_pw_multi_aff
*upma
);
1027 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_range_factor_range(
1028 __isl_take isl_union_pw_multi_aff
*upma
);
1031 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_intersect_params(
1032 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_set
*set
);
1034 __isl_give isl_union_pw_multi_aff
*
1035 isl_union_pw_multi_aff_intersect_domain_union_set(
1036 __isl_take isl_union_pw_multi_aff
*upma
,
1037 __isl_take isl_union_set
*uset
);
1038 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_intersect_domain(
1039 __isl_take isl_union_pw_multi_aff
*upma
,
1040 __isl_take isl_union_set
*uset
);
1042 __isl_give isl_union_pw_multi_aff
*
1043 isl_union_pw_multi_aff_intersect_domain_space(
1044 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_space
*space
);
1046 __isl_give isl_union_pw_multi_aff
*
1047 isl_union_pw_multi_aff_intersect_domain_wrapped_domain(
1048 __isl_take isl_union_pw_multi_aff
*upma
,
1049 __isl_take isl_union_set
*uset
);
1051 __isl_give isl_union_pw_multi_aff
*
1052 isl_union_pw_multi_aff_intersect_domain_wrapped_range(
1053 __isl_take isl_union_pw_multi_aff
*upma
,
1054 __isl_take isl_union_set
*uset
);
1056 __isl_give isl_union_pw_multi_aff
*
1057 isl_union_pw_multi_aff_subtract_domain_union_set(
1058 __isl_take isl_union_pw_multi_aff
*upma
,
1059 __isl_take isl_union_set
*uset
);
1061 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_subtract_domain_space(
1062 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_space
*space
);
1063 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_subtract_domain(
1064 __isl_take isl_union_pw_multi_aff
*upma
,
1065 __isl_take isl_union_set
*uset
);
1068 __isl_give isl_union_map
*isl_union_pw_multi_aff_as_union_map(
1069 __isl_take isl_union_pw_multi_aff
*upma
);
1071 __isl_give isl_union_map
*isl_union_map_from_union_pw_multi_aff(
1072 __isl_take isl_union_pw_multi_aff
*upma
);
1074 __isl_give isl_printer
*isl_printer_print_union_pw_multi_aff(
1075 __isl_take isl_printer
*p
, __isl_keep isl_union_pw_multi_aff
*upma
);
1077 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_union_set(
1078 __isl_take isl_union_set
*uset
);
1080 __isl_give isl_union_pw_multi_aff
*isl_union_map_as_union_pw_multi_aff(
1081 __isl_take isl_union_map
*umap
);
1082 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_union_map(
1083 __isl_take isl_union_map
*umap
);
1086 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_read_from_str(
1087 isl_ctx
*ctx
, const char *str
);
1088 void isl_union_pw_multi_aff_dump(__isl_keep isl_union_pw_multi_aff
*upma
);
1089 __isl_give
char *isl_union_pw_multi_aff_to_str(
1090 __isl_keep isl_union_pw_multi_aff
*upma
);
1092 uint32_t isl_multi_pw_aff_get_hash(__isl_keep isl_multi_pw_aff
*mpa
);
1095 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_from_aff(__isl_take isl_aff
*aff
);
1097 __isl_give isl_multi_pw_aff
*isl_multi_aff_to_multi_pw_aff(
1098 __isl_take isl_multi_aff
*ma
);
1100 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_from_multi_aff(
1101 __isl_take isl_multi_aff
*ma
);
1103 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_from_pw_aff(
1104 __isl_take isl_pw_aff
*pa
);
1106 __isl_give isl_set
*isl_multi_pw_aff_domain(__isl_take isl_multi_pw_aff
*mpa
);
1108 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_intersect_params(
1109 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_set
*set
);
1111 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_intersect_domain(
1112 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_set
*domain
);
1115 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_coalesce(
1116 __isl_take isl_multi_pw_aff
*mpa
);
1118 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_gist(
1119 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_set
*set
);
1120 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_gist_params(
1121 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_set
*set
);
1123 isl_bool
isl_multi_pw_aff_is_cst(__isl_keep isl_multi_pw_aff
*mpa
);
1124 isl_bool
isl_multi_pw_aff_is_equal(__isl_keep isl_multi_pw_aff
*mpa1
,
1125 __isl_keep isl_multi_pw_aff
*mpa2
);
1128 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_pullback_multi_aff(
1129 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_multi_aff
*ma
);
1131 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_pullback_pw_multi_aff(
1132 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_pw_multi_aff
*pma
);
1134 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_pullback_multi_pw_aff(
1135 __isl_take isl_multi_pw_aff
*mpa1
, __isl_take isl_multi_pw_aff
*mpa2
);
1138 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_union_add(
1139 __isl_take isl_multi_pw_aff
*mpa1
, __isl_take isl_multi_pw_aff
*mpa2
);
1141 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_move_dims(
1142 __isl_take isl_multi_pw_aff
*pma
,
1143 enum isl_dim_type dst_type
, unsigned dst_pos
,
1144 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
1147 isl_bool
isl_multi_pw_aff_isa_multi_aff(__isl_keep isl_multi_pw_aff
*mpa
);
1149 __isl_give isl_multi_aff
*isl_multi_pw_aff_as_multi_aff(
1150 __isl_take isl_multi_pw_aff
*mpa
);
1153 __isl_give isl_set
*isl_multi_pw_aff_as_set(__isl_take isl_multi_pw_aff
*mpa
);
1154 __isl_give isl_set
*isl_set_from_multi_pw_aff(__isl_take isl_multi_pw_aff
*mpa
);
1156 __isl_give isl_map
*isl_multi_pw_aff_as_map(__isl_take isl_multi_pw_aff
*mpa
);
1157 __isl_give isl_map
*isl_map_from_multi_pw_aff(__isl_take isl_multi_pw_aff
*mpa
);
1158 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_multi_pw_aff(
1159 __isl_take isl_multi_pw_aff
*mpa
);
1161 __isl_give isl_multi_pw_aff
*isl_pw_multi_aff_to_multi_pw_aff(
1162 __isl_take isl_pw_multi_aff
*pma
);
1164 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_from_pw_multi_aff(
1165 __isl_take isl_pw_multi_aff
*pma
);
1167 __isl_give isl_map
*isl_multi_pw_aff_eq_map(__isl_take isl_multi_pw_aff
*mpa1
,
1168 __isl_take isl_multi_pw_aff
*mpa2
);
1169 __isl_give isl_map
*isl_multi_pw_aff_lex_le_map(
1170 __isl_take isl_multi_pw_aff
*mpa1
, __isl_take isl_multi_pw_aff
*mpa2
);
1171 __isl_give isl_map
*isl_multi_pw_aff_lex_lt_map(
1172 __isl_take isl_multi_pw_aff
*mpa1
, __isl_take isl_multi_pw_aff
*mpa2
);
1173 __isl_give isl_map
*isl_multi_pw_aff_lex_ge_map(
1174 __isl_take isl_multi_pw_aff
*mpa1
, __isl_take isl_multi_pw_aff
*mpa2
);
1175 __isl_give isl_map
*isl_multi_pw_aff_lex_gt_map(
1176 __isl_take isl_multi_pw_aff
*mpa1
, __isl_take isl_multi_pw_aff
*mpa2
);
1179 __isl_give isl_set
*isl_multi_pw_aff_bind(__isl_take isl_multi_pw_aff
*mpa
,
1180 __isl_take isl_multi_id
*tuple
);
1183 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_read_from_str(isl_ctx
*ctx
,
1185 __isl_give
char *isl_multi_pw_aff_to_str(__isl_keep isl_multi_pw_aff
*mpa
);
1186 __isl_give isl_printer
*isl_printer_print_multi_pw_aff(
1187 __isl_take isl_printer
*p
, __isl_keep isl_multi_pw_aff
*mpa
);
1188 void isl_multi_pw_aff_dump(__isl_keep isl_multi_pw_aff
*mpa
);
1190 __isl_give isl_union_pw_aff
*isl_union_pw_aff_copy(
1191 __isl_keep isl_union_pw_aff
*upa
);
1192 __isl_null isl_union_pw_aff
*isl_union_pw_aff_free(
1193 __isl_take isl_union_pw_aff
*upa
);
1195 isl_ctx
*isl_union_pw_aff_get_ctx(__isl_keep isl_union_pw_aff
*upa
);
1197 __isl_give isl_space
*isl_union_pw_aff_get_space(
1198 __isl_keep isl_union_pw_aff
*upa
);
1199 __isl_give isl_pw_aff_list
*isl_union_pw_aff_get_pw_aff_list(
1200 __isl_keep isl_union_pw_aff
*upa
);
1202 isl_size
isl_union_pw_aff_dim(__isl_keep isl_union_pw_aff
*upa
,
1203 enum isl_dim_type type
);
1204 __isl_give isl_union_pw_aff
*isl_union_pw_aff_set_dim_name(
1205 __isl_take isl_union_pw_aff
*upa
, enum isl_dim_type type
,
1206 unsigned pos
, const char *s
);
1208 int isl_union_pw_aff_find_dim_by_name(__isl_keep isl_union_pw_aff
*upa
,
1209 enum isl_dim_type type
, const char *name
);
1211 __isl_give isl_union_pw_aff
*isl_union_pw_aff_drop_dims(
1212 __isl_take isl_union_pw_aff
*upa
,
1213 enum isl_dim_type type
, unsigned first
, unsigned n
);
1214 __isl_give isl_union_pw_aff
*isl_union_pw_aff_reset_user(
1215 __isl_take isl_union_pw_aff
*upa
);
1217 __isl_give isl_union_pw_aff
*isl_union_pw_aff_empty_ctx(isl_ctx
*ctx
);
1218 __isl_give isl_union_pw_aff
*isl_union_pw_aff_empty_space(
1219 __isl_take isl_space
*space
);
1220 __isl_give isl_union_pw_aff
*isl_union_pw_aff_empty(
1221 __isl_take isl_space
*space
);
1223 __isl_give isl_union_pw_aff
*isl_union_pw_aff_from_aff(__isl_take isl_aff
*aff
);
1225 __isl_give isl_union_pw_aff
*isl_pw_aff_to_union_pw_aff(
1226 __isl_take isl_pw_aff
*pa
);
1228 __isl_give isl_union_pw_aff
*isl_union_pw_aff_from_pw_aff(
1229 __isl_take isl_pw_aff
*pa
);
1230 __isl_give isl_union_pw_aff
*isl_union_pw_aff_val_on_domain(
1231 __isl_take isl_union_set
*domain
, __isl_take isl_val
*v
);
1232 __isl_give isl_union_pw_aff
*isl_union_pw_aff_aff_on_domain(
1233 __isl_take isl_union_set
*domain
, __isl_take isl_aff
*aff
);
1234 __isl_give isl_union_pw_aff
*isl_union_pw_aff_pw_aff_on_domain(
1235 __isl_take isl_union_set
*domain
, __isl_take isl_pw_aff
*pa
);
1236 __isl_give isl_union_pw_aff
*isl_union_pw_aff_add_pw_aff(
1237 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_pw_aff
*pa
);
1240 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_union_pw_aff(
1241 __isl_take isl_union_pw_aff
*upa
);
1243 isl_size
isl_union_pw_aff_n_pw_aff(__isl_keep isl_union_pw_aff
*upa
);
1245 isl_stat
isl_union_pw_aff_foreach_pw_aff(__isl_keep isl_union_pw_aff
*upa
,
1246 isl_stat (*fn
)(__isl_take isl_pw_aff
*pa
, void *user
), void *user
);
1247 isl_bool
isl_union_pw_aff_every_pw_aff(__isl_keep isl_union_pw_aff
*upa
,
1248 isl_bool (*test
)(__isl_keep isl_pw_aff
*pa
, void *user
), void *user
);
1249 __isl_give isl_pw_aff
*isl_union_pw_aff_extract_pw_aff(
1250 __isl_keep isl_union_pw_aff
*upa
, __isl_take isl_space
*space
);
1252 isl_bool
isl_union_pw_aff_involves_nan(__isl_keep isl_union_pw_aff
*upa
);
1253 isl_bool
isl_union_pw_aff_plain_is_equal(__isl_keep isl_union_pw_aff
*upa1
,
1254 __isl_keep isl_union_pw_aff
*upa2
);
1257 __isl_give isl_union_set
*isl_union_pw_aff_domain(
1258 __isl_take isl_union_pw_aff
*upa
);
1260 __isl_give isl_union_pw_aff
*isl_union_pw_aff_neg(
1261 __isl_take isl_union_pw_aff
*upa
);
1264 __isl_give isl_union_pw_aff
*isl_union_pw_aff_add(
1265 __isl_take isl_union_pw_aff
*upa1
, __isl_take isl_union_pw_aff
*upa2
);
1267 __isl_give isl_union_pw_aff
*isl_union_pw_aff_union_add(
1268 __isl_take isl_union_pw_aff
*upa1
, __isl_take isl_union_pw_aff
*upa2
);
1270 __isl_give isl_union_pw_aff
*isl_union_pw_aff_sub(
1271 __isl_take isl_union_pw_aff
*upa1
, __isl_take isl_union_pw_aff
*upa2
);
1274 __isl_give isl_union_pw_aff
*isl_union_pw_aff_coalesce(
1275 __isl_take isl_union_pw_aff
*upa
);
1277 __isl_give isl_union_pw_aff
*isl_union_pw_aff_gist(
1278 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_union_set
*context
);
1279 __isl_give isl_union_pw_aff
*isl_union_pw_aff_gist_params(
1280 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_set
*context
);
1283 __isl_give isl_union_pw_aff
*isl_union_pw_aff_pullback_union_pw_multi_aff(
1284 __isl_take isl_union_pw_aff
*upa
,
1285 __isl_take isl_union_pw_multi_aff
*upma
);
1287 __isl_give isl_union_pw_aff
*isl_union_pw_aff_floor(
1288 __isl_take isl_union_pw_aff
*upa
);
1290 __isl_give isl_union_pw_aff
*isl_union_pw_aff_scale_val(
1291 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_val
*v
);
1292 __isl_give isl_union_pw_aff
*isl_union_pw_aff_scale_down_val(
1293 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_val
*v
);
1294 __isl_give isl_union_pw_aff
*isl_union_pw_aff_mod_val(
1295 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_val
*f
);
1297 __isl_give isl_union_pw_aff
*isl_union_pw_aff_align_params(
1298 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_space
*model
);
1301 __isl_give isl_union_pw_aff
*isl_union_pw_aff_intersect_params(
1302 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_set
*set
);
1304 __isl_give isl_union_pw_aff
*isl_union_pw_aff_intersect_domain_space(
1305 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_space
*space
);
1307 __isl_give isl_union_pw_aff
*isl_union_pw_aff_intersect_domain_union_set(
1308 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_union_set
*uset
);
1309 __isl_give isl_union_pw_aff
*isl_union_pw_aff_intersect_domain(
1310 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_union_set
*uset
);
1312 __isl_give isl_union_pw_aff
*isl_union_pw_aff_intersect_domain_wrapped_domain(
1313 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_union_set
*uset
);
1315 __isl_give isl_union_pw_aff
*isl_union_pw_aff_intersect_domain_wrapped_range(
1316 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_union_set
*uset
);
1318 __isl_give isl_union_pw_aff
*isl_union_pw_aff_subtract_domain_union_set(
1319 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_union_set
*uset
);
1321 __isl_give isl_union_pw_aff
*isl_union_pw_aff_subtract_domain_space(
1322 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_space
*space
);
1323 __isl_give isl_union_pw_aff
*isl_union_pw_aff_subtract_domain(
1324 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_union_set
*uset
);
1326 __isl_give isl_union_pw_aff
*isl_union_pw_aff_set_dim_name(
1327 __isl_take isl_union_pw_aff
*upa
,
1328 enum isl_dim_type type
, unsigned pos
, const char *s
);
1330 __isl_give isl_union_set
*isl_union_pw_aff_zero_union_set(
1331 __isl_take isl_union_pw_aff
*upa
);
1333 __isl_give isl_union_map
*isl_union_map_from_union_pw_aff(
1334 __isl_take isl_union_pw_aff
*upa
);
1337 __isl_give isl_union_set
*isl_union_pw_aff_bind_id(
1338 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_id
*id
);
1341 __isl_give isl_union_pw_aff
*isl_union_pw_aff_read_from_str(isl_ctx
*ctx
,
1343 __isl_give
char *isl_union_pw_aff_to_str(__isl_keep isl_union_pw_aff
*upa
);
1344 __isl_give isl_printer
*isl_printer_print_union_pw_aff(
1345 __isl_take isl_printer
*p
, __isl_keep isl_union_pw_aff
*upa
);
1346 void isl_union_pw_aff_dump(__isl_keep isl_union_pw_aff
*upa
);
1348 ISL_DECLARE_MULTI(union_pw_aff
)
1349 ISL_DECLARE_MULTI_ARITH(union_pw_aff
)
1350 ISL_DECLARE_MULTI_ZERO(union_pw_aff
)
1351 ISL_DECLARE_MULTI_NAN(union_pw_aff
)
1352 ISL_DECLARE_MULTI_DROP_DIMS(union_pw_aff
)
1353 ISL_DECLARE_MULTI_DIM_ID(union_pw_aff
)
1354 ISL_DECLARE_MULTI_TUPLE_ID(union_pw_aff
)
1357 __isl_give isl_multi_union_pw_aff
*isl_multi_aff_to_multi_union_pw_aff(
1358 __isl_take isl_multi_aff
*ma
);
1359 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_from_multi_aff(
1360 __isl_take isl_multi_aff
*ma
);
1362 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_from_union_pw_aff(
1363 __isl_take isl_union_pw_aff
*upa
);
1365 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_from_multi_pw_aff(
1366 __isl_take isl_multi_pw_aff
*mpa
);
1367 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_multi_val_on_domain(
1368 __isl_take isl_union_set
*domain
, __isl_take isl_multi_val
*mv
);
1369 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_multi_aff_on_domain(
1370 __isl_take isl_union_set
*domain
, __isl_take isl_multi_aff
*ma
);
1371 __isl_give isl_multi_union_pw_aff
*
1372 isl_multi_union_pw_aff_pw_multi_aff_on_domain(__isl_take isl_union_set
*domain
,
1373 __isl_take isl_pw_multi_aff
*pma
);
1375 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_floor(
1376 __isl_take isl_multi_union_pw_aff
*mupa
);
1379 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_intersect_domain(
1380 __isl_take isl_multi_union_pw_aff
*mupa
,
1381 __isl_take isl_union_set
*uset
);
1383 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_intersect_params(
1384 __isl_take isl_multi_union_pw_aff
*mupa
, __isl_take isl_set
*params
);
1385 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_intersect_range(
1386 __isl_take isl_multi_union_pw_aff
*mupa
, __isl_take isl_set
*set
);
1389 __isl_give isl_union_set
*isl_multi_union_pw_aff_domain(
1390 __isl_take isl_multi_union_pw_aff
*mupa
);
1393 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_coalesce(
1394 __isl_take isl_multi_union_pw_aff
*mupa
);
1396 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_gist(
1397 __isl_take isl_multi_union_pw_aff
*mupa
,
1398 __isl_take isl_union_set
*context
);
1399 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_gist_params(
1400 __isl_take isl_multi_union_pw_aff
*mupa
, __isl_take isl_set
*context
);
1402 __isl_give isl_union_pw_aff
*isl_multi_union_pw_aff_apply_aff(
1403 __isl_take isl_multi_union_pw_aff
*mupa
, __isl_take isl_aff
*aff
);
1404 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_apply_multi_aff(
1405 __isl_take isl_multi_union_pw_aff
*mupa
, __isl_take isl_multi_aff
*ma
);
1406 __isl_give isl_union_pw_aff
*isl_multi_union_pw_aff_apply_pw_aff(
1407 __isl_take isl_multi_union_pw_aff
*mupa
, __isl_take isl_pw_aff
*pa
);
1408 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_apply_pw_multi_aff(
1409 __isl_take isl_multi_union_pw_aff
*mupa
,
1410 __isl_take isl_pw_multi_aff
*pma
);
1413 __isl_give isl_multi_union_pw_aff
*
1414 isl_multi_union_pw_aff_pullback_union_pw_multi_aff(
1415 __isl_take isl_multi_union_pw_aff
*mupa
,
1416 __isl_take isl_union_pw_multi_aff
*upma
);
1418 __isl_give isl_union_pw_multi_aff
*
1419 isl_union_pw_multi_aff_from_multi_union_pw_aff(
1420 __isl_take isl_multi_union_pw_aff
*mupa
);
1423 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_union_add(
1424 __isl_take isl_multi_union_pw_aff
*mupa1
,
1425 __isl_take isl_multi_union_pw_aff
*mupa2
);
1428 __isl_give isl_multi_union_pw_aff
*
1429 isl_union_pw_multi_aff_as_multi_union_pw_aff(
1430 __isl_take isl_union_pw_multi_aff
*upma
);
1431 __isl_give isl_multi_union_pw_aff
*
1432 isl_multi_union_pw_aff_from_union_pw_multi_aff(
1433 __isl_take isl_union_pw_multi_aff
*upma
);
1436 __isl_give isl_multi_union_pw_aff
*isl_union_map_as_multi_union_pw_aff(
1437 __isl_take isl_union_map
*umap
);
1438 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_from_union_map(
1439 __isl_take isl_union_map
*umap
);
1441 __isl_give isl_union_map
*isl_union_map_from_multi_union_pw_aff(
1442 __isl_take isl_multi_union_pw_aff
*mupa
);
1444 __isl_give isl_union_set
*isl_multi_union_pw_aff_zero_union_set(
1445 __isl_take isl_multi_union_pw_aff
*mupa
);
1447 __isl_give isl_union_set
*isl_multi_union_pw_aff_bind(
1448 __isl_take isl_multi_union_pw_aff
*mupa
,
1449 __isl_take isl_multi_id
*tuple
);
1451 __isl_give isl_multi_pw_aff
*isl_multi_union_pw_aff_extract_multi_pw_aff(
1452 __isl_keep isl_multi_union_pw_aff
*mupa
, __isl_take isl_space
*space
);
1455 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_read_from_str(
1456 isl_ctx
*ctx
, const char *str
);
1457 __isl_give
char *isl_multi_union_pw_aff_to_str(
1458 __isl_keep isl_multi_union_pw_aff
*mupa
);
1459 __isl_give isl_printer
*isl_printer_print_multi_union_pw_aff(
1460 __isl_take isl_printer
*p
, __isl_keep isl_multi_union_pw_aff
*mupa
);
1461 void isl_multi_union_pw_aff_dump(__isl_keep isl_multi_union_pw_aff
*mupa
);
1463 ISL_DECLARE_EXPORTED_LIST_FN(aff
)
1464 ISL_DECLARE_EXPORTED_LIST_FN_READ(aff
)
1465 ISL_DECLARE_EXPORTED_LIST_FN(pw_aff
)
1466 ISL_DECLARE_EXPORTED_LIST_FN_READ(pw_aff
)
1467 ISL_DECLARE_EXPORTED_LIST_FN(pw_multi_aff
)
1468 ISL_DECLARE_EXPORTED_LIST_FN_READ(pw_multi_aff
)
1469 ISL_DECLARE_EXPORTED_LIST_FN(union_pw_aff
)
1470 ISL_DECLARE_EXPORTED_LIST_FN_READ(union_pw_aff
)
1471 ISL_DECLARE_LIST_FN(union_pw_multi_aff
)
1473 #if defined(__cplusplus)