Main Page | Class List | File List | Class Members | File Members

Zpolyhedron.c File Reference

#include <polylib/polylib.h>
#include <stdlib.h>

Go to the source code of this file.

Classes

struct  forsimplify

Typedefs

typedef forsimplify ForSimplify

Functions

ZPolyhedronZPolyhedronIntersection (ZPolyhedron *, ZPolyhedron *)
ZPolyhedronZPolyhedron_Copy (ZPolyhedron *A)
void ZPolyhedron_Free (ZPolyhedron *Zpol)
ZPolyhedronZPolyhedronDifference (ZPolyhedron *, ZPolyhedron *)
ZPolyhedronZPolyhedronImage (ZPolyhedron *, Matrix *)
ZPolyhedronZPolyhedronPreimage (ZPolyhedron *, Matrix *)
ZPolyhedronAddZPolytoZDomain (ZPolyhedron *A, ZPolyhedron *Head)
void ZPolyhedronPrint (FILE *fp, char *format, ZPolyhedron *A)
Bool isEmptyZPolyhedron (ZPolyhedron *Zpol)
ZPolyhedronZPolyhedron_Alloc (Lattice *Lat, Polyhedron *Poly)
void ZDomain_Free (ZPolyhedron *Head)
ZPolyhedronZDomain_Copy (ZPolyhedron *Head)
ZPolyhedronAddZPoly2ZDomain (ZPolyhedron *Zpol, ZPolyhedron *Result)
ZPolyhedronEmptyZPolyhedron (int dimension)
Bool ZDomainIncludes (ZPolyhedron *A, ZPolyhedron *B)
Bool ZPolyhedronIncludes (ZPolyhedron *A, ZPolyhedron *B)
void ZDomainPrint (FILE *fp, char *format, ZPolyhedron *A)
ZPolyhedronZDomainUnion (ZPolyhedron *A, ZPolyhedron *B)
ZPolyhedronZDomainIntersection (ZPolyhedron *A, ZPolyhedron *B)
ZPolyhedronZDomainDifference (ZPolyhedron *A, ZPolyhedron *B)
ZPolyhedronZDomainImage (ZPolyhedron *A, Matrix *Func)
ZPolyhedronZDomainPreimage (ZPolyhedron *A, Matrix *Func)
void CanonicalForm (ZPolyhedron *Zpol, ZPolyhedron **Result, Matrix **Basis)
ZPolyhedronIntegraliseLattice (ZPolyhedron *A)
ZPolyhedronZDomainSimplify (ZPolyhedron *ZDom)
ZPolyhedronSplitZpolyhedron (ZPolyhedron *ZPol, Lattice *B)


Typedef Documentation

typedef struct forsimplify ForSimplify
 

Referenced by ZDomainSimplify().


Function Documentation

ZPolyhedron* AddZPoly2ZDomain ZPolyhedron Zpol,
ZPolyhedron Result
[static]
 

Definition at line 123 of file Zpolyhedron.c.

References isEmptyZPolyhedron(), ZPolyhedron::next, ZDomain_Free(), and ZPolyhedron_Copy().

Referenced by SplitZpolyhedron(), ZDomainDifference(), and ZPolyhedronDifference().

ZPolyhedron * AddZPolytoZDomain ZPolyhedron A,
ZPolyhedron Head
[static]
 

Definition at line 150 of file Zpolyhedron.c.

References AffineHermite(), Bool, CanonicalForm(), Domain_Copy(), Domain_Free(), DomainImage(), DomainUnion(), False, isEmptyZPolyhedron(), ZPolyhedron::Lat, Lattice, Matrix, Matrix_Alloc(), Matrix_Free(), Matrix_Product(), MAXNOOFRAYS, matrix::NbColumns, matrix::NbRows, ZPolyhedron::next, polyhedron::next, ZPolyhedron::P, Polyhedron, sameLattice(), True, ZDomain_Free(), ZPolyhedron_Alloc(), ZPolyhedron_Free(), and ZPolyhedronIncludes().

Referenced by ZDomainDifference(), ZDomainImage(), ZDomainIntersection(), ZDomainPreimage(), ZDomainUnion(), and ZPolyhedronDifference().

void CanonicalForm ZPolyhedron Zpol,
ZPolyhedron **  Result,
Matrix **  Basis
 

Definition at line 742 of file Zpolyhedron.c.

References AffineHermite(), ChangeLatticeDimension(), DomainImage(), FindHermiteBasisofDomain(), Identity(), isEmptyZPolyhedron(), ZPolyhedron::Lat, Matrix, Matrix_Alloc(), Matrix_Copy(), Matrix_Free(), Matrix_Inverse(), Matrix_Product(), MAXNOOFRAYS, matrix::NbColumns, matrix::NbRows, matrix::p, ZPolyhedron::P, Polyhedron, Polyhedron_Free(), Value, value_assign, value_clear, value_init, ZDomain_Copy(), and ZPolyhedron_Alloc().

ZPolyhedron* EmptyZPolyhedron int  dimension  ) 
 

Definition at line 244 of file Zpolyhedron.c.

References Domain_Free(), Empty_Polyhedron(), EmptyLattice(), Lattice, Matrix, Matrix_Free(), Polyhedron, and ZPolyhedron_Alloc().

ZPolyhedron* IntegraliseLattice ZPolyhedron A  ) 
 

Definition at line 833 of file Zpolyhedron.c.

References Domain_Free(), DomainImage(), DomainPreimage(), EmptyZPolyhedron(), Identity(), isEmptyLattice(), ZPolyhedron::Lat, Lattice, LatticeImage(), Matrix_Free(), MAXNOOFRAYS, matrix::NbRows, ZPolyhedron::P, Polyhedron, and ZPolyhedron_Alloc().

Bool isEmptyZPolyhedron ZPolyhedron Zpol  ) 
 

Definition at line 23 of file Zpolyhedron.c.

References Bool, emptyQ, False, isEmptyLattice(), ZPolyhedron::Lat, ZPolyhedron::P, and True.

ZPolyhedron* SplitZpolyhedron ZPolyhedron ZPol,
Lattice B
 

Definition at line 950 of file Zpolyhedron.c.

References AddZPoly2ZDomain(), AffineHermite(), isEmptyLattice(), isinHnf(), ZPolyhedron::Lat, Lattice, Lattice2LatticeUnion(), LatticeUnion::M, Matrix, Matrix_Copy(), Matrix_Free(), matrix::NbColumns, matrix::NbRows, LatticeUnion::next, ZPolyhedron::P, True, Value, ZPolyhedron_Alloc(), and ZPolyhedron_Free().

ZPolyhedron* ZDomain_Copy ZPolyhedron Head  ) 
 

Definition at line 98 of file Zpolyhedron.c.

References ZPolyhedron::next, ZDomain_Copy(), and ZPolyhedron_Copy().

void ZDomain_Free ZPolyhedron Head  ) 
 

Definition at line 73 of file Zpolyhedron.c.

References ZPolyhedron::next, ZDomain_Free(), and ZPolyhedron_Free().

ZPolyhedron* ZDomainDifference ZPolyhedron A,
ZPolyhedron B
 

Definition at line 413 of file Zpolyhedron.c.

References AddZPoly2ZDomain(), AddZPolytoZDomain(), EmptyZPolyhedron(), ZPolyhedron::Lat, matrix::NbRows, ZPolyhedron::next, ZDomain_Free(), ZPolyhedron_Copy(), and ZPolyhedronDifference().

ZPolyhedron* ZDomainImage ZPolyhedron A,
Matrix Func
 

Definition at line 467 of file Zpolyhedron.c.

References AddZPolytoZDomain(), EmptyZPolyhedron(), Matrix, ZPolyhedron::next, ZPolyhedron_Free(), and ZPolyhedronImage().

Bool ZDomainIncludes ZPolyhedron A,
ZPolyhedron B
 

Definition at line 269 of file Zpolyhedron.c.

References Bool, False, isEmptyZPolyhedron(), True, ZDomain_Free(), and ZDomainDifference().

ZPolyhedron* ZDomainIntersection ZPolyhedron A,
ZPolyhedron B
 

Definition at line 376 of file Zpolyhedron.c.

References AddZPolytoZDomain(), EmptyZPolyhedron(), ZPolyhedron::next, ZPolyhedron_Free(), and ZPolyhedronIntersection().

ZPolyhedron* ZDomainPreimage ZPolyhedron A,
Matrix Func
 

Definition at line 495 of file Zpolyhedron.c.

References AddZPolytoZDomain(), EmptyZPolyhedron(), ZPolyhedron::Lat, Matrix, matrix::NbColumns, matrix::NbRows, ZPolyhedron::next, ZPolyhedron_Free(), and ZPolyhedronPreimage().

void ZDomainPrint FILE *  fp,
char *  format,
ZPolyhedron A
 

Definition at line 318 of file Zpolyhedron.c.

References ZPolyhedron::next, ZDomainPrint(), and ZPolyhedronPrint().

ZPolyhedron* ZDomainSimplify ZPolyhedron ZDom  ) 
 

Definition at line 866 of file Zpolyhedron.c.

References Bool, Domain_Copy(), Domain_Free(), DomainDifference(), DomainImage(), DomainPreimage(), emptyQ, EmptyZPolyhedron(), False, ForSimplify, ZPolyhedron::Lat, Lattice, LatticeSimplify(), LatticeUnion_Free(), forsimplify::LatUni, LatticeUnion::M, Matrix, Matrix_Copy(), MAXNOOFRAYS, matrix::NbRows, LatticeUnion::next, forsimplify::next, ZPolyhedron::next, ZPolyhedron::P, forsimplify::Pol, Polyhedron, True, ZDomainUnion(), ZPolyhedron_Alloc(), ZPolyhedron_Copy(), and ZPolyhedron_Free().

ZPolyhedron* ZDomainUnion ZPolyhedron A,
ZPolyhedron B
 

Definition at line 354 of file Zpolyhedron.c.

References AddZPolytoZDomain(), and ZPolyhedron::next.

ZPolyhedron* ZPolyhedron_Alloc Lattice Lat,
Polyhedron Poly
 

Definition at line 38 of file Zpolyhedron.c.

References polyhedron::Dimension, Domain_Copy(), False, IntegraliseLattice(), isEmptyLattice(), isfulldim(), IsLattice(), ZPolyhedron::Lat, Lattice, Matrix_Copy(), matrix::NbRows, ZPolyhedron::next, ZPolyhedron::P, Polyhedron, and ZPolyhedron_Free().

ZPolyhedron * ZPolyhedron_Copy ZPolyhedron A  )  [static]
 

Definition at line 111 of file Zpolyhedron.c.

References ZPolyhedron::Lat, ZPolyhedron::P, and ZPolyhedron_Alloc().

Referenced by AddZPoly2ZDomain(), ZDomain_Copy(), ZDomainDifference(), and ZDomainSimplify().

void ZPolyhedron_Free ZPolyhedron Zpol  )  [static]
 

Definition at line 85 of file Zpolyhedron.c.

References Domain_Free(), ZPolyhedron::Lat, Matrix, Matrix_Free(), and ZPolyhedron::P.

Referenced by AddZPolytoZDomain(), SplitZpolyhedron(), ZDomain_Free(), ZDomainImage(), ZDomainIntersection(), ZDomainPreimage(), ZDomainSimplify(), ZPolyhedron_Alloc(), ZPolyhedronDifference(), and ZPolyhedronIntersection().

ZPolyhedron * ZPolyhedronDifference ZPolyhedron ,
ZPolyhedron
[static]
 

Definition at line 573 of file Zpolyhedron.c.

References AddZPoly2ZDomain(), AddZPolytoZDomain(), Bool, Domain_Copy(), Domain_Free(), DomainDifference(), DomainImage(), DomainIntersection(), DomainPreimage(), emptyQ, EmptyZPolyhedron(), False, isEmptyZPolyhedron(), ZPolyhedron::Lat, LatticeDifference(), LatticeUnion::M, Matrix, Matrix_Free(), MAXNOOFRAYS, matrix::NbRows, LatticeUnion::next, ZPolyhedron::P, Polyhedron, True, ZDomain_Copy(), ZPolyhedron_Alloc(), and ZPolyhedron_Free().

Referenced by ZDomainDifference().

ZPolyhedron * ZPolyhedronImage ZPolyhedron ,
Matrix
[static]
 

Definition at line 650 of file Zpolyhedron.c.

References Domain_Free(), DomainImage(), DomainPreimage(), emptyQ, isEmptyLattice(), ZPolyhedron::Lat, LatticeImage(), Matrix, Matrix_Free(), MAXNOOFRAYS, matrix::NbColumns, matrix::NbRows, ZPolyhedron::P, Polyhedron, and ZPolyhedron_Alloc().

Referenced by ZDomainImage().

Bool ZPolyhedronIncludes ZPolyhedron A,
ZPolyhedron B
 

Definition at line 286 of file Zpolyhedron.c.

References Bool, Domain_Free(), DomainDifference(), DomainImage(), emptyQ, False, ZPolyhedron::Lat, LatticeIncludes(), MAXNOOFRAYS, ZPolyhedron::P, Polyhedron, and True.

ZPolyhedron * ZPolyhedronIntersection ZPolyhedron ,
ZPolyhedron
[static]
 

Definition at line 528 of file Zpolyhedron.c.

References Domain_Free(), DomainImage(), DomainIntersection(), DomainPreimage(), emptyQ, EmptyZPolyhedron(), isEmptyLattice(), ZPolyhedron::Lat, Lattice, LatticeIntersection(), Matrix, Matrix_Free(), MAXNOOFRAYS, matrix::NbRows, ZPolyhedron::P, Polyhedron, True, ZPolyhedron_Alloc(), and ZPolyhedron_Free().

Referenced by ZDomainIntersection().

ZPolyhedron * ZPolyhedronPreimage ZPolyhedron ,
Matrix
[static]
 

Definition at line 700 of file Zpolyhedron.c.

References Domain_Free(), DomainImage(), DomainPreimage(), emptyQ, EmptyZPolyhedron(), isEmptyLattice(), ZPolyhedron::Lat, Lattice, LatticePreimage(), Matrix, Matrix_Free(), MAXNOOFRAYS, matrix::NbColumns, matrix::NbRows, ZPolyhedron::P, Polyhedron, and ZPolyhedron_Alloc().

Referenced by ZDomainPreimage().

void ZPolyhedronPrint FILE *  fp,
char *  format,
ZPolyhedron A
[static]
 

Definition at line 338 of file Zpolyhedron.c.

References ZPolyhedron::Lat, Matrix, Matrix_Print(), matrix::NbRows, ZPolyhedron::P, and Polyhedron_Print().

Referenced by ZDomainPrint().


Generated on Mon Sep 12 14:48:30 2005 for polylib by doxygen 1.3.5