declare isl_pw_multi_aff_drop_dims
[isl.git] / include / isl / aff.h
blobfc4dbb6874af70eaf4fff93e5fc5e502ebf5c8a6
1 #ifndef ISL_AFF_H
2 #define ISL_AFF_H
4 #include <isl/local_space.h>
5 #include <isl/printer.h>
6 #include <isl/set_type.h>
7 #include <isl/aff_type.h>
8 #include <isl/list.h>
9 #include <isl/multi.h>
10 #include <isl/union_set_type.h>
12 #if defined(__cplusplus)
13 extern "C" {
14 #endif
16 __isl_give isl_aff *isl_aff_zero_on_domain(__isl_take isl_local_space *ls);
18 __isl_give isl_aff *isl_aff_copy(__isl_keep isl_aff *aff);
19 void *isl_aff_free(__isl_take isl_aff *aff);
21 isl_ctx *isl_aff_get_ctx(__isl_keep isl_aff *aff);
23 int isl_aff_dim(__isl_keep isl_aff *aff, enum isl_dim_type type);
24 int isl_aff_involves_dims(__isl_keep isl_aff *aff,
25 enum isl_dim_type type, unsigned first, unsigned n);
27 __isl_give isl_space *isl_aff_get_domain_space(__isl_keep isl_aff *aff);
28 __isl_give isl_space *isl_aff_get_space(__isl_keep isl_aff *aff);
29 __isl_give isl_local_space *isl_aff_get_domain_local_space(
30 __isl_keep isl_aff *aff);
31 __isl_give isl_local_space *isl_aff_get_local_space(__isl_keep isl_aff *aff);
33 const char *isl_aff_get_dim_name(__isl_keep isl_aff *aff,
34 enum isl_dim_type type, unsigned pos);
35 int isl_aff_get_constant(__isl_keep isl_aff *aff, isl_int *v);
36 int isl_aff_get_coefficient(__isl_keep isl_aff *aff,
37 enum isl_dim_type type, int pos, isl_int *v);
38 int isl_aff_get_denominator(__isl_keep isl_aff *aff, isl_int *v);
39 __isl_give isl_aff *isl_aff_set_constant(__isl_take isl_aff *aff, isl_int v);
40 __isl_give isl_aff *isl_aff_set_constant_si(__isl_take isl_aff *aff, int v);
41 __isl_give isl_aff *isl_aff_set_coefficient(__isl_take isl_aff *aff,
42 enum isl_dim_type type, int pos, isl_int v);
43 __isl_give isl_aff *isl_aff_set_coefficient_si(__isl_take isl_aff *aff,
44 enum isl_dim_type type, int pos, int v);
45 __isl_give isl_aff *isl_aff_set_denominator(__isl_take isl_aff *aff, isl_int v);
46 __isl_give isl_aff *isl_aff_add_constant(__isl_take isl_aff *aff, isl_int v);
47 __isl_give isl_aff *isl_aff_add_constant_si(__isl_take isl_aff *aff, int v);
48 __isl_give isl_aff *isl_aff_add_constant_num(__isl_take isl_aff *aff,
49 isl_int v);
50 __isl_give isl_aff *isl_aff_add_constant_num_si(__isl_take isl_aff *aff, int v);
51 __isl_give isl_aff *isl_aff_add_coefficient(__isl_take isl_aff *aff,
52 enum isl_dim_type type, int pos, isl_int v);
53 __isl_give isl_aff *isl_aff_add_coefficient_si(__isl_take isl_aff *aff,
54 enum isl_dim_type type, int pos, int v);
56 int isl_aff_is_cst(__isl_keep isl_aff *aff);
58 __isl_give isl_aff *isl_aff_set_dim_name(__isl_take isl_aff *aff,
59 enum isl_dim_type type, unsigned pos, const char *s);
60 __isl_give isl_aff *isl_aff_set_dim_id(__isl_take isl_aff *aff,
61 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
63 int isl_aff_plain_is_equal(__isl_keep isl_aff *aff1, __isl_keep isl_aff *aff2);
64 int isl_aff_plain_is_zero(__isl_keep isl_aff *aff);
66 __isl_give isl_aff *isl_aff_get_div(__isl_keep isl_aff *aff, int pos);
68 __isl_give isl_aff *isl_aff_neg(__isl_take isl_aff *aff);
69 __isl_give isl_aff *isl_aff_ceil(__isl_take isl_aff *aff);
70 __isl_give isl_aff *isl_aff_floor(__isl_take isl_aff *aff);
71 __isl_give isl_aff *isl_aff_mod(__isl_take isl_aff *aff, isl_int mod);
73 __isl_give isl_aff *isl_aff_mul(__isl_take isl_aff *aff1,
74 __isl_take isl_aff *aff2);
75 __isl_give isl_aff *isl_aff_add(__isl_take isl_aff *aff1,
76 __isl_take isl_aff *aff2);
77 __isl_give isl_aff *isl_aff_sub(__isl_take isl_aff *aff1,
78 __isl_take isl_aff *aff2);
80 __isl_give isl_aff *isl_aff_scale(__isl_take isl_aff *aff, isl_int f);
81 __isl_give isl_aff *isl_aff_scale_down(__isl_take isl_aff *aff, isl_int f);
82 __isl_give isl_aff *isl_aff_scale_down_ui(__isl_take isl_aff *aff, unsigned f);
84 __isl_give isl_aff *isl_aff_insert_dims(__isl_take isl_aff *aff,
85 enum isl_dim_type type, unsigned first, unsigned n);
86 __isl_give isl_aff *isl_aff_add_dims(__isl_take isl_aff *aff,
87 enum isl_dim_type type, unsigned n);
88 __isl_give isl_aff *isl_aff_drop_dims(__isl_take isl_aff *aff,
89 enum isl_dim_type type, unsigned first, unsigned n);
90 __isl_give isl_aff *isl_aff_project_domain_on_params(__isl_take isl_aff *aff);
92 __isl_give isl_aff *isl_aff_align_params(__isl_take isl_aff *aff,
93 __isl_take isl_space *model);
95 __isl_give isl_aff *isl_aff_gist(__isl_take isl_aff *aff,
96 __isl_take isl_set *context);
97 __isl_give isl_aff *isl_aff_gist_params(__isl_take isl_aff *aff,
98 __isl_take isl_set *context);
100 __isl_give isl_basic_set *isl_aff_neg_basic_set(__isl_take isl_aff *aff);
102 __isl_give isl_basic_set *isl_aff_le_basic_set(__isl_take isl_aff *aff1,
103 __isl_take isl_aff *aff2);
104 __isl_give isl_basic_set *isl_aff_ge_basic_set(__isl_take isl_aff *aff1,
105 __isl_take isl_aff *aff2);
107 __isl_give isl_aff *isl_aff_read_from_str(isl_ctx *ctx, const char *str);
108 __isl_give isl_printer *isl_printer_print_aff(__isl_take isl_printer *p,
109 __isl_keep isl_aff *aff);
110 void isl_aff_dump(__isl_keep isl_aff *aff);
112 isl_ctx *isl_pw_aff_get_ctx(__isl_keep isl_pw_aff *pwaff);
113 __isl_give isl_space *isl_pw_aff_get_domain_space(__isl_keep isl_pw_aff *pwaff);
114 __isl_give isl_space *isl_pw_aff_get_space(__isl_keep isl_pw_aff *pwaff);
116 __isl_give isl_pw_aff *isl_pw_aff_from_aff(__isl_take isl_aff *aff);
117 __isl_give isl_pw_aff *isl_pw_aff_empty(__isl_take isl_space *dim);
118 __isl_give isl_pw_aff *isl_pw_aff_alloc(__isl_take isl_set *set,
119 __isl_take isl_aff *aff);
121 __isl_give isl_pw_aff *isl_set_indicator_function(__isl_take isl_set *set);
123 const char *isl_pw_aff_get_dim_name(__isl_keep isl_pw_aff *pa,
124 enum isl_dim_type type, unsigned pos);
125 int isl_pw_aff_has_dim_id(__isl_keep isl_pw_aff *pa,
126 enum isl_dim_type type, unsigned pos);
127 __isl_give isl_id *isl_pw_aff_get_dim_id(__isl_keep isl_pw_aff *pa,
128 enum isl_dim_type type, unsigned pos);
129 __isl_give isl_pw_aff *isl_pw_aff_set_dim_id(__isl_take isl_pw_aff *pma,
130 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
132 int isl_pw_aff_is_empty(__isl_keep isl_pw_aff *pwaff);
133 int isl_pw_aff_plain_is_equal(__isl_keep isl_pw_aff *pwaff1,
134 __isl_keep isl_pw_aff *pwaff2);
136 __isl_give isl_pw_aff *isl_pw_aff_union_min(__isl_take isl_pw_aff *pwaff1,
137 __isl_take isl_pw_aff *pwaff2);
138 __isl_give isl_pw_aff *isl_pw_aff_union_max(__isl_take isl_pw_aff *pwaff1,
139 __isl_take isl_pw_aff *pwaff2);
140 __isl_give isl_pw_aff *isl_pw_aff_union_add(__isl_take isl_pw_aff *pwaff1,
141 __isl_take isl_pw_aff *pwaff2);
143 __isl_give isl_pw_aff *isl_pw_aff_copy(__isl_keep isl_pw_aff *pwaff);
144 void *isl_pw_aff_free(__isl_take isl_pw_aff *pwaff);
146 unsigned isl_pw_aff_dim(__isl_keep isl_pw_aff *pwaff, enum isl_dim_type type);
147 int isl_pw_aff_involves_dims(__isl_keep isl_pw_aff *pwaff,
148 enum isl_dim_type type, unsigned first, unsigned n);
150 int isl_pw_aff_is_cst(__isl_keep isl_pw_aff *pwaff);
152 __isl_give isl_pw_aff *isl_pw_aff_align_params(__isl_take isl_pw_aff *pwaff,
153 __isl_take isl_space *model);
155 __isl_give isl_id *isl_pw_aff_get_tuple_id(__isl_keep isl_pw_aff *pa,
156 enum isl_dim_type type);
157 __isl_give isl_pw_aff *isl_pw_aff_set_tuple_id(__isl_take isl_pw_aff *pwaff,
158 enum isl_dim_type type, __isl_take isl_id *id);
160 __isl_give isl_set *isl_pw_aff_domain(__isl_take isl_pw_aff *pwaff);
162 __isl_give isl_pw_aff *isl_pw_aff_min(__isl_take isl_pw_aff *pwaff1,
163 __isl_take isl_pw_aff *pwaff2);
164 __isl_give isl_pw_aff *isl_pw_aff_max(__isl_take isl_pw_aff *pwaff1,
165 __isl_take isl_pw_aff *pwaff2);
166 __isl_give isl_pw_aff *isl_pw_aff_mul(__isl_take isl_pw_aff *pwaff1,
167 __isl_take isl_pw_aff *pwaff2);
168 __isl_give isl_pw_aff *isl_pw_aff_add(__isl_take isl_pw_aff *pwaff1,
169 __isl_take isl_pw_aff *pwaff2);
170 __isl_give isl_pw_aff *isl_pw_aff_sub(__isl_take isl_pw_aff *pwaff1,
171 __isl_take isl_pw_aff *pwaff2);
172 __isl_give isl_pw_aff *isl_pw_aff_neg(__isl_take isl_pw_aff *pwaff);
173 __isl_give isl_pw_aff *isl_pw_aff_ceil(__isl_take isl_pw_aff *pwaff);
174 __isl_give isl_pw_aff *isl_pw_aff_floor(__isl_take isl_pw_aff *pwaff);
175 __isl_give isl_pw_aff *isl_pw_aff_mod(__isl_take isl_pw_aff *pwaff,
176 isl_int mod);
178 __isl_give isl_pw_aff *isl_pw_aff_intersect_params(__isl_take isl_pw_aff *pa,
179 __isl_take isl_set *set);
180 __isl_give isl_pw_aff *isl_pw_aff_intersect_domain(__isl_take isl_pw_aff *pa,
181 __isl_take isl_set *set);
183 __isl_give isl_pw_aff *isl_pw_aff_cond(__isl_take isl_pw_aff *cond,
184 __isl_take isl_pw_aff *pwaff_true, __isl_take isl_pw_aff *pwaff_false);
186 __isl_give isl_pw_aff *isl_pw_aff_scale(__isl_take isl_pw_aff *pwaff,
187 isl_int f);
188 __isl_give isl_pw_aff *isl_pw_aff_scale_down(__isl_take isl_pw_aff *pwaff,
189 isl_int f);
191 __isl_give isl_pw_aff *isl_pw_aff_insert_dims(__isl_take isl_pw_aff *pwaff,
192 enum isl_dim_type type, unsigned first, unsigned n);
193 __isl_give isl_pw_aff *isl_pw_aff_add_dims(__isl_take isl_pw_aff *pwaff,
194 enum isl_dim_type type, unsigned n);
195 __isl_give isl_pw_aff *isl_pw_aff_drop_dims(__isl_take isl_pw_aff *pwaff,
196 enum isl_dim_type type, unsigned first, unsigned n);
198 __isl_give isl_pw_aff *isl_pw_aff_coalesce(__isl_take isl_pw_aff *pwqp);
199 __isl_give isl_pw_aff *isl_pw_aff_gist(__isl_take isl_pw_aff *pwaff,
200 __isl_take isl_set *context);
201 __isl_give isl_pw_aff *isl_pw_aff_gist_params(__isl_take isl_pw_aff *pwaff,
202 __isl_take isl_set *context);
204 int isl_pw_aff_n_piece(__isl_keep isl_pw_aff *pwaff);
205 int isl_pw_aff_foreach_piece(__isl_keep isl_pw_aff *pwaff,
206 int (*fn)(__isl_take isl_set *set, __isl_take isl_aff *aff,
207 void *user), void *user);
209 __isl_give isl_set *isl_set_from_pw_aff(__isl_take isl_pw_aff *pwaff);
210 __isl_give isl_map *isl_map_from_pw_aff(__isl_take isl_pw_aff *pwaff);
212 __isl_give isl_set *isl_pw_aff_nonneg_set(__isl_take isl_pw_aff *pwaff);
213 __isl_give isl_set *isl_pw_aff_zero_set(__isl_take isl_pw_aff *pwaff);
214 __isl_give isl_set *isl_pw_aff_non_zero_set(__isl_take isl_pw_aff *pwaff);
216 __isl_give isl_set *isl_pw_aff_eq_set(__isl_take isl_pw_aff *pwaff1,
217 __isl_take isl_pw_aff *pwaff2);
218 __isl_give isl_set *isl_pw_aff_ne_set(__isl_take isl_pw_aff *pwaff1,
219 __isl_take isl_pw_aff *pwaff2);
220 __isl_give isl_set *isl_pw_aff_le_set(__isl_take isl_pw_aff *pwaff1,
221 __isl_take isl_pw_aff *pwaff2);
222 __isl_give isl_set *isl_pw_aff_lt_set(__isl_take isl_pw_aff *pwaff1,
223 __isl_take isl_pw_aff *pwaff2);
224 __isl_give isl_set *isl_pw_aff_ge_set(__isl_take isl_pw_aff *pwaff1,
225 __isl_take isl_pw_aff *pwaff2);
226 __isl_give isl_set *isl_pw_aff_gt_set(__isl_take isl_pw_aff *pwaff1,
227 __isl_take isl_pw_aff *pwaff2);
229 __isl_give isl_pw_aff *isl_pw_aff_read_from_str(isl_ctx *ctx, const char *str);
230 __isl_give isl_printer *isl_printer_print_pw_aff(__isl_take isl_printer *p,
231 __isl_keep isl_pw_aff *pwaff);
232 void isl_pw_aff_dump(__isl_keep isl_pw_aff *pwaff);
234 __isl_give isl_pw_aff *isl_pw_aff_list_min(__isl_take isl_pw_aff_list *list);
235 __isl_give isl_pw_aff *isl_pw_aff_list_max(__isl_take isl_pw_aff_list *list);
237 __isl_give isl_set *isl_pw_aff_list_eq_set(__isl_take isl_pw_aff_list *list1,
238 __isl_take isl_pw_aff_list *list2);
239 __isl_give isl_set *isl_pw_aff_list_ne_set(__isl_take isl_pw_aff_list *list1,
240 __isl_take isl_pw_aff_list *list2);
241 __isl_give isl_set *isl_pw_aff_list_le_set(__isl_take isl_pw_aff_list *list1,
242 __isl_take isl_pw_aff_list *list2);
243 __isl_give isl_set *isl_pw_aff_list_lt_set(__isl_take isl_pw_aff_list *list1,
244 __isl_take isl_pw_aff_list *list2);
245 __isl_give isl_set *isl_pw_aff_list_ge_set(__isl_take isl_pw_aff_list *list1,
246 __isl_take isl_pw_aff_list *list2);
247 __isl_give isl_set *isl_pw_aff_list_gt_set(__isl_take isl_pw_aff_list *list1,
248 __isl_take isl_pw_aff_list *list2);
250 __isl_give isl_multi_aff *isl_multi_aff_zero(__isl_take isl_space *space);
251 __isl_give isl_multi_aff *isl_multi_aff_identity(__isl_take isl_space *space);
253 isl_ctx *isl_multi_aff_get_ctx(__isl_keep isl_multi_aff *maff);
254 __isl_give isl_space *isl_multi_aff_get_space(__isl_keep isl_multi_aff *maff);
255 __isl_give isl_space *isl_multi_aff_get_domain_space(
256 __isl_keep isl_multi_aff *maff);
257 __isl_give isl_multi_aff *isl_multi_aff_set_tuple_id(
258 __isl_take isl_multi_aff *maff,
259 enum isl_dim_type type, __isl_take isl_id *id);
260 __isl_give isl_multi_aff *isl_multi_aff_copy(__isl_keep isl_multi_aff *maff);
261 void *isl_multi_aff_free(__isl_take isl_multi_aff *maff);
263 unsigned isl_multi_aff_dim(__isl_keep isl_multi_aff *maff,
264 enum isl_dim_type type);
265 __isl_give isl_aff *isl_multi_aff_get_aff(__isl_keep isl_multi_aff *multi,
266 int pos);
268 __isl_give isl_multi_aff *isl_multi_aff_drop_dims(
269 __isl_take isl_multi_aff *maff,
270 enum isl_dim_type type, unsigned first, unsigned n);
272 __isl_give isl_multi_aff *isl_multi_aff_set_dim_name(
273 __isl_take isl_multi_aff *maff,
274 enum isl_dim_type type, unsigned pos, const char *s);
276 int isl_multi_aff_plain_is_equal(__isl_keep isl_multi_aff *maff1,
277 __isl_keep isl_multi_aff *maff2);
279 __isl_give isl_multi_aff *isl_multi_aff_add(__isl_take isl_multi_aff *maff1,
280 __isl_take isl_multi_aff *maff2);
282 __isl_give isl_multi_aff *isl_multi_aff_scale(__isl_take isl_multi_aff *maff,
283 isl_int f);
285 __isl_give isl_multi_aff *isl_multi_aff_flat_range_product(
286 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
287 __isl_give isl_multi_aff *isl_multi_aff_product(
288 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
290 __isl_give isl_multi_aff *isl_multi_aff_align_params(
291 __isl_take isl_multi_aff *multi, __isl_take isl_space *model);
293 __isl_give isl_multi_aff *isl_multi_aff_gist_params(
294 __isl_take isl_multi_aff *maff, __isl_take isl_set *context);
295 __isl_give isl_multi_aff *isl_multi_aff_gist(__isl_take isl_multi_aff *maff,
296 __isl_take isl_set *context);
298 __isl_give isl_multi_aff *isl_multi_aff_lift(__isl_take isl_multi_aff *maff,
299 __isl_give isl_local_space **ls);
301 __isl_give isl_set *isl_multi_aff_lex_le_set(__isl_take isl_multi_aff *ma1,
302 __isl_take isl_multi_aff *ma2);
303 __isl_give isl_set *isl_multi_aff_lex_ge_set(__isl_take isl_multi_aff *ma1,
304 __isl_take isl_multi_aff *ma2);
306 __isl_give isl_printer *isl_printer_print_multi_aff(__isl_take isl_printer *p,
307 __isl_keep isl_multi_aff *maff);
309 __isl_give isl_multi_aff *isl_multi_aff_read_from_str(isl_ctx *ctx,
310 const char *str);
311 void isl_multi_aff_dump(__isl_keep isl_multi_aff *maff);
313 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_multi_aff(
314 __isl_take isl_multi_aff *ma);
315 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_alloc(__isl_take isl_set *set,
316 __isl_take isl_multi_aff *maff);
317 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_copy(
318 __isl_keep isl_pw_multi_aff *pma);
319 void *isl_pw_multi_aff_free(__isl_take isl_pw_multi_aff *pma);
321 unsigned isl_pw_multi_aff_dim(__isl_keep isl_pw_multi_aff *pma,
322 enum isl_dim_type type);
323 __isl_give isl_pw_aff *isl_pw_multi_aff_get_pw_aff(
324 __isl_keep isl_pw_multi_aff *pma, int pos);
326 isl_ctx *isl_pw_multi_aff_get_ctx(__isl_keep isl_pw_multi_aff *pma);
327 __isl_give isl_space *isl_pw_multi_aff_get_domain_space(
328 __isl_keep isl_pw_multi_aff *pma);
329 __isl_give isl_space *isl_pw_multi_aff_get_space(
330 __isl_keep isl_pw_multi_aff *pma);
331 int isl_pw_multi_aff_has_tuple_name(__isl_keep isl_pw_multi_aff *pma,
332 enum isl_dim_type type);
333 const char *isl_pw_multi_aff_get_tuple_name(__isl_keep isl_pw_multi_aff *pma,
334 enum isl_dim_type type);
335 __isl_give isl_id *isl_pw_multi_aff_get_tuple_id(
336 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type);
337 int isl_pw_multi_aff_has_tuple_id(__isl_keep isl_pw_multi_aff *pma,
338 enum isl_dim_type type);
339 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_tuple_id(
340 __isl_take isl_pw_multi_aff *pma,
341 enum isl_dim_type type, __isl_take isl_id *id);
343 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_drop_dims(
344 __isl_take isl_pw_multi_aff *pma,
345 enum isl_dim_type type, unsigned first, unsigned n);
347 __isl_give isl_set *isl_pw_multi_aff_domain(__isl_take isl_pw_multi_aff *pma);
349 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_empty(__isl_take isl_space *space);
350 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_domain(
351 __isl_take isl_set *set);
353 const char *isl_pw_multi_aff_get_dim_name(__isl_keep isl_pw_multi_aff *pma,
354 enum isl_dim_type type, unsigned pos);
355 __isl_give isl_id *isl_pw_multi_aff_get_dim_id(
356 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type,
357 unsigned pos);
358 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_dim_id(
359 __isl_take isl_pw_multi_aff *pma,
360 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
362 int isl_pw_multi_aff_plain_is_equal(__isl_keep isl_pw_multi_aff *pma1,
363 __isl_keep isl_pw_multi_aff *pma2);
365 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_add(
366 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
368 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_add(
369 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
371 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmin(
372 __isl_take isl_pw_multi_aff *pma1,
373 __isl_take isl_pw_multi_aff *pma2);
374 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmax(
375 __isl_take isl_pw_multi_aff *pma1,
376 __isl_take isl_pw_multi_aff *pma2);
378 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_flat_range_product(
379 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
380 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_product(
381 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
383 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_params(
384 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
385 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_domain(
386 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
388 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_coalesce(
389 __isl_take isl_pw_multi_aff *pma);
390 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist_params(
391 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
392 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist(
393 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
395 int isl_pw_multi_aff_foreach_piece(__isl_keep isl_pw_multi_aff *pma,
396 int (*fn)(__isl_take isl_set *set, __isl_take isl_multi_aff *maff,
397 void *user), void *user);
399 __isl_give isl_map *isl_map_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
400 __isl_give isl_set *isl_set_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
402 __isl_give isl_printer *isl_printer_print_pw_multi_aff(__isl_take isl_printer *p,
403 __isl_keep isl_pw_multi_aff *pma);
405 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_set(__isl_take isl_set *set);
406 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_map(__isl_take isl_map *map);
408 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_read_from_str(isl_ctx *ctx,
409 const char *str);
410 void isl_pw_multi_aff_dump(__isl_keep isl_pw_multi_aff *pma);
413 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_empty(
414 __isl_take isl_space *space);
415 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_domain(
416 __isl_take isl_union_set *uset);
417 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_copy(
418 __isl_keep isl_union_pw_multi_aff *upma);
419 void *isl_union_pw_multi_aff_free(__isl_take isl_union_pw_multi_aff *upma);
421 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add_pw_multi_aff(
422 __isl_take isl_union_pw_multi_aff *upma,
423 __isl_take isl_pw_multi_aff *pma);
425 isl_ctx *isl_union_pw_multi_aff_get_ctx(
426 __isl_keep isl_union_pw_multi_aff *upma);
427 __isl_give isl_space *isl_union_pw_multi_aff_get_space(
428 __isl_keep isl_union_pw_multi_aff *upma);
430 int isl_union_pw_multi_aff_foreach_pw_multi_aff(
431 __isl_keep isl_union_pw_multi_aff *upma,
432 int (*fn)(__isl_take isl_pw_multi_aff *pma, void *user), void *user);
434 __isl_give isl_union_set *isl_union_pw_multi_aff_domain(
435 __isl_take isl_union_pw_multi_aff *upma);
437 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add(
438 __isl_take isl_union_pw_multi_aff *upma1,
439 __isl_take isl_union_pw_multi_aff *upma2);
441 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_flat_range_product(
442 __isl_take isl_union_pw_multi_aff *upma1,
443 __isl_take isl_union_pw_multi_aff *upma2);
445 __isl_give isl_union_map *isl_union_map_from_union_pw_multi_aff(
446 __isl_take isl_union_pw_multi_aff *upma);
448 __isl_give isl_printer *isl_printer_print_union_pw_multi_aff(
449 __isl_take isl_printer *p, __isl_keep isl_union_pw_multi_aff *upma);
451 #if defined(__cplusplus)
453 #endif
455 #include <isl/dim.h>
457 #endif