From eb732a4cf063534f746829a0b7368ca0e6e2a21f Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 18 Aug 2005 18:43:37 +0200 Subject: [PATCH] triangularize_cone: rename to triangulate_cone We're breaking compatibility anyway... --- barvinok.cc | 2 +- test.c | 2 +- util.c | 2 +- util.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/barvinok.cc b/barvinok.cc index d1c75d7..067d2ee 100644 --- a/barvinok.cc +++ b/barvinok.cc @@ -593,7 +593,7 @@ void polar_decomposer::decompose(Polyhedron *cone, unsigned MaxRays) Polyhedron_Polarize(cone); if (cone->NbRays - 1 != cone->Dimension) { Polyhedron *tmp = cone; - cone = triangularize_cone(cone, MaxRays); + cone = triangulate_cone(cone, MaxRays); Polyhedron_Free(tmp); } try { diff --git a/test.c b/test.c index adc7877..48a8dc9 100644 --- a/test.c +++ b/test.c @@ -130,7 +130,7 @@ int main() } case 5: Polyhedron_Print(stdout, P_VALUE_FMT, A); - B = triangularize_cone(A, 100); + B = triangulate_cone(A, 100); Polyhedron_Print(stdout, P_VALUE_FMT, B); check_triangulization(A, B); Domain_Free(B); diff --git a/util.c b/util.c index 1f1e0a6..8556f94 100644 --- a/util.c +++ b/util.c @@ -197,7 +197,7 @@ Polyhedron* supporting_cone_p(Polyhedron *P, Param_Vertices *v) return P; } -Polyhedron* triangularize_cone(Polyhedron *P, unsigned NbMaxCons) +Polyhedron* triangulate_cone(Polyhedron *P, unsigned NbMaxCons) { const static int MAX_TRY=10; int i, j, r, n, t; diff --git a/util.h b/util.h index d0b2152..1cc3d5b 100644 --- a/util.h +++ b/util.h @@ -25,7 +25,7 @@ Polyhedron* Polyhedron_Polar(Polyhedron *P, unsigned NbMaxRays); void Polyhedron_Polarize(Polyhedron *P); Polyhedron* supporting_cone(Polyhedron *P, int v); Polyhedron* supporting_cone_p(Polyhedron *P, Param_Vertices *v); -Polyhedron* triangularize_cone(Polyhedron *P, unsigned NbMaxCons); +Polyhedron* triangulate_cone(Polyhedron *P, unsigned NbMaxCons); void check_triangulization(Polyhedron *P, Polyhedron *T); Polyhedron *remove_equalities(Polyhedron *P); Polyhedron *remove_equalities_p(Polyhedron *P, unsigned nvar, Matrix **factor); -- 2.11.4.GIT