4 #include <isl/local_space.h>
5 #include <isl/printer.h>
6 #include <isl/set_type.h>
7 #include <isl/aff_type.h>
10 #include <isl/union_set_type.h>
14 #if defined(__cplusplus)
18 __isl_give isl_aff *isl_aff_zero_on_domain(__isl_take isl_local_space *ls);
19 __isl_give isl_aff *isl_aff_var_on_domain(__isl_take isl_local_space *ls,
20 enum isl_dim_type type, unsigned pos);
22 __isl_give isl_aff *isl_aff_copy(__isl_keep isl_aff *aff);
23 void *isl_aff_free(__isl_take isl_aff *aff);
25 isl_ctx *isl_aff_get_ctx(__isl_keep isl_aff *aff);
27 int isl_aff_dim(__isl_keep isl_aff *aff, enum isl_dim_type type);
28 int isl_aff_involves_dims(__isl_keep isl_aff *aff,
29 enum isl_dim_type type, unsigned first, unsigned n);
31 __isl_give isl_space *isl_aff_get_domain_space(__isl_keep isl_aff *aff);
32 __isl_give isl_space *isl_aff_get_space(__isl_keep isl_aff *aff);
33 __isl_give isl_local_space *isl_aff_get_domain_local_space(
34 __isl_keep isl_aff *aff);
35 __isl_give isl_local_space *isl_aff_get_local_space(__isl_keep isl_aff *aff);
37 const char *isl_aff_get_dim_name(__isl_keep isl_aff *aff,
38 enum isl_dim_type type, unsigned pos);
39 int isl_aff_get_constant(__isl_keep isl_aff *aff, isl_int *v);
40 __isl_give isl_val *isl_aff_get_constant_val(__isl_keep isl_aff *aff);
41 int isl_aff_get_coefficient(__isl_keep isl_aff *aff,
42 enum isl_dim_type type, int pos, isl_int *v);
43 int isl_aff_get_denominator(__isl_keep isl_aff *aff, isl_int *v);
44 __isl_give isl_aff *isl_aff_set_constant(__isl_take isl_aff *aff, isl_int v);
45 __isl_give isl_aff *isl_aff_set_constant_si(__isl_take isl_aff *aff, int v);
46 __isl_give isl_aff *isl_aff_set_constant_val(__isl_take isl_aff *aff,
47 __isl_take isl_val *v);
48 __isl_give isl_aff *isl_aff_set_coefficient(__isl_take isl_aff *aff,
49 enum isl_dim_type type, int pos, isl_int v);
50 __isl_give isl_aff *isl_aff_set_coefficient_si(__isl_take isl_aff *aff,
51 enum isl_dim_type type, int pos, int v);
52 __isl_give isl_aff *isl_aff_set_coefficient_val(__isl_take isl_aff *aff,
53 enum isl_dim_type type, int pos, __isl_take isl_val *v);
54 __isl_give isl_aff *isl_aff_set_denominator(__isl_take isl_aff *aff, isl_int v);
55 __isl_give isl_aff *isl_aff_add_constant(__isl_take isl_aff *aff, isl_int v);
56 __isl_give isl_aff *isl_aff_add_constant_si(__isl_take isl_aff *aff, int v);
57 __isl_give isl_aff *isl_aff_add_constant_val(__isl_take isl_aff *aff,
58 __isl_take isl_val *v);
59 __isl_give isl_aff *isl_aff_add_constant_num(__isl_take isl_aff *aff,
61 __isl_give isl_aff *isl_aff_add_constant_num_si(__isl_take isl_aff *aff, int v);
62 __isl_give isl_aff *isl_aff_add_coefficient(__isl_take isl_aff *aff,
63 enum isl_dim_type type, int pos, isl_int v);
64 __isl_give isl_aff *isl_aff_add_coefficient_si(__isl_take isl_aff *aff,
65 enum isl_dim_type type, int pos, int v);
66 __isl_give isl_aff *isl_aff_add_coefficient_val(__isl_take isl_aff *aff,
67 enum isl_dim_type type, int pos, __isl_take isl_val *v);
69 int isl_aff_is_cst(__isl_keep isl_aff *aff);
71 __isl_give isl_aff *isl_aff_set_dim_name(__isl_take isl_aff *aff,
72 enum isl_dim_type type, unsigned pos, const char *s);
73 __isl_give isl_aff *isl_aff_set_dim_id(__isl_take isl_aff *aff,
74 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
76 int isl_aff_plain_is_equal(__isl_keep isl_aff *aff1, __isl_keep isl_aff *aff2);
77 int isl_aff_plain_is_zero(__isl_keep isl_aff *aff);
79 __isl_give isl_aff *isl_aff_get_div(__isl_keep isl_aff *aff, int pos);
81 __isl_give isl_aff *isl_aff_neg(__isl_take isl_aff *aff);
82 __isl_give isl_aff *isl_aff_ceil(__isl_take isl_aff *aff);
83 __isl_give isl_aff *isl_aff_floor(__isl_take isl_aff *aff);
84 __isl_give isl_aff *isl_aff_mod(__isl_take isl_aff *aff, isl_int mod);
86 __isl_give isl_aff *isl_aff_mul(__isl_take isl_aff *aff1,
87 __isl_take isl_aff *aff2);
88 __isl_give isl_aff *isl_aff_div(__isl_take isl_aff *aff1,
89 __isl_take isl_aff *aff2);
90 __isl_give isl_aff *isl_aff_add(__isl_take isl_aff *aff1,
91 __isl_take isl_aff *aff2);
92 __isl_give isl_aff *isl_aff_sub(__isl_take isl_aff *aff1,
93 __isl_take isl_aff *aff2);
95 __isl_give isl_aff *isl_aff_scale(__isl_take isl_aff *aff, isl_int f);
96 __isl_give isl_aff *isl_aff_scale_down(__isl_take isl_aff *aff, isl_int f);
97 __isl_give isl_aff *isl_aff_scale_down_ui(__isl_take isl_aff *aff, unsigned f);
99 __isl_give isl_aff *isl_aff_insert_dims(__isl_take isl_aff *aff,
100 enum isl_dim_type type, unsigned first, unsigned n);
101 __isl_give isl_aff *isl_aff_add_dims(__isl_take isl_aff *aff,
102 enum isl_dim_type type, unsigned n);
103 __isl_give isl_aff *isl_aff_drop_dims(__isl_take isl_aff *aff,
104 enum isl_dim_type type, unsigned first, unsigned n);
105 __isl_give isl_aff *isl_aff_project_domain_on_params(__isl_take isl_aff *aff);
107 __isl_give isl_aff *isl_aff_align_params(__isl_take isl_aff *aff,
108 __isl_take isl_space *model);
110 __isl_give isl_aff *isl_aff_gist(__isl_take isl_aff *aff,
111 __isl_take isl_set *context);
112 __isl_give isl_aff *isl_aff_gist_params(__isl_take isl_aff *aff,
113 __isl_take isl_set *context);
115 __isl_give isl_aff *isl_aff_pullback_multi_aff(__isl_take isl_aff *aff,
116 __isl_take isl_multi_aff *ma);
118 __isl_give isl_basic_set *isl_aff_zero_basic_set(__isl_take isl_aff *aff);
119 __isl_give isl_basic_set *isl_aff_neg_basic_set(__isl_take isl_aff *aff);
121 __isl_give isl_basic_set *isl_aff_le_basic_set(__isl_take isl_aff *aff1,
122 __isl_take isl_aff *aff2);
123 __isl_give isl_basic_set *isl_aff_ge_basic_set(__isl_take isl_aff *aff1,
124 __isl_take isl_aff *aff2);
126 __isl_give isl_aff *isl_aff_read_from_str(isl_ctx *ctx, const char *str);
127 __isl_give isl_printer *isl_printer_print_aff(__isl_take isl_printer *p,
128 __isl_keep isl_aff *aff);
129 void isl_aff_dump(__isl_keep isl_aff *aff);
131 isl_ctx *isl_pw_aff_get_ctx(__isl_keep isl_pw_aff *pwaff);
132 __isl_give isl_space *isl_pw_aff_get_domain_space(__isl_keep isl_pw_aff *pwaff);
133 __isl_give isl_space *isl_pw_aff_get_space(__isl_keep isl_pw_aff *pwaff);
135 __isl_give isl_pw_aff *isl_pw_aff_from_aff(__isl_take isl_aff *aff);
136 __isl_give isl_pw_aff *isl_pw_aff_empty(__isl_take isl_space *dim);
137 __isl_give isl_pw_aff *isl_pw_aff_alloc(__isl_take isl_set *set,
138 __isl_take isl_aff *aff);
139 __isl_give isl_pw_aff *isl_pw_aff_zero_on_domain(
140 __isl_take isl_local_space *ls);
141 __isl_give isl_pw_aff *isl_pw_aff_var_on_domain(__isl_take isl_local_space *ls,
142 enum isl_dim_type type, unsigned pos);
144 __isl_give isl_pw_aff *isl_set_indicator_function(__isl_take isl_set *set);
146 const char *isl_pw_aff_get_dim_name(__isl_keep isl_pw_aff *pa,
147 enum isl_dim_type type, unsigned pos);
148 int isl_pw_aff_has_dim_id(__isl_keep isl_pw_aff *pa,
149 enum isl_dim_type type, unsigned pos);
150 __isl_give isl_id *isl_pw_aff_get_dim_id(__isl_keep isl_pw_aff *pa,
151 enum isl_dim_type type, unsigned pos);
152 __isl_give isl_pw_aff *isl_pw_aff_set_dim_id(__isl_take isl_pw_aff *pma,
153 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
155 int isl_pw_aff_is_empty(__isl_keep isl_pw_aff *pwaff);
156 int isl_pw_aff_plain_is_equal(__isl_keep isl_pw_aff *pwaff1,
157 __isl_keep isl_pw_aff *pwaff2);
159 __isl_give isl_pw_aff *isl_pw_aff_union_min(__isl_take isl_pw_aff *pwaff1,
160 __isl_take isl_pw_aff *pwaff2);
161 __isl_give isl_pw_aff *isl_pw_aff_union_max(__isl_take isl_pw_aff *pwaff1,
162 __isl_take isl_pw_aff *pwaff2);
163 __isl_give isl_pw_aff *isl_pw_aff_union_add(__isl_take isl_pw_aff *pwaff1,
164 __isl_take isl_pw_aff *pwaff2);
166 __isl_give isl_pw_aff *isl_pw_aff_copy(__isl_keep isl_pw_aff *pwaff);
167 void *isl_pw_aff_free(__isl_take isl_pw_aff *pwaff);
169 unsigned isl_pw_aff_dim(__isl_keep isl_pw_aff *pwaff, enum isl_dim_type type);
170 int isl_pw_aff_involves_dims(__isl_keep isl_pw_aff *pwaff,
171 enum isl_dim_type type, unsigned first, unsigned n);
173 int isl_pw_aff_is_cst(__isl_keep isl_pw_aff *pwaff);
175 __isl_give isl_pw_aff *isl_pw_aff_align_params(__isl_take isl_pw_aff *pwaff,
176 __isl_take isl_space *model);
178 __isl_give isl_id *isl_pw_aff_get_tuple_id(__isl_keep isl_pw_aff *pa,
179 enum isl_dim_type type);
180 __isl_give isl_pw_aff *isl_pw_aff_set_tuple_id(__isl_take isl_pw_aff *pwaff,
181 enum isl_dim_type type, __isl_take isl_id *id);
183 __isl_give isl_set *isl_pw_aff_domain(__isl_take isl_pw_aff *pwaff);
185 __isl_give isl_pw_aff *isl_pw_aff_min(__isl_take isl_pw_aff *pwaff1,
186 __isl_take isl_pw_aff *pwaff2);
187 __isl_give isl_pw_aff *isl_pw_aff_max(__isl_take isl_pw_aff *pwaff1,
188 __isl_take isl_pw_aff *pwaff2);
189 __isl_give isl_pw_aff *isl_pw_aff_mul(__isl_take isl_pw_aff *pwaff1,
190 __isl_take isl_pw_aff *pwaff2);
191 __isl_give isl_pw_aff *isl_pw_aff_div(__isl_take isl_pw_aff *pa1,
192 __isl_take isl_pw_aff *pa2);
193 __isl_give isl_pw_aff *isl_pw_aff_add(__isl_take isl_pw_aff *pwaff1,
194 __isl_take isl_pw_aff *pwaff2);
195 __isl_give isl_pw_aff *isl_pw_aff_sub(__isl_take isl_pw_aff *pwaff1,
196 __isl_take isl_pw_aff *pwaff2);
197 __isl_give isl_pw_aff *isl_pw_aff_neg(__isl_take isl_pw_aff *pwaff);
198 __isl_give isl_pw_aff *isl_pw_aff_ceil(__isl_take isl_pw_aff *pwaff);
199 __isl_give isl_pw_aff *isl_pw_aff_floor(__isl_take isl_pw_aff *pwaff);
200 __isl_give isl_pw_aff *isl_pw_aff_mod(__isl_take isl_pw_aff *pwaff,
202 __isl_give isl_pw_aff *isl_pw_aff_tdiv_q(__isl_take isl_pw_aff *pa1,
203 __isl_take isl_pw_aff *pa2);
204 __isl_give isl_pw_aff *isl_pw_aff_tdiv_r(__isl_take isl_pw_aff *pa1,
205 __isl_take isl_pw_aff *pa2);
207 __isl_give isl_pw_aff *isl_pw_aff_intersect_params(__isl_take isl_pw_aff *pa,
208 __isl_take isl_set *set);
209 __isl_give isl_pw_aff *isl_pw_aff_intersect_domain(__isl_take isl_pw_aff *pa,
210 __isl_take isl_set *set);
212 __isl_give isl_pw_aff *isl_pw_aff_cond(__isl_take isl_pw_aff *cond,
213 __isl_take isl_pw_aff *pwaff_true, __isl_take isl_pw_aff *pwaff_false);
215 __isl_give isl_pw_aff *isl_pw_aff_scale(__isl_take isl_pw_aff *pwaff,
217 __isl_give isl_pw_aff *isl_pw_aff_scale_down(__isl_take isl_pw_aff *pwaff,
220 __isl_give isl_pw_aff *isl_pw_aff_insert_dims(__isl_take isl_pw_aff *pwaff,
221 enum isl_dim_type type, unsigned first, unsigned n);
222 __isl_give isl_pw_aff *isl_pw_aff_add_dims(__isl_take isl_pw_aff *pwaff,
223 enum isl_dim_type type, unsigned n);
224 __isl_give isl_pw_aff *isl_pw_aff_drop_dims(__isl_take isl_pw_aff *pwaff,
225 enum isl_dim_type type, unsigned first, unsigned n);
227 __isl_give isl_pw_aff *isl_pw_aff_coalesce(__isl_take isl_pw_aff *pwqp);
228 __isl_give isl_pw_aff *isl_pw_aff_gist(__isl_take isl_pw_aff *pwaff,
229 __isl_take isl_set *context);
230 __isl_give isl_pw_aff *isl_pw_aff_gist_params(__isl_take isl_pw_aff *pwaff,
231 __isl_take isl_set *context);
233 __isl_give isl_pw_aff *isl_pw_aff_pullback_multi_aff(
234 __isl_take isl_pw_aff *pa, __isl_take isl_multi_aff *ma);
235 __isl_give isl_pw_aff *isl_pw_aff_pullback_pw_multi_aff(
236 __isl_take isl_pw_aff *pa, __isl_take isl_pw_multi_aff *pma);
238 int isl_pw_aff_n_piece(__isl_keep isl_pw_aff *pwaff);
239 int isl_pw_aff_foreach_piece(__isl_keep isl_pw_aff *pwaff,
240 int (*fn)(__isl_take isl_set *set, __isl_take isl_aff *aff,
241 void *user), void *user);
243 __isl_give isl_set *isl_set_from_pw_aff(__isl_take isl_pw_aff *pwaff);
244 __isl_give isl_map *isl_map_from_pw_aff(__isl_take isl_pw_aff *pwaff);
246 __isl_give isl_set *isl_pw_aff_nonneg_set(__isl_take isl_pw_aff *pwaff);
247 __isl_give isl_set *isl_pw_aff_zero_set(__isl_take isl_pw_aff *pwaff);
248 __isl_give isl_set *isl_pw_aff_non_zero_set(__isl_take isl_pw_aff *pwaff);
250 __isl_give isl_set *isl_pw_aff_eq_set(__isl_take isl_pw_aff *pwaff1,
251 __isl_take isl_pw_aff *pwaff2);
252 __isl_give isl_set *isl_pw_aff_ne_set(__isl_take isl_pw_aff *pwaff1,
253 __isl_take isl_pw_aff *pwaff2);
254 __isl_give isl_set *isl_pw_aff_le_set(__isl_take isl_pw_aff *pwaff1,
255 __isl_take isl_pw_aff *pwaff2);
256 __isl_give isl_set *isl_pw_aff_lt_set(__isl_take isl_pw_aff *pwaff1,
257 __isl_take isl_pw_aff *pwaff2);
258 __isl_give isl_set *isl_pw_aff_ge_set(__isl_take isl_pw_aff *pwaff1,
259 __isl_take isl_pw_aff *pwaff2);
260 __isl_give isl_set *isl_pw_aff_gt_set(__isl_take isl_pw_aff *pwaff1,
261 __isl_take isl_pw_aff *pwaff2);
263 __isl_give isl_pw_aff *isl_pw_aff_read_from_str(isl_ctx *ctx, const char *str);
264 __isl_give isl_printer *isl_printer_print_pw_aff(__isl_take isl_printer *p,
265 __isl_keep isl_pw_aff *pwaff);
266 void isl_pw_aff_dump(__isl_keep isl_pw_aff *pwaff);
268 __isl_give isl_pw_aff *isl_pw_aff_list_min(__isl_take isl_pw_aff_list *list);
269 __isl_give isl_pw_aff *isl_pw_aff_list_max(__isl_take isl_pw_aff_list *list);
271 __isl_give isl_set *isl_pw_aff_list_eq_set(__isl_take isl_pw_aff_list *list1,
272 __isl_take isl_pw_aff_list *list2);
273 __isl_give isl_set *isl_pw_aff_list_ne_set(__isl_take isl_pw_aff_list *list1,
274 __isl_take isl_pw_aff_list *list2);
275 __isl_give isl_set *isl_pw_aff_list_le_set(__isl_take isl_pw_aff_list *list1,
276 __isl_take isl_pw_aff_list *list2);
277 __isl_give isl_set *isl_pw_aff_list_lt_set(__isl_take isl_pw_aff_list *list1,
278 __isl_take isl_pw_aff_list *list2);
279 __isl_give isl_set *isl_pw_aff_list_ge_set(__isl_take isl_pw_aff_list *list1,
280 __isl_take isl_pw_aff_list *list2);
281 __isl_give isl_set *isl_pw_aff_list_gt_set(__isl_take isl_pw_aff_list *list1,
282 __isl_take isl_pw_aff_list *list2);
284 ISL_DECLARE_MULTI(aff)
286 __isl_give isl_multi_aff *isl_multi_aff_from_aff(__isl_take isl_aff *aff);
287 __isl_give isl_multi_aff *isl_multi_aff_identity(__isl_take isl_space *space);
289 int isl_multi_aff_plain_is_equal(__isl_keep isl_multi_aff *maff1,
290 __isl_keep isl_multi_aff *maff2);
292 __isl_give isl_multi_aff *isl_multi_aff_add(__isl_take isl_multi_aff *maff1,
293 __isl_take isl_multi_aff *maff2);
294 __isl_give isl_multi_aff *isl_multi_aff_sub(__isl_take isl_multi_aff *ma1,
295 __isl_take isl_multi_aff *ma2);
297 __isl_give isl_multi_aff *isl_multi_aff_scale(__isl_take isl_multi_aff *maff,
299 __isl_give isl_multi_aff *isl_multi_aff_scale_vec(__isl_take isl_multi_aff *ma,
300 __isl_take isl_vec *v);
302 __isl_give isl_multi_aff *isl_multi_aff_product(
303 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
305 __isl_give isl_multi_aff *isl_multi_aff_align_params(
306 __isl_take isl_multi_aff *multi, __isl_take isl_space *model);
308 __isl_give isl_multi_aff *isl_multi_aff_gist_params(
309 __isl_take isl_multi_aff *maff, __isl_take isl_set *context);
310 __isl_give isl_multi_aff *isl_multi_aff_gist(__isl_take isl_multi_aff *maff,
311 __isl_take isl_set *context);
313 __isl_give isl_multi_aff *isl_multi_aff_lift(__isl_take isl_multi_aff *maff,
314 __isl_give isl_local_space **ls);
316 __isl_give isl_multi_aff *isl_multi_aff_pullback_multi_aff(
317 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
319 __isl_give isl_set *isl_multi_aff_lex_le_set(__isl_take isl_multi_aff *ma1,
320 __isl_take isl_multi_aff *ma2);
321 __isl_give isl_set *isl_multi_aff_lex_ge_set(__isl_take isl_multi_aff *ma1,
322 __isl_take isl_multi_aff *ma2);
324 __isl_give isl_printer *isl_printer_print_multi_aff(__isl_take isl_printer *p,
325 __isl_keep isl_multi_aff *maff);
327 __isl_give isl_multi_aff *isl_multi_aff_read_from_str(isl_ctx *ctx,
329 void isl_multi_aff_dump(__isl_keep isl_multi_aff *maff);
331 ISL_DECLARE_MULTI(pw_aff)
333 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_identity(
334 __isl_take isl_space *space);
335 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_multi_aff(
336 __isl_take isl_multi_aff *ma);
337 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_alloc(__isl_take isl_set *set,
338 __isl_take isl_multi_aff *maff);
339 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_copy(
340 __isl_keep isl_pw_multi_aff *pma);
341 void *isl_pw_multi_aff_free(__isl_take isl_pw_multi_aff *pma);
343 unsigned isl_pw_multi_aff_dim(__isl_keep isl_pw_multi_aff *pma,
344 enum isl_dim_type type);
345 __isl_give isl_pw_aff *isl_pw_multi_aff_get_pw_aff(
346 __isl_keep isl_pw_multi_aff *pma, int pos);
347 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_pw_aff(
348 __isl_take isl_pw_multi_aff *pma, unsigned pos,
349 __isl_take isl_pw_aff *pa);
351 isl_ctx *isl_pw_multi_aff_get_ctx(__isl_keep isl_pw_multi_aff *pma);
352 __isl_give isl_space *isl_pw_multi_aff_get_domain_space(
353 __isl_keep isl_pw_multi_aff *pma);
354 __isl_give isl_space *isl_pw_multi_aff_get_space(
355 __isl_keep isl_pw_multi_aff *pma);
356 int isl_pw_multi_aff_has_tuple_name(__isl_keep isl_pw_multi_aff *pma,
357 enum isl_dim_type type);
358 const char *isl_pw_multi_aff_get_tuple_name(__isl_keep isl_pw_multi_aff *pma,
359 enum isl_dim_type type);
360 __isl_give isl_id *isl_pw_multi_aff_get_tuple_id(
361 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type);
362 int isl_pw_multi_aff_has_tuple_id(__isl_keep isl_pw_multi_aff *pma,
363 enum isl_dim_type type);
364 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_tuple_id(
365 __isl_take isl_pw_multi_aff *pma,
366 enum isl_dim_type type, __isl_take isl_id *id);
368 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_drop_dims(
369 __isl_take isl_pw_multi_aff *pma,
370 enum isl_dim_type type, unsigned first, unsigned n);
372 __isl_give isl_set *isl_pw_multi_aff_domain(__isl_take isl_pw_multi_aff *pma);
374 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_empty(__isl_take isl_space *space);
375 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_domain(
376 __isl_take isl_set *set);
378 const char *isl_pw_multi_aff_get_dim_name(__isl_keep isl_pw_multi_aff *pma,
379 enum isl_dim_type type, unsigned pos);
380 __isl_give isl_id *isl_pw_multi_aff_get_dim_id(
381 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type,
383 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_dim_id(
384 __isl_take isl_pw_multi_aff *pma,
385 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
387 int isl_pw_multi_aff_plain_is_equal(__isl_keep isl_pw_multi_aff *pma1,
388 __isl_keep isl_pw_multi_aff *pma2);
390 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_add(
391 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
393 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_add(
394 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
395 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_sub(
396 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
398 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_scale_vec(
399 __isl_take isl_pw_multi_aff *pma, __isl_take isl_vec *v);
401 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmin(
402 __isl_take isl_pw_multi_aff *pma1,
403 __isl_take isl_pw_multi_aff *pma2);
404 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmax(
405 __isl_take isl_pw_multi_aff *pma1,
406 __isl_take isl_pw_multi_aff *pma2);
408 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_range_product(
409 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
410 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_flat_range_product(
411 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
412 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_product(
413 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
415 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_params(
416 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
417 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_domain(
418 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
420 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_project_domain_on_params(
421 __isl_take isl_pw_multi_aff *pma);
423 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_align_params(
424 __isl_take isl_pw_multi_aff *pma, __isl_take isl_space *model);
426 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_coalesce(
427 __isl_take isl_pw_multi_aff *pma);
428 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist_params(
429 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
430 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist(
431 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
433 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_pullback_multi_aff(
434 __isl_take isl_pw_multi_aff *pma, __isl_take isl_multi_aff *ma);
435 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_pullback_pw_multi_aff(
436 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
438 int isl_pw_multi_aff_foreach_piece(__isl_keep isl_pw_multi_aff *pma,
439 int (*fn)(__isl_take isl_set *set, __isl_take isl_multi_aff *maff,
440 void *user), void *user);
442 __isl_give isl_map *isl_map_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
443 __isl_give isl_set *isl_set_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
445 __isl_give isl_printer *isl_printer_print_pw_multi_aff(__isl_take isl_printer *p,
446 __isl_keep isl_pw_multi_aff *pma);
448 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_set(__isl_take isl_set *set);
449 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_map(__isl_take isl_map *map);
451 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_read_from_str(isl_ctx *ctx,
453 void isl_pw_multi_aff_dump(__isl_keep isl_pw_multi_aff *pma);
456 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_empty(
457 __isl_take isl_space *space);
458 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_domain(
459 __isl_take isl_union_set *uset);
460 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_copy(
461 __isl_keep isl_union_pw_multi_aff *upma);
462 void *isl_union_pw_multi_aff_free(__isl_take isl_union_pw_multi_aff *upma);
464 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add_pw_multi_aff(
465 __isl_take isl_union_pw_multi_aff *upma,
466 __isl_take isl_pw_multi_aff *pma);
468 isl_ctx *isl_union_pw_multi_aff_get_ctx(
469 __isl_keep isl_union_pw_multi_aff *upma);
470 __isl_give isl_space *isl_union_pw_multi_aff_get_space(
471 __isl_keep isl_union_pw_multi_aff *upma);
473 int isl_union_pw_multi_aff_foreach_pw_multi_aff(
474 __isl_keep isl_union_pw_multi_aff *upma,
475 int (*fn)(__isl_take isl_pw_multi_aff *pma, void *user), void *user);
477 __isl_give isl_union_set *isl_union_pw_multi_aff_domain(
478 __isl_take isl_union_pw_multi_aff *upma);
480 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add(
481 __isl_take isl_union_pw_multi_aff *upma1,
482 __isl_take isl_union_pw_multi_aff *upma2);
483 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_sub(
484 __isl_take isl_union_pw_multi_aff *upma1,
485 __isl_take isl_union_pw_multi_aff *upma2);
487 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_scale_vec(
488 __isl_take isl_union_pw_multi_aff *upma, __isl_take isl_vec *v);
490 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_flat_range_product(
491 __isl_take isl_union_pw_multi_aff *upma1,
492 __isl_take isl_union_pw_multi_aff *upma2);
494 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_intersect_domain(
495 __isl_take isl_union_pw_multi_aff *upma,
496 __isl_take isl_union_set *uset);
498 __isl_give isl_union_map *isl_union_map_from_union_pw_multi_aff(
499 __isl_take isl_union_pw_multi_aff *upma);
501 __isl_give isl_printer *isl_printer_print_union_pw_multi_aff(
502 __isl_take isl_printer *p, __isl_keep isl_union_pw_multi_aff *upma);
504 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_union_set(
505 __isl_take isl_union_set *uset);
506 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_union_map(
507 __isl_take isl_union_map *umap);
509 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_read_from_str(
510 isl_ctx *ctx, const char *str);
511 void isl_union_pw_multi_aff_dump(__isl_keep isl_union_pw_multi_aff *upma);
512 __isl_give char *isl_union_pw_multi_aff_to_str(
513 __isl_keep isl_union_pw_multi_aff *upma);
515 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_identity(
516 __isl_take isl_space *space);
517 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_from_pw_aff(
518 __isl_take isl_pw_aff *pa);
520 __isl_give isl_printer *isl_printer_print_multi_pw_aff(
521 __isl_take isl_printer *p, __isl_keep isl_multi_pw_aff *mpa);
522 void isl_multi_pw_aff_dump(__isl_keep isl_multi_pw_aff *mpa);
524 #if defined(__cplusplus)