add isl_union_pw_aff_val_on_domain
[isl.git] / include / isl / aff.h
blob2109d6533f05bd9dd0e3a68fb2b0f56dfb79d0a4
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>
11 #include <isl/val.h>
13 #if defined(__cplusplus)
14 extern "C" {
15 #endif
17 __isl_give isl_aff *isl_aff_zero_on_domain(__isl_take isl_local_space *ls);
18 __isl_give isl_aff *isl_aff_val_on_domain(__isl_take isl_local_space *ls,
19 __isl_take isl_val *val);
20 __isl_give isl_aff *isl_aff_var_on_domain(__isl_take isl_local_space *ls,
21 enum isl_dim_type type, unsigned pos);
22 __isl_give isl_aff *isl_aff_nan_on_domain(__isl_take isl_local_space *ls);
24 __isl_give isl_aff *isl_aff_copy(__isl_keep isl_aff *aff);
25 __isl_null isl_aff *isl_aff_free(__isl_take isl_aff *aff);
27 isl_ctx *isl_aff_get_ctx(__isl_keep isl_aff *aff);
29 int isl_aff_dim(__isl_keep isl_aff *aff, enum isl_dim_type type);
30 int isl_aff_involves_dims(__isl_keep isl_aff *aff,
31 enum isl_dim_type type, unsigned first, unsigned n);
33 __isl_give isl_space *isl_aff_get_domain_space(__isl_keep isl_aff *aff);
34 __isl_give isl_space *isl_aff_get_space(__isl_keep isl_aff *aff);
35 __isl_give isl_local_space *isl_aff_get_domain_local_space(
36 __isl_keep isl_aff *aff);
37 __isl_give isl_local_space *isl_aff_get_local_space(__isl_keep isl_aff *aff);
39 const char *isl_aff_get_dim_name(__isl_keep isl_aff *aff,
40 enum isl_dim_type type, unsigned pos);
41 __isl_give isl_val *isl_aff_get_constant_val(__isl_keep isl_aff *aff);
42 __isl_give isl_val *isl_aff_get_coefficient_val(__isl_keep isl_aff *aff,
43 enum isl_dim_type type, int pos);
44 int isl_aff_coefficient_sgn(__isl_keep isl_aff *aff,
45 enum isl_dim_type type, int pos);
46 __isl_give isl_val *isl_aff_get_denominator_val(__isl_keep isl_aff *aff);
47 __isl_give isl_aff *isl_aff_set_constant_si(__isl_take isl_aff *aff, int v);
48 __isl_give isl_aff *isl_aff_set_constant_val(__isl_take isl_aff *aff,
49 __isl_take isl_val *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_add_constant_si(__isl_take isl_aff *aff, int v);
55 __isl_give isl_aff *isl_aff_add_constant_val(__isl_take isl_aff *aff,
56 __isl_take isl_val *v);
57 __isl_give isl_aff *isl_aff_add_constant_num_si(__isl_take isl_aff *aff, int v);
58 __isl_give isl_aff *isl_aff_add_coefficient_si(__isl_take isl_aff *aff,
59 enum isl_dim_type type, int pos, int v);
60 __isl_give isl_aff *isl_aff_add_coefficient_val(__isl_take isl_aff *aff,
61 enum isl_dim_type type, int pos, __isl_take isl_val *v);
63 int isl_aff_is_cst(__isl_keep isl_aff *aff);
65 __isl_give isl_aff *isl_aff_set_tuple_id(__isl_take isl_aff *aff,
66 enum isl_dim_type type, __isl_take isl_id *id);
67 __isl_give isl_aff *isl_aff_set_dim_name(__isl_take isl_aff *aff,
68 enum isl_dim_type type, unsigned pos, const char *s);
69 __isl_give isl_aff *isl_aff_set_dim_id(__isl_take isl_aff *aff,
70 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
72 int isl_aff_find_dim_by_name(__isl_keep isl_aff *aff, enum isl_dim_type type,
73 const char *name);
75 int isl_aff_plain_is_equal(__isl_keep isl_aff *aff1, __isl_keep isl_aff *aff2);
76 int isl_aff_plain_is_zero(__isl_keep isl_aff *aff);
77 int isl_aff_is_nan(__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_val(__isl_take isl_aff *aff,
85 __isl_take isl_val *mod);
87 __isl_give isl_aff *isl_aff_mul(__isl_take isl_aff *aff1,
88 __isl_take isl_aff *aff2);
89 __isl_give isl_aff *isl_aff_div(__isl_take isl_aff *aff1,
90 __isl_take isl_aff *aff2);
91 __isl_give isl_aff *isl_aff_add(__isl_take isl_aff *aff1,
92 __isl_take isl_aff *aff2);
93 __isl_give isl_aff *isl_aff_sub(__isl_take isl_aff *aff1,
94 __isl_take isl_aff *aff2);
96 __isl_give isl_aff *isl_aff_scale_val(__isl_take isl_aff *aff,
97 __isl_take isl_val *v);
98 __isl_give isl_aff *isl_aff_scale_down_ui(__isl_take isl_aff *aff, unsigned f);
99 __isl_give isl_aff *isl_aff_scale_down_val(__isl_take isl_aff *aff,
100 __isl_take isl_val *v);
102 __isl_give isl_aff *isl_aff_insert_dims(__isl_take isl_aff *aff,
103 enum isl_dim_type type, unsigned first, unsigned n);
104 __isl_give isl_aff *isl_aff_add_dims(__isl_take isl_aff *aff,
105 enum isl_dim_type type, unsigned n);
106 __isl_give isl_aff *isl_aff_move_dims(__isl_take isl_aff *aff,
107 enum isl_dim_type dst_type, unsigned dst_pos,
108 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
109 __isl_give isl_aff *isl_aff_drop_dims(__isl_take isl_aff *aff,
110 enum isl_dim_type type, unsigned first, unsigned n);
111 __isl_give isl_aff *isl_aff_project_domain_on_params(__isl_take isl_aff *aff);
113 __isl_give isl_aff *isl_aff_align_params(__isl_take isl_aff *aff,
114 __isl_take isl_space *model);
116 __isl_give isl_aff *isl_aff_gist(__isl_take isl_aff *aff,
117 __isl_take isl_set *context);
118 __isl_give isl_aff *isl_aff_gist_params(__isl_take isl_aff *aff,
119 __isl_take isl_set *context);
121 __isl_give isl_aff *isl_aff_pullback_aff(__isl_take isl_aff *aff1,
122 __isl_take isl_aff *aff2);
123 __isl_give isl_aff *isl_aff_pullback_multi_aff(__isl_take isl_aff *aff,
124 __isl_take isl_multi_aff *ma);
126 __isl_give isl_basic_set *isl_aff_zero_basic_set(__isl_take isl_aff *aff);
127 __isl_give isl_basic_set *isl_aff_neg_basic_set(__isl_take isl_aff *aff);
129 __isl_give isl_basic_set *isl_aff_le_basic_set(__isl_take isl_aff *aff1,
130 __isl_take isl_aff *aff2);
131 __isl_give isl_basic_set *isl_aff_ge_basic_set(__isl_take isl_aff *aff1,
132 __isl_take isl_aff *aff2);
134 __isl_give isl_aff *isl_aff_read_from_str(isl_ctx *ctx, const char *str);
135 __isl_give isl_printer *isl_printer_print_aff(__isl_take isl_printer *p,
136 __isl_keep isl_aff *aff);
137 void isl_aff_dump(__isl_keep isl_aff *aff);
139 isl_ctx *isl_pw_aff_get_ctx(__isl_keep isl_pw_aff *pwaff);
140 __isl_give isl_space *isl_pw_aff_get_domain_space(__isl_keep isl_pw_aff *pwaff);
141 __isl_give isl_space *isl_pw_aff_get_space(__isl_keep isl_pw_aff *pwaff);
143 __isl_give isl_pw_aff *isl_pw_aff_from_aff(__isl_take isl_aff *aff);
144 __isl_give isl_pw_aff *isl_pw_aff_empty(__isl_take isl_space *dim);
145 __isl_give isl_pw_aff *isl_pw_aff_alloc(__isl_take isl_set *set,
146 __isl_take isl_aff *aff);
147 __isl_give isl_pw_aff *isl_pw_aff_zero_on_domain(
148 __isl_take isl_local_space *ls);
149 __isl_give isl_pw_aff *isl_pw_aff_var_on_domain(__isl_take isl_local_space *ls,
150 enum isl_dim_type type, unsigned pos);
151 __isl_give isl_pw_aff *isl_pw_aff_nan_on_domain(__isl_take isl_local_space *ls);
152 __isl_give isl_pw_aff *isl_pw_aff_val_on_domain(__isl_take isl_set *domain,
153 __isl_take isl_val *v);
155 __isl_give isl_pw_aff *isl_set_indicator_function(__isl_take isl_set *set);
157 const char *isl_pw_aff_get_dim_name(__isl_keep isl_pw_aff *pa,
158 enum isl_dim_type type, unsigned pos);
159 int isl_pw_aff_has_dim_id(__isl_keep isl_pw_aff *pa,
160 enum isl_dim_type type, unsigned pos);
161 __isl_give isl_id *isl_pw_aff_get_dim_id(__isl_keep isl_pw_aff *pa,
162 enum isl_dim_type type, unsigned pos);
163 __isl_give isl_pw_aff *isl_pw_aff_set_dim_id(__isl_take isl_pw_aff *pma,
164 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
166 int isl_pw_aff_find_dim_by_name(__isl_keep isl_pw_aff *pa,
167 enum isl_dim_type type, const char *name);
169 int isl_pw_aff_is_empty(__isl_keep isl_pw_aff *pwaff);
170 int isl_pw_aff_involves_nan(__isl_keep isl_pw_aff *pa);
171 int isl_pw_aff_plain_cmp(__isl_keep isl_pw_aff *pa1,
172 __isl_keep isl_pw_aff *pa2);
173 int isl_pw_aff_plain_is_equal(__isl_keep isl_pw_aff *pwaff1,
174 __isl_keep isl_pw_aff *pwaff2);
175 int isl_pw_aff_is_equal(__isl_keep isl_pw_aff *pa1, __isl_keep isl_pw_aff *pa2);
177 __isl_give isl_pw_aff *isl_pw_aff_union_min(__isl_take isl_pw_aff *pwaff1,
178 __isl_take isl_pw_aff *pwaff2);
179 __isl_give isl_pw_aff *isl_pw_aff_union_max(__isl_take isl_pw_aff *pwaff1,
180 __isl_take isl_pw_aff *pwaff2);
181 __isl_give isl_pw_aff *isl_pw_aff_union_add(__isl_take isl_pw_aff *pwaff1,
182 __isl_take isl_pw_aff *pwaff2);
184 __isl_give isl_pw_aff *isl_pw_aff_copy(__isl_keep isl_pw_aff *pwaff);
185 __isl_null isl_pw_aff *isl_pw_aff_free(__isl_take isl_pw_aff *pwaff);
187 unsigned isl_pw_aff_dim(__isl_keep isl_pw_aff *pwaff, enum isl_dim_type type);
188 int isl_pw_aff_involves_dims(__isl_keep isl_pw_aff *pwaff,
189 enum isl_dim_type type, unsigned first, unsigned n);
191 int isl_pw_aff_is_cst(__isl_keep isl_pw_aff *pwaff);
193 __isl_give isl_pw_aff *isl_pw_aff_align_params(__isl_take isl_pw_aff *pwaff,
194 __isl_take isl_space *model);
196 int isl_pw_aff_has_tuple_id(__isl_keep isl_pw_aff *pa, enum isl_dim_type type);
197 __isl_give isl_id *isl_pw_aff_get_tuple_id(__isl_keep isl_pw_aff *pa,
198 enum isl_dim_type type);
199 __isl_give isl_pw_aff *isl_pw_aff_set_tuple_id(__isl_take isl_pw_aff *pwaff,
200 enum isl_dim_type type, __isl_take isl_id *id);
201 __isl_give isl_pw_aff *isl_pw_aff_reset_tuple_id(__isl_take isl_pw_aff *pa,
202 enum isl_dim_type type);
203 __isl_give isl_pw_aff *isl_pw_aff_reset_user(__isl_take isl_pw_aff *pa);
205 __isl_give isl_set *isl_pw_aff_params(__isl_take isl_pw_aff *pwa);
206 __isl_give isl_set *isl_pw_aff_domain(__isl_take isl_pw_aff *pwaff);
207 __isl_give isl_pw_aff *isl_pw_aff_from_range(__isl_take isl_pw_aff *pwa);
209 __isl_give isl_pw_aff *isl_pw_aff_min(__isl_take isl_pw_aff *pwaff1,
210 __isl_take isl_pw_aff *pwaff2);
211 __isl_give isl_pw_aff *isl_pw_aff_max(__isl_take isl_pw_aff *pwaff1,
212 __isl_take isl_pw_aff *pwaff2);
213 __isl_give isl_pw_aff *isl_pw_aff_mul(__isl_take isl_pw_aff *pwaff1,
214 __isl_take isl_pw_aff *pwaff2);
215 __isl_give isl_pw_aff *isl_pw_aff_div(__isl_take isl_pw_aff *pa1,
216 __isl_take isl_pw_aff *pa2);
217 __isl_give isl_pw_aff *isl_pw_aff_add(__isl_take isl_pw_aff *pwaff1,
218 __isl_take isl_pw_aff *pwaff2);
219 __isl_give isl_pw_aff *isl_pw_aff_sub(__isl_take isl_pw_aff *pwaff1,
220 __isl_take isl_pw_aff *pwaff2);
221 __isl_give isl_pw_aff *isl_pw_aff_neg(__isl_take isl_pw_aff *pwaff);
222 __isl_give isl_pw_aff *isl_pw_aff_ceil(__isl_take isl_pw_aff *pwaff);
223 __isl_give isl_pw_aff *isl_pw_aff_floor(__isl_take isl_pw_aff *pwaff);
224 __isl_give isl_pw_aff *isl_pw_aff_mod_val(__isl_take isl_pw_aff *pa,
225 __isl_take isl_val *mod);
226 __isl_give isl_pw_aff *isl_pw_aff_tdiv_q(__isl_take isl_pw_aff *pa1,
227 __isl_take isl_pw_aff *pa2);
228 __isl_give isl_pw_aff *isl_pw_aff_tdiv_r(__isl_take isl_pw_aff *pa1,
229 __isl_take isl_pw_aff *pa2);
231 __isl_give isl_pw_aff *isl_pw_aff_intersect_params(__isl_take isl_pw_aff *pa,
232 __isl_take isl_set *set);
233 __isl_give isl_pw_aff *isl_pw_aff_intersect_domain(__isl_take isl_pw_aff *pa,
234 __isl_take isl_set *set);
235 __isl_give isl_pw_aff *isl_pw_aff_subtract_domain(__isl_take isl_pw_aff *pa,
236 __isl_take isl_set *set);
238 __isl_give isl_pw_aff *isl_pw_aff_cond(__isl_take isl_pw_aff *cond,
239 __isl_take isl_pw_aff *pwaff_true, __isl_take isl_pw_aff *pwaff_false);
241 __isl_give isl_pw_aff *isl_pw_aff_scale_val(__isl_take isl_pw_aff *pa,
242 __isl_take isl_val *v);
243 __isl_give isl_pw_aff *isl_pw_aff_scale_down_val(__isl_take isl_pw_aff *pa,
244 __isl_take isl_val *f);
246 __isl_give isl_pw_aff *isl_pw_aff_insert_dims(__isl_take isl_pw_aff *pwaff,
247 enum isl_dim_type type, unsigned first, unsigned n);
248 __isl_give isl_pw_aff *isl_pw_aff_add_dims(__isl_take isl_pw_aff *pwaff,
249 enum isl_dim_type type, unsigned n);
250 __isl_give isl_pw_aff *isl_pw_aff_move_dims(__isl_take isl_pw_aff *pa,
251 enum isl_dim_type dst_type, unsigned dst_pos,
252 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
253 __isl_give isl_pw_aff *isl_pw_aff_drop_dims(__isl_take isl_pw_aff *pwaff,
254 enum isl_dim_type type, unsigned first, unsigned n);
256 __isl_give isl_pw_aff *isl_pw_aff_coalesce(__isl_take isl_pw_aff *pwqp);
257 __isl_give isl_pw_aff *isl_pw_aff_gist(__isl_take isl_pw_aff *pwaff,
258 __isl_take isl_set *context);
259 __isl_give isl_pw_aff *isl_pw_aff_gist_params(__isl_take isl_pw_aff *pwaff,
260 __isl_take isl_set *context);
262 __isl_give isl_pw_aff *isl_pw_aff_pullback_multi_aff(
263 __isl_take isl_pw_aff *pa, __isl_take isl_multi_aff *ma);
264 __isl_give isl_pw_aff *isl_pw_aff_pullback_pw_multi_aff(
265 __isl_take isl_pw_aff *pa, __isl_take isl_pw_multi_aff *pma);
266 __isl_give isl_pw_aff *isl_pw_aff_pullback_multi_pw_aff(
267 __isl_take isl_pw_aff *pa, __isl_take isl_multi_pw_aff *mpa);
269 int isl_pw_aff_n_piece(__isl_keep isl_pw_aff *pwaff);
270 int isl_pw_aff_foreach_piece(__isl_keep isl_pw_aff *pwaff,
271 int (*fn)(__isl_take isl_set *set, __isl_take isl_aff *aff,
272 void *user), void *user);
274 __isl_give isl_set *isl_set_from_pw_aff(__isl_take isl_pw_aff *pwaff);
275 __isl_give isl_map *isl_map_from_pw_aff(__isl_take isl_pw_aff *pwaff);
277 __isl_give isl_set *isl_pw_aff_pos_set(__isl_take isl_pw_aff *pa);
278 __isl_give isl_set *isl_pw_aff_nonneg_set(__isl_take isl_pw_aff *pwaff);
279 __isl_give isl_set *isl_pw_aff_zero_set(__isl_take isl_pw_aff *pwaff);
280 __isl_give isl_set *isl_pw_aff_non_zero_set(__isl_take isl_pw_aff *pwaff);
282 __isl_give isl_set *isl_pw_aff_eq_set(__isl_take isl_pw_aff *pwaff1,
283 __isl_take isl_pw_aff *pwaff2);
284 __isl_give isl_set *isl_pw_aff_ne_set(__isl_take isl_pw_aff *pwaff1,
285 __isl_take isl_pw_aff *pwaff2);
286 __isl_give isl_set *isl_pw_aff_le_set(__isl_take isl_pw_aff *pwaff1,
287 __isl_take isl_pw_aff *pwaff2);
288 __isl_give isl_set *isl_pw_aff_lt_set(__isl_take isl_pw_aff *pwaff1,
289 __isl_take isl_pw_aff *pwaff2);
290 __isl_give isl_set *isl_pw_aff_ge_set(__isl_take isl_pw_aff *pwaff1,
291 __isl_take isl_pw_aff *pwaff2);
292 __isl_give isl_set *isl_pw_aff_gt_set(__isl_take isl_pw_aff *pwaff1,
293 __isl_take isl_pw_aff *pwaff2);
295 __isl_give isl_pw_aff *isl_pw_aff_read_from_str(isl_ctx *ctx, const char *str);
296 __isl_give isl_printer *isl_printer_print_pw_aff(__isl_take isl_printer *p,
297 __isl_keep isl_pw_aff *pwaff);
298 void isl_pw_aff_dump(__isl_keep isl_pw_aff *pwaff);
300 __isl_give isl_pw_aff *isl_pw_aff_list_min(__isl_take isl_pw_aff_list *list);
301 __isl_give isl_pw_aff *isl_pw_aff_list_max(__isl_take isl_pw_aff_list *list);
303 __isl_give isl_set *isl_pw_aff_list_eq_set(__isl_take isl_pw_aff_list *list1,
304 __isl_take isl_pw_aff_list *list2);
305 __isl_give isl_set *isl_pw_aff_list_ne_set(__isl_take isl_pw_aff_list *list1,
306 __isl_take isl_pw_aff_list *list2);
307 __isl_give isl_set *isl_pw_aff_list_le_set(__isl_take isl_pw_aff_list *list1,
308 __isl_take isl_pw_aff_list *list2);
309 __isl_give isl_set *isl_pw_aff_list_lt_set(__isl_take isl_pw_aff_list *list1,
310 __isl_take isl_pw_aff_list *list2);
311 __isl_give isl_set *isl_pw_aff_list_ge_set(__isl_take isl_pw_aff_list *list1,
312 __isl_take isl_pw_aff_list *list2);
313 __isl_give isl_set *isl_pw_aff_list_gt_set(__isl_take isl_pw_aff_list *list1,
314 __isl_take isl_pw_aff_list *list2);
316 ISL_DECLARE_MULTI(aff)
317 ISL_DECLARE_MULTI_NEG(aff)
319 __isl_give isl_multi_aff *isl_multi_aff_from_aff(__isl_take isl_aff *aff);
320 __isl_give isl_multi_aff *isl_multi_aff_identity(__isl_take isl_space *space);
321 __isl_give isl_multi_aff *isl_multi_aff_domain_map(__isl_take isl_space *space);
322 __isl_give isl_multi_aff *isl_multi_aff_range_map(__isl_take isl_space *space);
323 __isl_give isl_multi_aff *isl_multi_aff_project_out_map(
324 __isl_take isl_space *space, enum isl_dim_type type,
325 unsigned first, unsigned n);
327 __isl_give isl_multi_aff *isl_multi_aff_multi_val_on_space(
328 __isl_take isl_space *space, __isl_take isl_multi_val *mv);
330 __isl_give isl_multi_aff *isl_multi_aff_floor(__isl_take isl_multi_aff *ma);
332 __isl_give isl_multi_aff *isl_multi_aff_add(__isl_take isl_multi_aff *maff1,
333 __isl_take isl_multi_aff *maff2);
335 __isl_give isl_multi_aff *isl_multi_aff_product(
336 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
338 __isl_give isl_multi_aff *isl_multi_aff_gist_params(
339 __isl_take isl_multi_aff *maff, __isl_take isl_set *context);
340 __isl_give isl_multi_aff *isl_multi_aff_gist(__isl_take isl_multi_aff *maff,
341 __isl_take isl_set *context);
343 __isl_give isl_multi_aff *isl_multi_aff_lift(__isl_take isl_multi_aff *maff,
344 __isl_give isl_local_space **ls);
346 __isl_give isl_multi_aff *isl_multi_aff_pullback_multi_aff(
347 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
349 __isl_give isl_multi_aff *isl_multi_aff_move_dims(__isl_take isl_multi_aff *ma,
350 enum isl_dim_type dst_type, unsigned dst_pos,
351 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
353 __isl_give isl_set *isl_multi_aff_lex_le_set(__isl_take isl_multi_aff *ma1,
354 __isl_take isl_multi_aff *ma2);
355 __isl_give isl_set *isl_multi_aff_lex_ge_set(__isl_take isl_multi_aff *ma1,
356 __isl_take isl_multi_aff *ma2);
358 __isl_give char *isl_multi_aff_to_str(__isl_keep isl_multi_aff *aff);
359 __isl_give isl_printer *isl_printer_print_multi_aff(__isl_take isl_printer *p,
360 __isl_keep isl_multi_aff *maff);
362 __isl_give isl_multi_aff *isl_multi_aff_read_from_str(isl_ctx *ctx,
363 const char *str);
364 void isl_multi_aff_dump(__isl_keep isl_multi_aff *maff);
366 ISL_DECLARE_MULTI(pw_aff)
367 ISL_DECLARE_MULTI_NEG(pw_aff)
369 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_zero(__isl_take isl_space *space);
370 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_identity(
371 __isl_take isl_space *space);
372 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_range_map(
373 __isl_take isl_space *space);
374 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_project_out_map(
375 __isl_take isl_space *space, enum isl_dim_type type,
376 unsigned first, unsigned n);
377 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_multi_aff(
378 __isl_take isl_multi_aff *ma);
379 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_pw_aff(
380 __isl_take isl_pw_aff *pa);
381 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_alloc(__isl_take isl_set *set,
382 __isl_take isl_multi_aff *maff);
383 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_copy(
384 __isl_keep isl_pw_multi_aff *pma);
385 __isl_null isl_pw_multi_aff *isl_pw_multi_aff_free(
386 __isl_take isl_pw_multi_aff *pma);
388 unsigned isl_pw_multi_aff_dim(__isl_keep isl_pw_multi_aff *pma,
389 enum isl_dim_type type);
390 __isl_give isl_pw_aff *isl_pw_multi_aff_get_pw_aff(
391 __isl_keep isl_pw_multi_aff *pma, int pos);
392 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_pw_aff(
393 __isl_take isl_pw_multi_aff *pma, unsigned pos,
394 __isl_take isl_pw_aff *pa);
396 isl_ctx *isl_pw_multi_aff_get_ctx(__isl_keep isl_pw_multi_aff *pma);
397 __isl_give isl_space *isl_pw_multi_aff_get_domain_space(
398 __isl_keep isl_pw_multi_aff *pma);
399 __isl_give isl_space *isl_pw_multi_aff_get_space(
400 __isl_keep isl_pw_multi_aff *pma);
401 int isl_pw_multi_aff_has_tuple_name(__isl_keep isl_pw_multi_aff *pma,
402 enum isl_dim_type type);
403 const char *isl_pw_multi_aff_get_tuple_name(__isl_keep isl_pw_multi_aff *pma,
404 enum isl_dim_type type);
405 __isl_give isl_id *isl_pw_multi_aff_get_tuple_id(
406 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type);
407 int isl_pw_multi_aff_has_tuple_id(__isl_keep isl_pw_multi_aff *pma,
408 enum isl_dim_type type);
409 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_tuple_id(
410 __isl_take isl_pw_multi_aff *pma,
411 enum isl_dim_type type, __isl_take isl_id *id);
412 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_reset_tuple_id(
413 __isl_take isl_pw_multi_aff *pma, enum isl_dim_type type);
414 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_reset_user(
415 __isl_take isl_pw_multi_aff *pma);
417 int isl_pw_multi_aff_find_dim_by_name(__isl_keep isl_pw_multi_aff *pma,
418 enum isl_dim_type type, const char *name);
420 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_drop_dims(
421 __isl_take isl_pw_multi_aff *pma,
422 enum isl_dim_type type, unsigned first, unsigned n);
424 __isl_give isl_set *isl_pw_multi_aff_domain(__isl_take isl_pw_multi_aff *pma);
426 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_empty(__isl_take isl_space *space);
427 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_domain(
428 __isl_take isl_set *set);
430 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_multi_val_on_domain(
431 __isl_take isl_set *domain, __isl_take isl_multi_val *mv);
433 const char *isl_pw_multi_aff_get_dim_name(__isl_keep isl_pw_multi_aff *pma,
434 enum isl_dim_type type, unsigned pos);
435 __isl_give isl_id *isl_pw_multi_aff_get_dim_id(
436 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type,
437 unsigned pos);
438 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_dim_id(
439 __isl_take isl_pw_multi_aff *pma,
440 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
442 int isl_pw_multi_aff_plain_is_equal(__isl_keep isl_pw_multi_aff *pma1,
443 __isl_keep isl_pw_multi_aff *pma2);
445 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_fix_si(
446 __isl_take isl_pw_multi_aff *pma, enum isl_dim_type type,
447 unsigned pos, int value);
449 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_add(
450 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
452 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_neg(
453 __isl_take isl_pw_multi_aff *pma);
455 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_add(
456 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
457 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_sub(
458 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
460 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_scale_val(
461 __isl_take isl_pw_multi_aff *pma, __isl_take isl_val *v);
462 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_scale_down_val(
463 __isl_take isl_pw_multi_aff *pma, __isl_take isl_val *v);
464 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_scale_multi_val(
465 __isl_take isl_pw_multi_aff *pma, __isl_take isl_multi_val *mv);
467 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmin(
468 __isl_take isl_pw_multi_aff *pma1,
469 __isl_take isl_pw_multi_aff *pma2);
470 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmax(
471 __isl_take isl_pw_multi_aff *pma1,
472 __isl_take isl_pw_multi_aff *pma2);
474 __isl_give isl_multi_aff *isl_multi_aff_flatten_domain(
475 __isl_take isl_multi_aff *ma);
477 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_range_product(
478 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
479 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_flat_range_product(
480 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
481 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_product(
482 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
484 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_params(
485 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
486 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_domain(
487 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
488 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_subtract_domain(
489 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
491 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_project_domain_on_params(
492 __isl_take isl_pw_multi_aff *pma);
494 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_align_params(
495 __isl_take isl_pw_multi_aff *pma, __isl_take isl_space *model);
497 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_coalesce(
498 __isl_take isl_pw_multi_aff *pma);
499 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist_params(
500 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
501 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist(
502 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
504 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_pullback_multi_aff(
505 __isl_take isl_pw_multi_aff *pma, __isl_take isl_multi_aff *ma);
506 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_pullback_pw_multi_aff(
507 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
509 int isl_pw_multi_aff_foreach_piece(__isl_keep isl_pw_multi_aff *pma,
510 int (*fn)(__isl_take isl_set *set, __isl_take isl_multi_aff *maff,
511 void *user), void *user);
513 __isl_give isl_map *isl_map_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
514 __isl_give isl_set *isl_set_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
516 __isl_give isl_printer *isl_printer_print_pw_multi_aff(__isl_take isl_printer *p,
517 __isl_keep isl_pw_multi_aff *pma);
519 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_set(__isl_take isl_set *set);
520 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_map(__isl_take isl_map *map);
522 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_read_from_str(isl_ctx *ctx,
523 const char *str);
524 void isl_pw_multi_aff_dump(__isl_keep isl_pw_multi_aff *pma);
527 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_empty(
528 __isl_take isl_space *space);
529 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_aff(
530 __isl_take isl_aff *aff);
531 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_pw_multi_aff(
532 __isl_take isl_pw_multi_aff *pma);
533 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_domain(
534 __isl_take isl_union_set *uset);
535 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_multi_val_on_domain(
536 __isl_take isl_union_set *domain, __isl_take isl_multi_val *mv);
537 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_copy(
538 __isl_keep isl_union_pw_multi_aff *upma);
539 __isl_null isl_union_pw_multi_aff *isl_union_pw_multi_aff_free(
540 __isl_take isl_union_pw_multi_aff *upma);
542 __isl_give isl_union_pw_multi_aff *isl_union_set_identity_union_pw_multi_aff(
543 __isl_take isl_union_set *uset);
545 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add_pw_multi_aff(
546 __isl_take isl_union_pw_multi_aff *upma,
547 __isl_take isl_pw_multi_aff *pma);
549 isl_ctx *isl_union_pw_multi_aff_get_ctx(
550 __isl_keep isl_union_pw_multi_aff *upma);
551 __isl_give isl_space *isl_union_pw_multi_aff_get_space(
552 __isl_keep isl_union_pw_multi_aff *upma);
554 unsigned isl_union_pw_multi_aff_dim(__isl_keep isl_union_pw_multi_aff *upma,
555 enum isl_dim_type type);
556 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_set_dim_name(
557 __isl_take isl_union_pw_multi_aff *upma,
558 enum isl_dim_type type, unsigned pos, const char *s);
560 int isl_union_pw_multi_aff_find_dim_by_name(
561 __isl_keep isl_union_pw_multi_aff *upma, enum isl_dim_type type,
562 const char *name);
564 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_drop_dims(
565 __isl_take isl_union_pw_multi_aff *upma,
566 enum isl_dim_type type, unsigned first, unsigned n);
567 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_reset_user(
568 __isl_take isl_union_pw_multi_aff *upma);
570 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_coalesce(
571 __isl_take isl_union_pw_multi_aff *upma);
572 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_gist_params(
573 __isl_take isl_union_pw_multi_aff *upma, __isl_take isl_set *context);
574 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_gist(
575 __isl_take isl_union_pw_multi_aff *upma,
576 __isl_take isl_union_set *context);
578 __isl_give isl_union_pw_multi_aff *
579 isl_union_pw_multi_aff_pullback_union_pw_multi_aff(
580 __isl_take isl_union_pw_multi_aff *upma1,
581 __isl_take isl_union_pw_multi_aff *upma2);
583 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_align_params(
584 __isl_take isl_union_pw_multi_aff *upma, __isl_take isl_space *model);
586 int isl_union_pw_multi_aff_n_pw_multi_aff(
587 __isl_keep isl_union_pw_multi_aff *upma);
589 int isl_union_pw_multi_aff_foreach_pw_multi_aff(
590 __isl_keep isl_union_pw_multi_aff *upma,
591 int (*fn)(__isl_take isl_pw_multi_aff *pma, void *user), void *user);
592 __isl_give isl_pw_multi_aff *isl_union_pw_multi_aff_extract_pw_multi_aff(
593 __isl_keep isl_union_pw_multi_aff *upma, __isl_take isl_space *space);
595 int isl_union_pw_multi_aff_plain_is_equal(
596 __isl_keep isl_union_pw_multi_aff *upma1,
597 __isl_keep isl_union_pw_multi_aff *upma2);
599 __isl_give isl_union_set *isl_union_pw_multi_aff_domain(
600 __isl_take isl_union_pw_multi_aff *upma);
602 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_neg(
603 __isl_take isl_union_pw_multi_aff *upma);
605 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add(
606 __isl_take isl_union_pw_multi_aff *upma1,
607 __isl_take isl_union_pw_multi_aff *upma2);
608 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_union_add(
609 __isl_take isl_union_pw_multi_aff *upma1,
610 __isl_take isl_union_pw_multi_aff *upma2);
611 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_sub(
612 __isl_take isl_union_pw_multi_aff *upma1,
613 __isl_take isl_union_pw_multi_aff *upma2);
615 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_scale_val(
616 __isl_take isl_union_pw_multi_aff *upma, __isl_take isl_val *val);
617 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_scale_down_val(
618 __isl_take isl_union_pw_multi_aff *upma, __isl_take isl_val *val);
619 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_scale_multi_val(
620 __isl_take isl_union_pw_multi_aff *upma, __isl_take isl_multi_val *mv);
622 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_flat_range_product(
623 __isl_take isl_union_pw_multi_aff *upma1,
624 __isl_take isl_union_pw_multi_aff *upma2);
626 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_intersect_params(
627 __isl_take isl_union_pw_multi_aff *upma, __isl_take isl_set *set);
628 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_intersect_domain(
629 __isl_take isl_union_pw_multi_aff *upma,
630 __isl_take isl_union_set *uset);
631 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_subtract_domain(
632 __isl_take isl_union_pw_multi_aff *upma,
633 __isl_take isl_union_set *uset);
635 __isl_give isl_union_map *isl_union_map_from_union_pw_multi_aff(
636 __isl_take isl_union_pw_multi_aff *upma);
638 __isl_give isl_printer *isl_printer_print_union_pw_multi_aff(
639 __isl_take isl_printer *p, __isl_keep isl_union_pw_multi_aff *upma);
641 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_union_set(
642 __isl_take isl_union_set *uset);
643 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_union_map(
644 __isl_take isl_union_map *umap);
646 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_read_from_str(
647 isl_ctx *ctx, const char *str);
648 void isl_union_pw_multi_aff_dump(__isl_keep isl_union_pw_multi_aff *upma);
649 __isl_give char *isl_union_pw_multi_aff_to_str(
650 __isl_keep isl_union_pw_multi_aff *upma);
652 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_identity(
653 __isl_take isl_space *space);
654 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_from_multi_aff(
655 __isl_take isl_multi_aff *ma);
656 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_from_pw_aff(
657 __isl_take isl_pw_aff *pa);
658 __isl_give isl_set *isl_multi_pw_aff_domain(__isl_take isl_multi_pw_aff *mpa);
659 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_intersect_params(
660 __isl_take isl_multi_pw_aff *mpa, __isl_take isl_set *set);
661 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_intersect_domain(
662 __isl_take isl_multi_pw_aff *mpa, __isl_take isl_set *domain);
664 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_coalesce(
665 __isl_take isl_multi_pw_aff *mpa);
666 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_gist(
667 __isl_take isl_multi_pw_aff *mpa, __isl_take isl_set *set);
668 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_gist_params(
669 __isl_take isl_multi_pw_aff *mpa, __isl_take isl_set *set);
671 int isl_multi_pw_aff_is_equal(__isl_keep isl_multi_pw_aff *mpa1,
672 __isl_keep isl_multi_pw_aff *mpa2);
674 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_pullback_multi_aff(
675 __isl_take isl_multi_pw_aff *mpa, __isl_take isl_multi_aff *ma);
676 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_pullback_pw_multi_aff(
677 __isl_take isl_multi_pw_aff *mpa, __isl_take isl_pw_multi_aff *pma);
678 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_pullback_multi_pw_aff(
679 __isl_take isl_multi_pw_aff *mpa1, __isl_take isl_multi_pw_aff *mpa2);
681 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_move_dims(
682 __isl_take isl_multi_pw_aff *pma,
683 enum isl_dim_type dst_type, unsigned dst_pos,
684 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
686 __isl_give isl_set *isl_set_from_multi_pw_aff(__isl_take isl_multi_pw_aff *mpa);
687 __isl_give isl_map *isl_map_from_multi_pw_aff(__isl_take isl_multi_pw_aff *mpa);
688 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_multi_pw_aff(
689 __isl_take isl_multi_pw_aff *mpa);
690 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_from_pw_multi_aff(
691 __isl_take isl_pw_multi_aff *pma);
693 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_read_from_str(isl_ctx *ctx,
694 const char *str);
695 __isl_give isl_printer *isl_printer_print_multi_pw_aff(
696 __isl_take isl_printer *p, __isl_keep isl_multi_pw_aff *mpa);
697 void isl_multi_pw_aff_dump(__isl_keep isl_multi_pw_aff *mpa);
699 __isl_give isl_union_pw_aff *isl_union_pw_aff_copy(
700 __isl_keep isl_union_pw_aff *upa);
701 __isl_null isl_union_pw_aff *isl_union_pw_aff_free(
702 __isl_take isl_union_pw_aff *upa);
704 isl_ctx *isl_union_pw_aff_get_ctx(__isl_keep isl_union_pw_aff *upa);
705 __isl_give isl_space *isl_union_pw_aff_get_space(
706 __isl_keep isl_union_pw_aff *upa);
708 unsigned isl_union_pw_aff_dim(__isl_keep isl_union_pw_aff *upa,
709 enum isl_dim_type type);
710 __isl_give isl_union_pw_aff *isl_union_pw_aff_set_dim_name(
711 __isl_take isl_union_pw_aff *upa, enum isl_dim_type type,
712 unsigned pos, const char *s);
714 int isl_union_pw_aff_find_dim_by_name(__isl_keep isl_union_pw_aff *upa,
715 enum isl_dim_type type, const char *name);
717 __isl_give isl_union_pw_aff *isl_union_pw_aff_drop_dims(
718 __isl_take isl_union_pw_aff *upa,
719 enum isl_dim_type type, unsigned first, unsigned n);
720 __isl_give isl_union_pw_aff *isl_union_pw_aff_reset_user(
721 __isl_take isl_union_pw_aff *upa);
723 __isl_give isl_union_pw_aff *isl_union_pw_aff_empty(
724 __isl_take isl_space *space);
725 __isl_give isl_union_pw_aff *isl_union_pw_aff_from_pw_aff(
726 __isl_take isl_pw_aff *pa);
727 __isl_give isl_union_pw_aff *isl_union_pw_aff_val_on_domain(
728 __isl_take isl_union_set *domain, __isl_take isl_val *v);
729 __isl_give isl_union_pw_aff *isl_union_pw_aff_add_pw_aff(
730 __isl_take isl_union_pw_aff *upa, __isl_take isl_pw_aff *pa);
732 int isl_union_pw_aff_n_pw_multi_aff(__isl_keep isl_union_pw_aff *upa);
734 int isl_union_pw_aff_foreach_pw_aff(__isl_keep isl_union_pw_aff *upa,
735 int (*fn)(__isl_take isl_pw_aff *ma, void *user), void *user);
736 __isl_give isl_pw_aff *isl_union_pw_aff_extract_pw_aff(
737 __isl_keep isl_union_pw_aff *upa, __isl_take isl_space *space);
739 int isl_union_pw_aff_plain_is_equal(__isl_keep isl_union_pw_aff *upa1,
740 __isl_keep isl_union_pw_aff *upa2);
742 __isl_give isl_union_set *isl_union_pw_aff_domain(
743 __isl_take isl_union_pw_aff *upa);
745 __isl_give isl_union_pw_aff *isl_union_pw_aff_neg(
746 __isl_take isl_union_pw_aff *upa);
748 __isl_give isl_union_pw_aff *isl_union_pw_aff_add(
749 __isl_take isl_union_pw_aff *upa1, __isl_take isl_union_pw_aff *upa2);
750 __isl_give isl_union_pw_aff *isl_union_pw_aff_union_add(
751 __isl_take isl_union_pw_aff *upa1, __isl_take isl_union_pw_aff *upa2);
752 __isl_give isl_union_pw_aff *isl_union_pw_aff_sub(
753 __isl_take isl_union_pw_aff *upa1, __isl_take isl_union_pw_aff *upa2);
755 __isl_give isl_union_pw_aff *isl_union_pw_aff_coalesce(
756 __isl_take isl_union_pw_aff *upa);
757 __isl_give isl_union_pw_aff *isl_union_pw_aff_gist(
758 __isl_take isl_union_pw_aff *upa, __isl_take isl_union_set *context);
759 __isl_give isl_union_pw_aff *isl_union_pw_aff_gist_params(
760 __isl_take isl_union_pw_aff *upa, __isl_take isl_set *context);
762 __isl_give isl_union_pw_aff *isl_union_pw_aff_floor(
763 __isl_take isl_union_pw_aff *upa);
765 __isl_give isl_union_pw_aff *isl_union_pw_aff_scale_val(
766 __isl_take isl_union_pw_aff *upa, __isl_take isl_val *v);
767 __isl_give isl_union_pw_aff *isl_union_pw_aff_scale_down_val(
768 __isl_take isl_union_pw_aff *upa, __isl_take isl_val *v);
770 __isl_give isl_union_pw_aff *isl_union_pw_aff_align_params(
771 __isl_take isl_union_pw_aff *upa, __isl_take isl_space *model);
773 __isl_give isl_union_pw_aff *isl_union_pw_aff_intersect_params(
774 __isl_take isl_union_pw_aff *upa, __isl_take isl_set *set);
775 __isl_give isl_union_pw_aff *isl_union_pw_aff_intersect_domain(
776 __isl_take isl_union_pw_aff *upa, __isl_take isl_union_set *uset);
777 __isl_give isl_union_pw_aff *isl_union_pw_aff_subtract_domain(
778 __isl_take isl_union_pw_aff *upa, __isl_take isl_union_set *uset);
780 __isl_give isl_union_pw_aff *isl_union_pw_aff_set_dim_name(
781 __isl_take isl_union_pw_aff *upa,
782 enum isl_dim_type type, unsigned pos, const char *s);
784 __isl_give char *isl_union_pw_aff_to_str(__isl_keep isl_union_pw_aff *upa);
785 __isl_give isl_printer *isl_printer_print_union_pw_aff(
786 __isl_take isl_printer *p, __isl_keep isl_union_pw_aff *upa);
788 ISL_DECLARE_LIST_FN(union_pw_aff)
789 ISL_DECLARE_LIST_FN(union_pw_multi_aff)
791 #if defined(__cplusplus)
793 #endif
795 #include <isl/dim.h>
797 #endif