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>
13 #if defined(__cplusplus)
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 isl_bool
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 isl_bool
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
,
75 isl_bool
isl_aff_plain_is_equal(__isl_keep isl_aff
*aff1
,
76 __isl_keep isl_aff
*aff2
);
77 isl_bool
isl_aff_plain_is_zero(__isl_keep isl_aff
*aff
);
78 isl_bool
isl_aff_is_nan(__isl_keep isl_aff
*aff
);
80 __isl_give isl_aff
*isl_aff_get_div(__isl_keep isl_aff
*aff
, int pos
);
82 __isl_give isl_aff
*isl_aff_neg(__isl_take isl_aff
*aff
);
83 __isl_give isl_aff
*isl_aff_ceil(__isl_take isl_aff
*aff
);
84 __isl_give isl_aff
*isl_aff_floor(__isl_take isl_aff
*aff
);
85 __isl_give isl_aff
*isl_aff_mod_val(__isl_take isl_aff
*aff
,
86 __isl_take isl_val
*mod
);
88 __isl_give isl_aff
*isl_aff_mul(__isl_take isl_aff
*aff1
,
89 __isl_take isl_aff
*aff2
);
90 __isl_give isl_aff
*isl_aff_div(__isl_take isl_aff
*aff1
,
91 __isl_take isl_aff
*aff2
);
92 __isl_give isl_aff
*isl_aff_add(__isl_take isl_aff
*aff1
,
93 __isl_take isl_aff
*aff2
);
94 __isl_give isl_aff
*isl_aff_sub(__isl_take isl_aff
*aff1
,
95 __isl_take isl_aff
*aff2
);
97 __isl_give isl_aff
*isl_aff_scale_val(__isl_take isl_aff
*aff
,
98 __isl_take isl_val
*v
);
99 __isl_give isl_aff
*isl_aff_scale_down_ui(__isl_take isl_aff
*aff
, unsigned f
);
100 __isl_give isl_aff
*isl_aff_scale_down_val(__isl_take isl_aff
*aff
,
101 __isl_take isl_val
*v
);
103 __isl_give isl_aff
*isl_aff_insert_dims(__isl_take isl_aff
*aff
,
104 enum isl_dim_type type
, unsigned first
, unsigned n
);
105 __isl_give isl_aff
*isl_aff_add_dims(__isl_take isl_aff
*aff
,
106 enum isl_dim_type type
, unsigned n
);
107 __isl_give isl_aff
*isl_aff_move_dims(__isl_take isl_aff
*aff
,
108 enum isl_dim_type dst_type
, unsigned dst_pos
,
109 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
110 __isl_give isl_aff
*isl_aff_drop_dims(__isl_take isl_aff
*aff
,
111 enum isl_dim_type type
, unsigned first
, unsigned n
);
112 __isl_give isl_aff
*isl_aff_project_domain_on_params(__isl_take isl_aff
*aff
);
114 __isl_give isl_aff
*isl_aff_align_params(__isl_take isl_aff
*aff
,
115 __isl_take isl_space
*model
);
117 __isl_give isl_aff
*isl_aff_gist(__isl_take isl_aff
*aff
,
118 __isl_take isl_set
*context
);
119 __isl_give isl_aff
*isl_aff_gist_params(__isl_take isl_aff
*aff
,
120 __isl_take isl_set
*context
);
122 __isl_give isl_aff
*isl_aff_pullback_aff(__isl_take isl_aff
*aff1
,
123 __isl_take isl_aff
*aff2
);
124 __isl_give isl_aff
*isl_aff_pullback_multi_aff(__isl_take isl_aff
*aff
,
125 __isl_take isl_multi_aff
*ma
);
127 __isl_give isl_basic_set
*isl_aff_zero_basic_set(__isl_take isl_aff
*aff
);
128 __isl_give isl_basic_set
*isl_aff_neg_basic_set(__isl_take isl_aff
*aff
);
130 __isl_give isl_basic_set
*isl_aff_le_basic_set(__isl_take isl_aff
*aff1
,
131 __isl_take isl_aff
*aff2
);
132 __isl_give isl_basic_set
*isl_aff_ge_basic_set(__isl_take isl_aff
*aff1
,
133 __isl_take isl_aff
*aff2
);
135 __isl_give isl_aff
*isl_aff_read_from_str(isl_ctx
*ctx
, const char *str
);
136 __isl_give isl_printer
*isl_printer_print_aff(__isl_take isl_printer
*p
,
137 __isl_keep isl_aff
*aff
);
138 void isl_aff_dump(__isl_keep isl_aff
*aff
);
140 isl_ctx
*isl_pw_aff_get_ctx(__isl_keep isl_pw_aff
*pwaff
);
141 __isl_give isl_space
*isl_pw_aff_get_domain_space(__isl_keep isl_pw_aff
*pwaff
);
142 __isl_give isl_space
*isl_pw_aff_get_space(__isl_keep isl_pw_aff
*pwaff
);
144 __isl_give isl_pw_aff
*isl_pw_aff_from_aff(__isl_take isl_aff
*aff
);
145 __isl_give isl_pw_aff
*isl_pw_aff_empty(__isl_take isl_space
*dim
);
146 __isl_give isl_pw_aff
*isl_pw_aff_alloc(__isl_take isl_set
*set
,
147 __isl_take isl_aff
*aff
);
148 __isl_give isl_pw_aff
*isl_pw_aff_zero_on_domain(
149 __isl_take isl_local_space
*ls
);
150 __isl_give isl_pw_aff
*isl_pw_aff_var_on_domain(__isl_take isl_local_space
*ls
,
151 enum isl_dim_type type
, unsigned pos
);
152 __isl_give isl_pw_aff
*isl_pw_aff_nan_on_domain(__isl_take isl_local_space
*ls
);
153 __isl_give isl_pw_aff
*isl_pw_aff_val_on_domain(__isl_take isl_set
*domain
,
154 __isl_take isl_val
*v
);
156 __isl_give isl_pw_aff
*isl_set_indicator_function(__isl_take isl_set
*set
);
158 const char *isl_pw_aff_get_dim_name(__isl_keep isl_pw_aff
*pa
,
159 enum isl_dim_type type
, unsigned pos
);
160 isl_bool
isl_pw_aff_has_dim_id(__isl_keep isl_pw_aff
*pa
,
161 enum isl_dim_type type
, unsigned pos
);
162 __isl_give isl_id
*isl_pw_aff_get_dim_id(__isl_keep isl_pw_aff
*pa
,
163 enum isl_dim_type type
, unsigned pos
);
164 __isl_give isl_pw_aff
*isl_pw_aff_set_dim_id(__isl_take isl_pw_aff
*pma
,
165 enum isl_dim_type type
, unsigned pos
, __isl_take isl_id
*id
);
167 int isl_pw_aff_find_dim_by_name(__isl_keep isl_pw_aff
*pa
,
168 enum isl_dim_type type
, const char *name
);
170 isl_bool
isl_pw_aff_is_empty(__isl_keep isl_pw_aff
*pwaff
);
171 isl_bool
isl_pw_aff_involves_nan(__isl_keep isl_pw_aff
*pa
);
172 int isl_pw_aff_plain_cmp(__isl_keep isl_pw_aff
*pa1
,
173 __isl_keep isl_pw_aff
*pa2
);
174 isl_bool
isl_pw_aff_plain_is_equal(__isl_keep isl_pw_aff
*pwaff1
,
175 __isl_keep isl_pw_aff
*pwaff2
);
176 int isl_pw_aff_is_equal(__isl_keep isl_pw_aff
*pa1
, __isl_keep isl_pw_aff
*pa2
);
178 __isl_give isl_pw_aff
*isl_pw_aff_union_min(__isl_take isl_pw_aff
*pwaff1
,
179 __isl_take isl_pw_aff
*pwaff2
);
180 __isl_give isl_pw_aff
*isl_pw_aff_union_max(__isl_take isl_pw_aff
*pwaff1
,
181 __isl_take isl_pw_aff
*pwaff2
);
182 __isl_give isl_pw_aff
*isl_pw_aff_union_add(__isl_take isl_pw_aff
*pwaff1
,
183 __isl_take isl_pw_aff
*pwaff2
);
185 __isl_give isl_pw_aff
*isl_pw_aff_copy(__isl_keep isl_pw_aff
*pwaff
);
186 __isl_null isl_pw_aff
*isl_pw_aff_free(__isl_take isl_pw_aff
*pwaff
);
188 unsigned isl_pw_aff_dim(__isl_keep isl_pw_aff
*pwaff
, enum isl_dim_type type
);
189 isl_bool
isl_pw_aff_involves_dims(__isl_keep isl_pw_aff
*pwaff
,
190 enum isl_dim_type type
, unsigned first
, unsigned n
);
192 isl_bool
isl_pw_aff_is_cst(__isl_keep isl_pw_aff
*pwaff
);
194 __isl_give isl_pw_aff
*isl_pw_aff_align_params(__isl_take isl_pw_aff
*pwaff
,
195 __isl_take isl_space
*model
);
197 isl_bool
isl_pw_aff_has_tuple_id(__isl_keep isl_pw_aff
*pa
,
198 enum isl_dim_type type
);
199 __isl_give isl_id
*isl_pw_aff_get_tuple_id(__isl_keep isl_pw_aff
*pa
,
200 enum isl_dim_type type
);
201 __isl_give isl_pw_aff
*isl_pw_aff_set_tuple_id(__isl_take isl_pw_aff
*pwaff
,
202 enum isl_dim_type type
, __isl_take isl_id
*id
);
203 __isl_give isl_pw_aff
*isl_pw_aff_reset_tuple_id(__isl_take isl_pw_aff
*pa
,
204 enum isl_dim_type type
);
205 __isl_give isl_pw_aff
*isl_pw_aff_reset_user(__isl_take isl_pw_aff
*pa
);
207 __isl_give isl_set
*isl_pw_aff_params(__isl_take isl_pw_aff
*pwa
);
208 __isl_give isl_set
*isl_pw_aff_domain(__isl_take isl_pw_aff
*pwaff
);
209 __isl_give isl_pw_aff
*isl_pw_aff_from_range(__isl_take isl_pw_aff
*pwa
);
211 __isl_give isl_pw_aff
*isl_pw_aff_min(__isl_take isl_pw_aff
*pwaff1
,
212 __isl_take isl_pw_aff
*pwaff2
);
213 __isl_give isl_pw_aff
*isl_pw_aff_max(__isl_take isl_pw_aff
*pwaff1
,
214 __isl_take isl_pw_aff
*pwaff2
);
215 __isl_give isl_pw_aff
*isl_pw_aff_mul(__isl_take isl_pw_aff
*pwaff1
,
216 __isl_take isl_pw_aff
*pwaff2
);
217 __isl_give isl_pw_aff
*isl_pw_aff_div(__isl_take isl_pw_aff
*pa1
,
218 __isl_take isl_pw_aff
*pa2
);
219 __isl_give isl_pw_aff
*isl_pw_aff_add(__isl_take isl_pw_aff
*pwaff1
,
220 __isl_take isl_pw_aff
*pwaff2
);
221 __isl_give isl_pw_aff
*isl_pw_aff_sub(__isl_take isl_pw_aff
*pwaff1
,
222 __isl_take isl_pw_aff
*pwaff2
);
223 __isl_give isl_pw_aff
*isl_pw_aff_neg(__isl_take isl_pw_aff
*pwaff
);
224 __isl_give isl_pw_aff
*isl_pw_aff_ceil(__isl_take isl_pw_aff
*pwaff
);
225 __isl_give isl_pw_aff
*isl_pw_aff_floor(__isl_take isl_pw_aff
*pwaff
);
226 __isl_give isl_pw_aff
*isl_pw_aff_mod_val(__isl_take isl_pw_aff
*pa
,
227 __isl_take isl_val
*mod
);
228 __isl_give isl_pw_aff
*isl_pw_aff_tdiv_q(__isl_take isl_pw_aff
*pa1
,
229 __isl_take isl_pw_aff
*pa2
);
230 __isl_give isl_pw_aff
*isl_pw_aff_tdiv_r(__isl_take isl_pw_aff
*pa1
,
231 __isl_take isl_pw_aff
*pa2
);
233 __isl_give isl_pw_aff
*isl_pw_aff_intersect_params(__isl_take isl_pw_aff
*pa
,
234 __isl_take isl_set
*set
);
235 __isl_give isl_pw_aff
*isl_pw_aff_intersect_domain(__isl_take isl_pw_aff
*pa
,
236 __isl_take isl_set
*set
);
237 __isl_give isl_pw_aff
*isl_pw_aff_subtract_domain(__isl_take isl_pw_aff
*pa
,
238 __isl_take isl_set
*set
);
240 __isl_give isl_pw_aff
*isl_pw_aff_cond(__isl_take isl_pw_aff
*cond
,
241 __isl_take isl_pw_aff
*pwaff_true
, __isl_take isl_pw_aff
*pwaff_false
);
243 __isl_give isl_pw_aff
*isl_pw_aff_scale_val(__isl_take isl_pw_aff
*pa
,
244 __isl_take isl_val
*v
);
245 __isl_give isl_pw_aff
*isl_pw_aff_scale_down_val(__isl_take isl_pw_aff
*pa
,
246 __isl_take isl_val
*f
);
248 __isl_give isl_pw_aff
*isl_pw_aff_insert_dims(__isl_take isl_pw_aff
*pwaff
,
249 enum isl_dim_type type
, unsigned first
, unsigned n
);
250 __isl_give isl_pw_aff
*isl_pw_aff_add_dims(__isl_take isl_pw_aff
*pwaff
,
251 enum isl_dim_type type
, unsigned n
);
252 __isl_give isl_pw_aff
*isl_pw_aff_move_dims(__isl_take isl_pw_aff
*pa
,
253 enum isl_dim_type dst_type
, unsigned dst_pos
,
254 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
255 __isl_give isl_pw_aff
*isl_pw_aff_drop_dims(__isl_take isl_pw_aff
*pwaff
,
256 enum isl_dim_type type
, unsigned first
, unsigned n
);
258 __isl_give isl_pw_aff
*isl_pw_aff_coalesce(__isl_take isl_pw_aff
*pwqp
);
259 __isl_give isl_pw_aff
*isl_pw_aff_gist(__isl_take isl_pw_aff
*pwaff
,
260 __isl_take isl_set
*context
);
261 __isl_give isl_pw_aff
*isl_pw_aff_gist_params(__isl_take isl_pw_aff
*pwaff
,
262 __isl_take isl_set
*context
);
264 __isl_give isl_pw_aff
*isl_pw_aff_pullback_multi_aff(
265 __isl_take isl_pw_aff
*pa
, __isl_take isl_multi_aff
*ma
);
266 __isl_give isl_pw_aff
*isl_pw_aff_pullback_pw_multi_aff(
267 __isl_take isl_pw_aff
*pa
, __isl_take isl_pw_multi_aff
*pma
);
268 __isl_give isl_pw_aff
*isl_pw_aff_pullback_multi_pw_aff(
269 __isl_take isl_pw_aff
*pa
, __isl_take isl_multi_pw_aff
*mpa
);
271 int isl_pw_aff_n_piece(__isl_keep isl_pw_aff
*pwaff
);
272 isl_stat
isl_pw_aff_foreach_piece(__isl_keep isl_pw_aff
*pwaff
,
273 isl_stat (*fn
)(__isl_take isl_set
*set
, __isl_take isl_aff
*aff
,
274 void *user
), void *user
);
276 __isl_give isl_set
*isl_set_from_pw_aff(__isl_take isl_pw_aff
*pwaff
);
277 __isl_give isl_map
*isl_map_from_pw_aff(__isl_take isl_pw_aff
*pwaff
);
279 __isl_give isl_set
*isl_pw_aff_pos_set(__isl_take isl_pw_aff
*pa
);
280 __isl_give isl_set
*isl_pw_aff_nonneg_set(__isl_take isl_pw_aff
*pwaff
);
281 __isl_give isl_set
*isl_pw_aff_zero_set(__isl_take isl_pw_aff
*pwaff
);
282 __isl_give isl_set
*isl_pw_aff_non_zero_set(__isl_take isl_pw_aff
*pwaff
);
284 __isl_give isl_set
*isl_pw_aff_eq_set(__isl_take isl_pw_aff
*pwaff1
,
285 __isl_take isl_pw_aff
*pwaff2
);
286 __isl_give isl_set
*isl_pw_aff_ne_set(__isl_take isl_pw_aff
*pwaff1
,
287 __isl_take isl_pw_aff
*pwaff2
);
288 __isl_give isl_set
*isl_pw_aff_le_set(__isl_take isl_pw_aff
*pwaff1
,
289 __isl_take isl_pw_aff
*pwaff2
);
290 __isl_give isl_set
*isl_pw_aff_lt_set(__isl_take isl_pw_aff
*pwaff1
,
291 __isl_take isl_pw_aff
*pwaff2
);
292 __isl_give isl_set
*isl_pw_aff_ge_set(__isl_take isl_pw_aff
*pwaff1
,
293 __isl_take isl_pw_aff
*pwaff2
);
294 __isl_give isl_set
*isl_pw_aff_gt_set(__isl_take isl_pw_aff
*pwaff1
,
295 __isl_take isl_pw_aff
*pwaff2
);
297 __isl_give isl_map
*isl_pw_aff_eq_map(__isl_take isl_pw_aff
*pa1
,
298 __isl_take isl_pw_aff
*pa2
);
299 __isl_give isl_map
*isl_pw_aff_lt_map(__isl_take isl_pw_aff
*pa1
,
300 __isl_take isl_pw_aff
*pa2
);
301 __isl_give isl_map
*isl_pw_aff_gt_map(__isl_take isl_pw_aff
*pa1
,
302 __isl_take isl_pw_aff
*pa2
);
304 __isl_give isl_pw_aff
*isl_pw_aff_read_from_str(isl_ctx
*ctx
, const char *str
);
305 __isl_give isl_printer
*isl_printer_print_pw_aff(__isl_take isl_printer
*p
,
306 __isl_keep isl_pw_aff
*pwaff
);
307 void isl_pw_aff_dump(__isl_keep isl_pw_aff
*pwaff
);
309 __isl_give isl_pw_aff
*isl_pw_aff_list_min(__isl_take isl_pw_aff_list
*list
);
310 __isl_give isl_pw_aff
*isl_pw_aff_list_max(__isl_take isl_pw_aff_list
*list
);
312 __isl_give isl_set
*isl_pw_aff_list_eq_set(__isl_take isl_pw_aff_list
*list1
,
313 __isl_take isl_pw_aff_list
*list2
);
314 __isl_give isl_set
*isl_pw_aff_list_ne_set(__isl_take isl_pw_aff_list
*list1
,
315 __isl_take isl_pw_aff_list
*list2
);
316 __isl_give isl_set
*isl_pw_aff_list_le_set(__isl_take isl_pw_aff_list
*list1
,
317 __isl_take isl_pw_aff_list
*list2
);
318 __isl_give isl_set
*isl_pw_aff_list_lt_set(__isl_take isl_pw_aff_list
*list1
,
319 __isl_take isl_pw_aff_list
*list2
);
320 __isl_give isl_set
*isl_pw_aff_list_ge_set(__isl_take isl_pw_aff_list
*list1
,
321 __isl_take isl_pw_aff_list
*list2
);
322 __isl_give isl_set
*isl_pw_aff_list_gt_set(__isl_take isl_pw_aff_list
*list1
,
323 __isl_take isl_pw_aff_list
*list2
);
325 ISL_DECLARE_MULTI(aff
)
326 ISL_DECLARE_MULTI_NEG(aff
)
327 ISL_DECLARE_MULTI_DIMS(aff
)
328 ISL_DECLARE_MULTI_WITH_DOMAIN(aff
)
330 __isl_give isl_multi_aff
*isl_multi_aff_from_aff(__isl_take isl_aff
*aff
);
331 __isl_give isl_multi_aff
*isl_multi_aff_identity(__isl_take isl_space
*space
);
332 __isl_give isl_multi_aff
*isl_multi_aff_domain_map(__isl_take isl_space
*space
);
333 __isl_give isl_multi_aff
*isl_multi_aff_range_map(__isl_take isl_space
*space
);
334 __isl_give isl_multi_aff
*isl_multi_aff_project_out_map(
335 __isl_take isl_space
*space
, enum isl_dim_type type
,
336 unsigned first
, unsigned n
);
338 __isl_give isl_multi_aff
*isl_multi_aff_multi_val_on_space(
339 __isl_take isl_space
*space
, __isl_take isl_multi_val
*mv
);
341 __isl_give isl_multi_aff
*isl_multi_aff_floor(__isl_take isl_multi_aff
*ma
);
343 __isl_give isl_multi_aff
*isl_multi_aff_add(__isl_take isl_multi_aff
*maff1
,
344 __isl_take isl_multi_aff
*maff2
);
346 __isl_give isl_multi_aff
*isl_multi_aff_product(
347 __isl_take isl_multi_aff
*ma1
, __isl_take isl_multi_aff
*ma2
);
349 __isl_give isl_multi_aff
*isl_multi_aff_gist_params(
350 __isl_take isl_multi_aff
*maff
, __isl_take isl_set
*context
);
351 __isl_give isl_multi_aff
*isl_multi_aff_gist(__isl_take isl_multi_aff
*maff
,
352 __isl_take isl_set
*context
);
354 __isl_give isl_multi_aff
*isl_multi_aff_lift(__isl_take isl_multi_aff
*maff
,
355 __isl_give isl_local_space
**ls
);
357 __isl_give isl_multi_aff
*isl_multi_aff_pullback_multi_aff(
358 __isl_take isl_multi_aff
*ma1
, __isl_take isl_multi_aff
*ma2
);
360 __isl_give isl_multi_aff
*isl_multi_aff_move_dims(__isl_take isl_multi_aff
*ma
,
361 enum isl_dim_type dst_type
, unsigned dst_pos
,
362 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
364 __isl_give isl_set
*isl_multi_aff_lex_le_set(__isl_take isl_multi_aff
*ma1
,
365 __isl_take isl_multi_aff
*ma2
);
366 __isl_give isl_set
*isl_multi_aff_lex_ge_set(__isl_take isl_multi_aff
*ma1
,
367 __isl_take isl_multi_aff
*ma2
);
369 __isl_give
char *isl_multi_aff_to_str(__isl_keep isl_multi_aff
*aff
);
370 __isl_give isl_printer
*isl_printer_print_multi_aff(__isl_take isl_printer
*p
,
371 __isl_keep isl_multi_aff
*maff
);
373 __isl_give isl_multi_aff
*isl_multi_aff_read_from_str(isl_ctx
*ctx
,
375 void isl_multi_aff_dump(__isl_keep isl_multi_aff
*maff
);
377 ISL_DECLARE_MULTI(pw_aff
)
378 ISL_DECLARE_MULTI_NEG(pw_aff
)
379 ISL_DECLARE_MULTI_DIMS(pw_aff
)
380 ISL_DECLARE_MULTI_WITH_DOMAIN(pw_aff
)
382 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_zero(__isl_take isl_space
*space
);
383 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_identity(
384 __isl_take isl_space
*space
);
385 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_range_map(
386 __isl_take isl_space
*space
);
387 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_project_out_map(
388 __isl_take isl_space
*space
, enum isl_dim_type type
,
389 unsigned first
, unsigned n
);
390 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_multi_aff(
391 __isl_take isl_multi_aff
*ma
);
392 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_pw_aff(
393 __isl_take isl_pw_aff
*pa
);
394 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_alloc(__isl_take isl_set
*set
,
395 __isl_take isl_multi_aff
*maff
);
396 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_copy(
397 __isl_keep isl_pw_multi_aff
*pma
);
398 __isl_null isl_pw_multi_aff
*isl_pw_multi_aff_free(
399 __isl_take isl_pw_multi_aff
*pma
);
401 unsigned isl_pw_multi_aff_dim(__isl_keep isl_pw_multi_aff
*pma
,
402 enum isl_dim_type type
);
403 __isl_give isl_pw_aff
*isl_pw_multi_aff_get_pw_aff(
404 __isl_keep isl_pw_multi_aff
*pma
, int pos
);
405 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_set_pw_aff(
406 __isl_take isl_pw_multi_aff
*pma
, unsigned pos
,
407 __isl_take isl_pw_aff
*pa
);
409 isl_ctx
*isl_pw_multi_aff_get_ctx(__isl_keep isl_pw_multi_aff
*pma
);
410 __isl_give isl_space
*isl_pw_multi_aff_get_domain_space(
411 __isl_keep isl_pw_multi_aff
*pma
);
412 __isl_give isl_space
*isl_pw_multi_aff_get_space(
413 __isl_keep isl_pw_multi_aff
*pma
);
414 isl_bool
isl_pw_multi_aff_has_tuple_name(__isl_keep isl_pw_multi_aff
*pma
,
415 enum isl_dim_type type
);
416 const char *isl_pw_multi_aff_get_tuple_name(__isl_keep isl_pw_multi_aff
*pma
,
417 enum isl_dim_type type
);
418 __isl_give isl_id
*isl_pw_multi_aff_get_tuple_id(
419 __isl_keep isl_pw_multi_aff
*pma
, enum isl_dim_type type
);
420 isl_bool
isl_pw_multi_aff_has_tuple_id(__isl_keep isl_pw_multi_aff
*pma
,
421 enum isl_dim_type type
);
422 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_set_tuple_id(
423 __isl_take isl_pw_multi_aff
*pma
,
424 enum isl_dim_type type
, __isl_take isl_id
*id
);
425 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_reset_tuple_id(
426 __isl_take isl_pw_multi_aff
*pma
, enum isl_dim_type type
);
427 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_reset_user(
428 __isl_take isl_pw_multi_aff
*pma
);
430 int isl_pw_multi_aff_find_dim_by_name(__isl_keep isl_pw_multi_aff
*pma
,
431 enum isl_dim_type type
, const char *name
);
433 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_drop_dims(
434 __isl_take isl_pw_multi_aff
*pma
,
435 enum isl_dim_type type
, unsigned first
, unsigned n
);
437 __isl_give isl_set
*isl_pw_multi_aff_domain(__isl_take isl_pw_multi_aff
*pma
);
439 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_empty(__isl_take isl_space
*space
);
440 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_domain(
441 __isl_take isl_set
*set
);
443 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_multi_val_on_domain(
444 __isl_take isl_set
*domain
, __isl_take isl_multi_val
*mv
);
446 const char *isl_pw_multi_aff_get_dim_name(__isl_keep isl_pw_multi_aff
*pma
,
447 enum isl_dim_type type
, unsigned pos
);
448 __isl_give isl_id
*isl_pw_multi_aff_get_dim_id(
449 __isl_keep isl_pw_multi_aff
*pma
, enum isl_dim_type type
,
451 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_set_dim_id(
452 __isl_take isl_pw_multi_aff
*pma
,
453 enum isl_dim_type type
, unsigned pos
, __isl_take isl_id
*id
);
455 isl_bool
isl_pw_multi_aff_plain_is_equal(__isl_keep isl_pw_multi_aff
*pma1
,
456 __isl_keep isl_pw_multi_aff
*pma2
);
458 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_fix_si(
459 __isl_take isl_pw_multi_aff
*pma
, enum isl_dim_type type
,
460 unsigned pos
, int value
);
462 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_union_add(
463 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
465 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_neg(
466 __isl_take isl_pw_multi_aff
*pma
);
468 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_add(
469 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
470 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_sub(
471 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
473 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_scale_val(
474 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_val
*v
);
475 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_scale_down_val(
476 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_val
*v
);
477 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_scale_multi_val(
478 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_multi_val
*mv
);
480 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_union_lexmin(
481 __isl_take isl_pw_multi_aff
*pma1
,
482 __isl_take isl_pw_multi_aff
*pma2
);
483 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_union_lexmax(
484 __isl_take isl_pw_multi_aff
*pma1
,
485 __isl_take isl_pw_multi_aff
*pma2
);
487 __isl_give isl_multi_aff
*isl_multi_aff_flatten_domain(
488 __isl_take isl_multi_aff
*ma
);
490 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_range_product(
491 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
492 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_flat_range_product(
493 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
494 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_product(
495 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
497 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_intersect_params(
498 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
499 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_intersect_domain(
500 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
501 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_subtract_domain(
502 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
504 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_project_domain_on_params(
505 __isl_take isl_pw_multi_aff
*pma
);
507 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_align_params(
508 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_space
*model
);
510 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_coalesce(
511 __isl_take isl_pw_multi_aff
*pma
);
512 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_gist_params(
513 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
514 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_gist(
515 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_set
*set
);
517 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_pullback_multi_aff(
518 __isl_take isl_pw_multi_aff
*pma
, __isl_take isl_multi_aff
*ma
);
519 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_pullback_pw_multi_aff(
520 __isl_take isl_pw_multi_aff
*pma1
, __isl_take isl_pw_multi_aff
*pma2
);
522 isl_stat
isl_pw_multi_aff_foreach_piece(__isl_keep isl_pw_multi_aff
*pma
,
523 isl_stat (*fn
)(__isl_take isl_set
*set
, __isl_take isl_multi_aff
*maff
,
524 void *user
), void *user
);
526 __isl_give isl_map
*isl_map_from_pw_multi_aff(__isl_take isl_pw_multi_aff
*pma
);
527 __isl_give isl_set
*isl_set_from_pw_multi_aff(__isl_take isl_pw_multi_aff
*pma
);
529 __isl_give isl_printer
*isl_printer_print_pw_multi_aff(__isl_take isl_printer
*p
,
530 __isl_keep isl_pw_multi_aff
*pma
);
532 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_set(__isl_take isl_set
*set
);
533 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_map(__isl_take isl_map
*map
);
535 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_read_from_str(isl_ctx
*ctx
,
537 void isl_pw_multi_aff_dump(__isl_keep isl_pw_multi_aff
*pma
);
540 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_empty(
541 __isl_take isl_space
*space
);
542 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_aff(
543 __isl_take isl_aff
*aff
);
544 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_pw_multi_aff(
545 __isl_take isl_pw_multi_aff
*pma
);
546 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_domain(
547 __isl_take isl_union_set
*uset
);
548 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_multi_val_on_domain(
549 __isl_take isl_union_set
*domain
, __isl_take isl_multi_val
*mv
);
550 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_copy(
551 __isl_keep isl_union_pw_multi_aff
*upma
);
552 __isl_null isl_union_pw_multi_aff
*isl_union_pw_multi_aff_free(
553 __isl_take isl_union_pw_multi_aff
*upma
);
555 __isl_give isl_union_pw_multi_aff
*isl_union_set_identity_union_pw_multi_aff(
556 __isl_take isl_union_set
*uset
);
558 __isl_give isl_union_pw_aff
*isl_union_pw_multi_aff_get_union_pw_aff(
559 __isl_keep isl_union_pw_multi_aff
*upma
, int pos
);
561 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_add_pw_multi_aff(
562 __isl_take isl_union_pw_multi_aff
*upma
,
563 __isl_take isl_pw_multi_aff
*pma
);
565 isl_ctx
*isl_union_pw_multi_aff_get_ctx(
566 __isl_keep isl_union_pw_multi_aff
*upma
);
567 __isl_give isl_space
*isl_union_pw_multi_aff_get_space(
568 __isl_keep isl_union_pw_multi_aff
*upma
);
570 unsigned isl_union_pw_multi_aff_dim(__isl_keep isl_union_pw_multi_aff
*upma
,
571 enum isl_dim_type type
);
572 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_set_dim_name(
573 __isl_take isl_union_pw_multi_aff
*upma
,
574 enum isl_dim_type type
, unsigned pos
, const char *s
);
576 int isl_union_pw_multi_aff_find_dim_by_name(
577 __isl_keep isl_union_pw_multi_aff
*upma
, enum isl_dim_type type
,
580 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_drop_dims(
581 __isl_take isl_union_pw_multi_aff
*upma
,
582 enum isl_dim_type type
, unsigned first
, unsigned n
);
583 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_reset_user(
584 __isl_take isl_union_pw_multi_aff
*upma
);
586 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_coalesce(
587 __isl_take isl_union_pw_multi_aff
*upma
);
588 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_gist_params(
589 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_set
*context
);
590 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_gist(
591 __isl_take isl_union_pw_multi_aff
*upma
,
592 __isl_take isl_union_set
*context
);
594 __isl_give isl_union_pw_multi_aff
*
595 isl_union_pw_multi_aff_pullback_union_pw_multi_aff(
596 __isl_take isl_union_pw_multi_aff
*upma1
,
597 __isl_take isl_union_pw_multi_aff
*upma2
);
599 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_align_params(
600 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_space
*model
);
602 int isl_union_pw_multi_aff_n_pw_multi_aff(
603 __isl_keep isl_union_pw_multi_aff
*upma
);
605 isl_stat
isl_union_pw_multi_aff_foreach_pw_multi_aff(
606 __isl_keep isl_union_pw_multi_aff
*upma
,
607 isl_stat (*fn
)(__isl_take isl_pw_multi_aff
*pma
, void *user
),
609 __isl_give isl_pw_multi_aff
*isl_union_pw_multi_aff_extract_pw_multi_aff(
610 __isl_keep isl_union_pw_multi_aff
*upma
, __isl_take isl_space
*space
);
612 isl_bool
isl_union_pw_multi_aff_plain_is_equal(
613 __isl_keep isl_union_pw_multi_aff
*upma1
,
614 __isl_keep isl_union_pw_multi_aff
*upma2
);
616 __isl_give isl_union_set
*isl_union_pw_multi_aff_domain(
617 __isl_take isl_union_pw_multi_aff
*upma
);
619 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_neg(
620 __isl_take isl_union_pw_multi_aff
*upma
);
622 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_add(
623 __isl_take isl_union_pw_multi_aff
*upma1
,
624 __isl_take isl_union_pw_multi_aff
*upma2
);
625 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_union_add(
626 __isl_take isl_union_pw_multi_aff
*upma1
,
627 __isl_take isl_union_pw_multi_aff
*upma2
);
628 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_sub(
629 __isl_take isl_union_pw_multi_aff
*upma1
,
630 __isl_take isl_union_pw_multi_aff
*upma2
);
632 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_scale_val(
633 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_val
*val
);
634 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_scale_down_val(
635 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_val
*val
);
636 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_scale_multi_val(
637 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_multi_val
*mv
);
639 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_flat_range_product(
640 __isl_take isl_union_pw_multi_aff
*upma1
,
641 __isl_take isl_union_pw_multi_aff
*upma2
);
643 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_intersect_params(
644 __isl_take isl_union_pw_multi_aff
*upma
, __isl_take isl_set
*set
);
645 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_intersect_domain(
646 __isl_take isl_union_pw_multi_aff
*upma
,
647 __isl_take isl_union_set
*uset
);
648 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_subtract_domain(
649 __isl_take isl_union_pw_multi_aff
*upma
,
650 __isl_take isl_union_set
*uset
);
652 __isl_give isl_union_map
*isl_union_map_from_union_pw_multi_aff(
653 __isl_take isl_union_pw_multi_aff
*upma
);
655 __isl_give isl_printer
*isl_printer_print_union_pw_multi_aff(
656 __isl_take isl_printer
*p
, __isl_keep isl_union_pw_multi_aff
*upma
);
658 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_union_set(
659 __isl_take isl_union_set
*uset
);
660 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_union_map(
661 __isl_take isl_union_map
*umap
);
663 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_read_from_str(
664 isl_ctx
*ctx
, const char *str
);
665 void isl_union_pw_multi_aff_dump(__isl_keep isl_union_pw_multi_aff
*upma
);
666 __isl_give
char *isl_union_pw_multi_aff_to_str(
667 __isl_keep isl_union_pw_multi_aff
*upma
);
669 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_identity(
670 __isl_take isl_space
*space
);
671 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_from_multi_aff(
672 __isl_take isl_multi_aff
*ma
);
673 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_from_pw_aff(
674 __isl_take isl_pw_aff
*pa
);
675 __isl_give isl_set
*isl_multi_pw_aff_domain(__isl_take isl_multi_pw_aff
*mpa
);
676 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_intersect_params(
677 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_set
*set
);
678 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_intersect_domain(
679 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_set
*domain
);
681 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_coalesce(
682 __isl_take isl_multi_pw_aff
*mpa
);
683 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_gist(
684 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_set
*set
);
685 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_gist_params(
686 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_set
*set
);
688 isl_bool
isl_multi_pw_aff_is_equal(__isl_keep isl_multi_pw_aff
*mpa1
,
689 __isl_keep isl_multi_pw_aff
*mpa2
);
691 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_pullback_multi_aff(
692 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_multi_aff
*ma
);
693 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_pullback_pw_multi_aff(
694 __isl_take isl_multi_pw_aff
*mpa
, __isl_take isl_pw_multi_aff
*pma
);
695 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_pullback_multi_pw_aff(
696 __isl_take isl_multi_pw_aff
*mpa1
, __isl_take isl_multi_pw_aff
*mpa2
);
698 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_move_dims(
699 __isl_take isl_multi_pw_aff
*pma
,
700 enum isl_dim_type dst_type
, unsigned dst_pos
,
701 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
703 __isl_give isl_set
*isl_set_from_multi_pw_aff(__isl_take isl_multi_pw_aff
*mpa
);
704 __isl_give isl_map
*isl_map_from_multi_pw_aff(__isl_take isl_multi_pw_aff
*mpa
);
705 __isl_give isl_pw_multi_aff
*isl_pw_multi_aff_from_multi_pw_aff(
706 __isl_take isl_multi_pw_aff
*mpa
);
707 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_from_pw_multi_aff(
708 __isl_take isl_pw_multi_aff
*pma
);
710 __isl_give isl_map
*isl_multi_pw_aff_eq_map(__isl_take isl_multi_pw_aff
*mpa1
,
711 __isl_take isl_multi_pw_aff
*mpa2
);
712 __isl_give isl_map
*isl_multi_pw_aff_lex_lt_map(
713 __isl_take isl_multi_pw_aff
*mpa1
, __isl_take isl_multi_pw_aff
*mpa2
);
714 __isl_give isl_map
*isl_multi_pw_aff_lex_gt_map(
715 __isl_take isl_multi_pw_aff
*mpa1
, __isl_take isl_multi_pw_aff
*mpa2
);
717 __isl_give isl_multi_pw_aff
*isl_multi_pw_aff_read_from_str(isl_ctx
*ctx
,
719 __isl_give isl_printer
*isl_printer_print_multi_pw_aff(
720 __isl_take isl_printer
*p
, __isl_keep isl_multi_pw_aff
*mpa
);
721 void isl_multi_pw_aff_dump(__isl_keep isl_multi_pw_aff
*mpa
);
723 __isl_give isl_union_pw_aff
*isl_union_pw_aff_copy(
724 __isl_keep isl_union_pw_aff
*upa
);
725 __isl_null isl_union_pw_aff
*isl_union_pw_aff_free(
726 __isl_take isl_union_pw_aff
*upa
);
728 isl_ctx
*isl_union_pw_aff_get_ctx(__isl_keep isl_union_pw_aff
*upa
);
729 __isl_give isl_space
*isl_union_pw_aff_get_space(
730 __isl_keep isl_union_pw_aff
*upa
);
732 unsigned isl_union_pw_aff_dim(__isl_keep isl_union_pw_aff
*upa
,
733 enum isl_dim_type type
);
734 __isl_give isl_union_pw_aff
*isl_union_pw_aff_set_dim_name(
735 __isl_take isl_union_pw_aff
*upa
, enum isl_dim_type type
,
736 unsigned pos
, const char *s
);
738 int isl_union_pw_aff_find_dim_by_name(__isl_keep isl_union_pw_aff
*upa
,
739 enum isl_dim_type type
, const char *name
);
741 __isl_give isl_union_pw_aff
*isl_union_pw_aff_drop_dims(
742 __isl_take isl_union_pw_aff
*upa
,
743 enum isl_dim_type type
, unsigned first
, unsigned n
);
744 __isl_give isl_union_pw_aff
*isl_union_pw_aff_reset_user(
745 __isl_take isl_union_pw_aff
*upa
);
747 __isl_give isl_union_pw_aff
*isl_union_pw_aff_empty(
748 __isl_take isl_space
*space
);
749 __isl_give isl_union_pw_aff
*isl_union_pw_aff_from_pw_aff(
750 __isl_take isl_pw_aff
*pa
);
751 __isl_give isl_union_pw_aff
*isl_union_pw_aff_val_on_domain(
752 __isl_take isl_union_set
*domain
, __isl_take isl_val
*v
);
753 __isl_give isl_union_pw_aff
*isl_union_pw_aff_aff_on_domain(
754 __isl_take isl_union_set
*domain
, __isl_take isl_aff
*aff
);
755 __isl_give isl_union_pw_aff
*isl_union_pw_aff_add_pw_aff(
756 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_pw_aff
*pa
);
758 __isl_give isl_union_pw_multi_aff
*isl_union_pw_multi_aff_from_union_pw_aff(
759 __isl_take isl_union_pw_aff
*upa
);
761 int isl_union_pw_aff_n_pw_aff(__isl_keep isl_union_pw_aff
*upa
);
763 isl_stat
isl_union_pw_aff_foreach_pw_aff(__isl_keep isl_union_pw_aff
*upa
,
764 isl_stat (*fn
)(__isl_take isl_pw_aff
*ma
, void *user
), void *user
);
765 __isl_give isl_pw_aff
*isl_union_pw_aff_extract_pw_aff(
766 __isl_keep isl_union_pw_aff
*upa
, __isl_take isl_space
*space
);
768 isl_bool
isl_union_pw_aff_plain_is_equal(__isl_keep isl_union_pw_aff
*upa1
,
769 __isl_keep isl_union_pw_aff
*upa2
);
771 __isl_give isl_union_set
*isl_union_pw_aff_domain(
772 __isl_take isl_union_pw_aff
*upa
);
774 __isl_give isl_union_pw_aff
*isl_union_pw_aff_neg(
775 __isl_take isl_union_pw_aff
*upa
);
777 __isl_give isl_union_pw_aff
*isl_union_pw_aff_add(
778 __isl_take isl_union_pw_aff
*upa1
, __isl_take isl_union_pw_aff
*upa2
);
779 __isl_give isl_union_pw_aff
*isl_union_pw_aff_union_add(
780 __isl_take isl_union_pw_aff
*upa1
, __isl_take isl_union_pw_aff
*upa2
);
781 __isl_give isl_union_pw_aff
*isl_union_pw_aff_sub(
782 __isl_take isl_union_pw_aff
*upa1
, __isl_take isl_union_pw_aff
*upa2
);
784 __isl_give isl_union_pw_aff
*isl_union_pw_aff_coalesce(
785 __isl_take isl_union_pw_aff
*upa
);
786 __isl_give isl_union_pw_aff
*isl_union_pw_aff_gist(
787 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_union_set
*context
);
788 __isl_give isl_union_pw_aff
*isl_union_pw_aff_gist_params(
789 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_set
*context
);
791 __isl_give isl_union_pw_aff
*isl_union_pw_aff_pullback_union_pw_multi_aff(
792 __isl_take isl_union_pw_aff
*upa
,
793 __isl_take isl_union_pw_multi_aff
*upma
);
795 __isl_give isl_union_pw_aff
*isl_union_pw_aff_floor(
796 __isl_take isl_union_pw_aff
*upa
);
798 __isl_give isl_union_pw_aff
*isl_union_pw_aff_scale_val(
799 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_val
*v
);
800 __isl_give isl_union_pw_aff
*isl_union_pw_aff_scale_down_val(
801 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_val
*v
);
802 __isl_give isl_union_pw_aff
*isl_union_pw_aff_mod_val(
803 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_val
*f
);
805 __isl_give isl_union_pw_aff
*isl_union_pw_aff_align_params(
806 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_space
*model
);
808 __isl_give isl_union_pw_aff
*isl_union_pw_aff_intersect_params(
809 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_set
*set
);
810 __isl_give isl_union_pw_aff
*isl_union_pw_aff_intersect_domain(
811 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_union_set
*uset
);
812 __isl_give isl_union_pw_aff
*isl_union_pw_aff_subtract_domain(
813 __isl_take isl_union_pw_aff
*upa
, __isl_take isl_union_set
*uset
);
815 __isl_give isl_union_pw_aff
*isl_union_pw_aff_set_dim_name(
816 __isl_take isl_union_pw_aff
*upa
,
817 enum isl_dim_type type
, unsigned pos
, const char *s
);
819 __isl_give isl_union_set
*isl_union_pw_aff_zero_union_set(
820 __isl_take isl_union_pw_aff
*upa
);
822 __isl_give isl_union_map
*isl_union_map_from_union_pw_aff(
823 __isl_take isl_union_pw_aff
*upa
);
825 __isl_give
char *isl_union_pw_aff_to_str(__isl_keep isl_union_pw_aff
*upa
);
826 __isl_give isl_printer
*isl_printer_print_union_pw_aff(
827 __isl_take isl_printer
*p
, __isl_keep isl_union_pw_aff
*upa
);
829 ISL_DECLARE_MULTI(union_pw_aff
)
830 ISL_DECLARE_MULTI_NEG(union_pw_aff
)
832 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_from_multi_aff(
833 __isl_take isl_multi_aff
*ma
);
834 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_from_union_pw_aff(
835 __isl_take isl_union_pw_aff
*upa
);
836 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_from_multi_pw_aff(
837 __isl_take isl_multi_pw_aff
*mpa
);
838 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_multi_val_on_domain(
839 __isl_take isl_union_set
*domain
, __isl_take isl_multi_val
*mv
);
840 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_multi_aff_on_domain(
841 __isl_take isl_union_set
*domain
, __isl_take isl_multi_aff
*ma
);
843 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_floor(
844 __isl_take isl_multi_union_pw_aff
*mupa
);
846 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_intersect_domain(
847 __isl_take isl_multi_union_pw_aff
*mupa
,
848 __isl_take isl_union_set
*uset
);
849 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_intersect_params(
850 __isl_take isl_multi_union_pw_aff
*mupa
, __isl_take isl_set
*params
);
851 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_intersect_range(
852 __isl_take isl_multi_union_pw_aff
*mupa
, __isl_take isl_set
*set
);
854 __isl_give isl_union_set
*isl_multi_union_pw_aff_domain(
855 __isl_take isl_multi_union_pw_aff
*mupa
);
857 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_gist(
858 __isl_take isl_multi_union_pw_aff
*aff
,
859 __isl_take isl_union_set
*context
);
860 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_gist_params(
861 __isl_take isl_multi_union_pw_aff
*aff
, __isl_take isl_set
*context
);
863 __isl_give isl_union_pw_aff
*isl_multi_union_pw_aff_apply_aff(
864 __isl_take isl_multi_union_pw_aff
*mupa
, __isl_take isl_aff
*aff
);
865 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_apply_multi_aff(
866 __isl_take isl_multi_union_pw_aff
*mupa
, __isl_take isl_multi_aff
*ma
);
867 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_apply_multi_aff(
868 __isl_take isl_multi_union_pw_aff
*mupa
, __isl_take isl_multi_aff
*ma
);
869 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_apply_pw_multi_aff(
870 __isl_take isl_multi_union_pw_aff
*mupa
,
871 __isl_take isl_pw_multi_aff
*pma
);
873 __isl_give isl_multi_union_pw_aff
*
874 isl_multi_union_pw_aff_pullback_union_pw_multi_aff(
875 __isl_take isl_multi_union_pw_aff
*mupa
,
876 __isl_take isl_union_pw_multi_aff
*upma
);
878 __isl_give isl_union_pw_multi_aff
*
879 isl_union_pw_multi_aff_from_multi_union_pw_aff(
880 __isl_take isl_multi_union_pw_aff
*mupa
);
882 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_union_add(
883 __isl_take isl_multi_union_pw_aff
*mupa1
,
884 __isl_take isl_multi_union_pw_aff
*mupa2
);
886 __isl_give isl_multi_union_pw_aff
*
887 isl_multi_union_pw_aff_from_union_pw_multi_aff(
888 __isl_take isl_union_pw_multi_aff
*upma
);
890 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_from_union_map(
891 __isl_take isl_union_map
*umap
);
892 __isl_give isl_union_map
*isl_union_map_from_multi_union_pw_aff(
893 __isl_take isl_multi_union_pw_aff
*mupa
);
895 __isl_give isl_union_set
*isl_multi_union_pw_aff_zero_union_set(
896 __isl_take isl_multi_union_pw_aff
*mupa
);
898 __isl_give isl_multi_pw_aff
*isl_multi_union_pw_aff_extract_multi_pw_aff(
899 __isl_keep isl_multi_union_pw_aff
*mupa
, __isl_take isl_space
*space
);
901 __isl_give isl_multi_union_pw_aff
*isl_multi_union_pw_aff_read_from_str(
902 isl_ctx
*ctx
, const char *str
);
903 __isl_give
char *isl_multi_union_pw_aff_to_str(
904 __isl_keep isl_multi_union_pw_aff
*mupa
);
905 __isl_give isl_printer
*isl_printer_print_multi_union_pw_aff(
906 __isl_take isl_printer
*p
, __isl_keep isl_multi_union_pw_aff
*mupa
);
907 void isl_multi_union_pw_aff_dump(__isl_keep isl_multi_union_pw_aff
*mupa
);
909 ISL_DECLARE_LIST_FN(union_pw_aff
)
910 ISL_DECLARE_LIST_FN(union_pw_multi_aff
)
912 #if defined(__cplusplus)