add bound_test.sh to distribution
[isl.git] / isl_morph.h
blob37348ca18d028ad781ee840fe252048f09a49ea6
1 /*
2 * Copyright 2010 INRIA Saclay
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France,
7 * Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod,
8 * 91893 Orsay, France
9 */
11 #ifndef ISL_MORHP_H
12 #define ISL_MORHP_H
14 #include <stdio.h>
15 #include <isl_dim.h>
16 #include <isl_mat.h>
17 #include <isl_set.h>
19 #if defined(__cplusplus)
20 extern "C" {
21 #endif
23 /* An isl_morph is a "morphism" on (basic) sets.
24 * "map" is an affine mapping from "dom" to "ran"
25 * and "inv" is the inverse mapping.
27 struct isl_morph {
28 int ref;
30 isl_basic_set *dom;
31 isl_basic_set *ran;
33 isl_mat *map;
34 isl_mat *inv;
36 typedef struct isl_morph isl_morph;
38 __isl_give isl_morph *isl_morph_copy(__isl_keep isl_morph *morph);
39 void isl_morph_free(__isl_take isl_morph *morph);
41 __isl_give isl_dim *isl_morph_get_ran_dim(__isl_keep isl_morph *morph);
43 __isl_give isl_morph *isl_morph_drop_dims(__isl_take isl_morph *morph,
44 enum isl_dim_type type, unsigned first, unsigned n);
46 __isl_give isl_morph *isl_morph_compose(__isl_take isl_morph *morph1,
47 __isl_take isl_morph *morph2);
48 __isl_give isl_morph *isl_morph_inverse(__isl_take isl_morph *morph);
50 void isl_morph_dump(__isl_take isl_morph *morph, FILE *out);
52 __isl_give isl_morph *isl_basic_set_variable_compression(
53 __isl_keep isl_basic_set *bset, enum isl_dim_type type);
54 __isl_give isl_morph *isl_basic_set_parameter_compression(
55 __isl_keep isl_basic_set *bset);
57 __isl_give isl_basic_set *isl_morph_basic_set(__isl_take isl_morph *morph,
58 __isl_take isl_basic_set *bset);
59 __isl_give isl_set *isl_morph_set(__isl_take isl_morph *morph,
60 __isl_take isl_set *set);
62 #if defined(__cplusplus)
64 #endif
66 #endif