C++ convex-polyhedron values
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
C_Polyhedron shall represent a rational topologically closed convex polyhedron in Rn. NNC_Polyhedron shall additionally admit excluded boundary points. A constraint description shall denote its conjunction of affine equalities and admitted non-strict or strict inequalities. An NNC generator description shall denote sums of real line directions, nonnegative ray directions and convex combinations of points and closure points, with strictly positive total weight on included points. The empty generator system shall denote empty. A nonempty generator system shall contain an included point. Coordinates shall be real even when all stored coefficients are integral.
coefficient_type shall be the configured Coefficient. Every intermediate coefficient operation shall meet that profile's range and resource conditions. In bounded profiles, double-description conversion shall evaluate incidence products and complete row combinations exactly, cancel each new geometric row's common positive factor, and then admit its stored coefficients. Unreduced products need not fit the coefficient profile; a primitive row that does not fit may raise the profile's arithmetic exception. This projective normalization shall preserve the complete augmented row, including NNC epsilon coordinates, and shall not rescale integer-lattice periods. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; dimensions shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors and streams shall remain live and valid for their uses. Output objects shall be independently writable and shall not alias one another or input storage unless an operation explicitly permits that aliasing.
Independent objects shall own independent values. Uses that can change caches shall be externally synchronized against other uses of the same object. Unsuccessful construction shall release acquired resources. Supported numerical and resource exceptions may propagate; an existing object's surviving ownership shall permit destruction, without a general rollback or further-query guarantee.
An included point carries membership information that an excluded closure point cannot supply. Coefficient storage does not change the real coordinate carrier.
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
class C_Polyhedron : public Polyhedron {}; class NNC_Polyhedron : public Polyhedron {}; // Inherited public type: typedef Coefficient coefficient_type;
Check literal closed and half-open sets, fractional points, rays, lines, zero-dimensional empty/universe, independent ownership and both representation directions. Inspect initialization, coefficient admission and exception cleanup.
BagnaraHZ05FAC | whole work (background) BagnaraHZ10CGTA | Sections 2.1–2.3, Theorems 2.1 and 2.3, Definition 2.2 (closed and NNC generator semantics).
tests/recyclingconstructors1.cc; src/Exact_Arithmetic.hh; src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/cnncconversion1.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/generators1.cc; tests/Polyhedron/nncminimize1.cc; tests/polyhedronvaluesspec1.cc; tests/descriptorequalityspec1.cc.
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
Construction from n and kind shall create exactly EMPTY or UNIVERSE in dimension n. Default construction shall create the zero-dimensional universe, containing the unique empty tuple. Empty shall contain no point in every dimension. max_space_dimension() shall report the structural limit; an oversized or reserved dimension shall throw std::length_error before allocation proportional to that dimension. The structural limit shall not promise resource availability for every smaller request.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
Dimension is part of the value even for empty sets. Structural rejection must precede extent-dependent storage.
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(dimension_type n=0, Degenerate_Element kind=UNIVERSE); explicit NNC_Polyhedron(dimension_type n=0, Degenerate_Element kind=UNIVERSE); static dimension_type max_space_dimension();
Check defaults, both kinds in zero and positive dimensions, reserved/oversized dimensions and failed-construction ownership.
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/maxspacedim1.cc; tests/Polyhedron/empty1.cc; tests/Polyhedron/universe1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
Same-type copying and assignment shall preserve the source value, ambient dimension and topology while giving the target independent ownership. Assignment shall return its receiver by reference, support self-assignment and permit a change in dimension. The copy-constructor complexity argument shall not change its exactness. Destruction shall release owned resources without throwing. m_swap and swap shall exchange complete values, dimensions and cached representations of topology-compatible objects, including self-exchange. Topology-incompatible exchange shall throw std::invalid_argument before exchange. Cross-topology assignment shall follow 🔗 7. Closed and NNC value conversion.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
Value copying and exchange must transfer all authoritative descriptions and pending state consistently.
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
C_Polyhedron(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); NNC_Polyhedron(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); C_Polyhedron& operator=(const C_Polyhedron&); NNC_Polyhedron& operator=(const NNC_Polyhedron&); ~C_Polyhedron(); ~NNC_Polyhedron(); void m_swap(Polyhedron&); void swap(Polyhedron&, Polyhedron&);
Exercise independent later mutations, dimensions, empty/universe, pending constraints/generators, self-assignment/exchange and topology rejection.
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/exceptions1.cc; tests/Polyhedron/exceptions2.cc; tests/Polyhedron/systemidentity1.cc; tests/polyhedronvaluesspec1.cc.
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
Construction from a constraint system shall inherit its ambient dimension and represent exactly its conjunction. NNC construction shall preserve strict boundaries. Closed construction shall reject every strict inequality with std::invalid_argument, even if redundant; NNC-encoded non-strict rows shall be accepted without changing their meaning. Empty conjunction shall denote universe. Contradictory conjunction shall denote empty. The const-input form shall preserve its external source. The non-const rvalue form may consume source storage; on either return its source need only remain safely destructible. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
Constraint construction is conjunction, with topology admission independent of whether a strict row happens to be redundant.
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Constraint_System&); C_Polyhedron(Constraint_System&&); explicit NNC_Polyhedron(const Constraint_System&); NNC_Polyhedron(Constraint_System&&);
Check strict/non-strict/equality rows, redundancy, contradictions, embedded dimensions, const-source preservation, recycled ownership and dimension/topology rejection.
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
Construction from a generator system shall inherit its ambient dimension and denote its generator interpretation in 🔗 1. Polyhedral values, coefficient profile and valid use. An empty system shall create empty. A nonempty system without an included point shall throw std::invalid_argument. Closed construction shall reject closure points, including redundant ones; NNC construction shall retain their excluded boundary meaning. Const-input construction shall preserve its external source. Recycling may consume source storage, which need only remain destructible on return. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
Points establish nonemptiness; line and ray directions or closure points alone do not establish an included point.
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Generator_System&); C_Polyhedron(Generator_System&&); explicit NNC_Polyhedron(const Generator_System&); NNC_Polyhedron(Generator_System&&);
Check point order, closure-only and direction-only rejection, fractional points, real lines, nonnegative rays, zero dimensions and recycled/const ownership.
BagnaraHZ05FAC | whole work (background)
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/generators1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
Congruence-system construction shall inherit the input dimension and apply the exact addition semantics in 🔗 2. Polyhedral congruence addition and conservative refinement to universe. Equality congruences shall define affine equalities; tautologies shall impose no restriction and contradictions shall give empty. A proper congruence that is neither tautological nor contradictory shall throw std::invalid_argument. The const-input form shall preserve external source values. The recycling-tag form shall have the same mathematical result; recycling shall not be promised for congruences. can_recycle_constraint_systems() shall return true and can_recycle_congruence_systems() false.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
Nontrivial periodic restrictions are generally not convex; the recycling capability describes available storage reuse rather than a semantic distinction.
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Congruence_System&); explicit NNC_Polyhedron(const Congruence_System&); static bool can_recycle_constraint_systems(); static bool can_recycle_congruence_systems();
Check equalities, constant congruences, proper periodic rejection, source preservation, zero dimensions, structural limits and both capability values.
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addcongruences1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
Conversion or assignment from closed to NNC shall preserve the represented set and dimension exactly. Conversion or assignment from NNC to closed shall produce the exact topological closure, including empty and lower-dimensional sets. The complexity argument shall not reduce this precision. Sources shall retain their values; successful assignment shall return its receiver by reference. Changing topology shall occur through the selected value type's conversion, without exposing a receiver with the wrong topology.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
Closed targets cannot retain excluded boundary points, whereas NNC targets can represent every closed polyhedron unchanged.
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit NNC_Polyhedron(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); C_Polyhedron& operator=(const NNC_Polyhedron&); NNC_Polyhedron& operator=(const C_Polyhedron&);
Check open and half-open intervals, empty inconsistent strict systems, singletons, free coordinates, source preservation and assignments across dimensions.
BagnaraHZ10CGTA | Sections 2.1–2.3, Theorems 2.1 and 2.3, Definition 2.2 (closed and NNC generator semantics).
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/cnncconversion1.cc; tests/Polyhedron/topclosure1.cc; tests/polyhedronvaluesspec1.cc.
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
Box conversion shall preserve dimension and source value. NNC conversion shall represent the source box exactly, including open endpoints; closed conversion shall represent its exact topological closure. Infinite endpoints shall impose no finite bound. The complexity argument shall not affect the result. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
Finite rational interval bounds translate to axis-aligned affine constraints; closing the target changes only endpoint inclusion.
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename Interval> explicit C_Polyhedron(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY); template <typename Interval> explicit NNC_Polyhedron(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY);
Check empty, zero-dimensional, finite/infinite and open/closed endpoint combinations, selected interval profiles and structural bounds.
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/frombox1.cc; tests/Polyhedron/frombox2.cc; tests/polyhedronvaluesspec1.cc.
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
Construction from a bounded-difference or octagonal shape shall preserve the source's real pointset and ambient dimension exactly in either topology. Every represented finite bound shall retain its coefficient-profile value; unbounded entries shall add no constraint. The complexity argument shall not change precision. Structural dimension overflow shall throw std::length_error. Source values shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
Both source constraint classes are representable by ordinary closed rational polyhedra.
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename U> explicit C_Polyhedron(const BD_Shape<U>&, Complexity_Class=ANY_COMPLEXITY); template <typename U> explicit C_Polyhedron(const Octagonal_Shape<U>&, Complexity_Class=ANY_COMPLEXITY); template <typename U> explicit NNC_Polyhedron(const BD_Shape<U>&, Complexity_Class=ANY_COMPLEXITY); template <typename U> explicit NNC_Polyhedron(const Octagonal_Shape<U>&, Complexity_Class=ANY_COMPLEXITY);
Check independent relational constraints, latent empty and zero dimensions, bounded/infinite profiles, selected arithmetic admission and source preservation.
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/frombdshape1.cc; tests/Polyhedron/fromoctagonalshape1.cc; tests/polyhedronvaluesspec1.cc.
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
Construction from a grid shall preserve dimension and return empty for an empty source; otherwise it shall return the exact affine hull of the source, with all periodic restrictions removed and all affine equalities preserved. Both target topologies shall represent the same closed affine space. The complexity argument shall not reduce this guarantee. Source value shall be preserved, and structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
The convex hull of a nonempty rational grid is its affine hull: unrestricted integer parameter multiples fill their real spans under convexification.
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Grid&, Complexity_Class=ANY_COMPLEXITY); explicit NNC_Polyhedron(const Grid&, Complexity_Class=ANY_COMPLEXITY);
Check periodic sets, non-axis affine equalities, line directions, fractional phases, latent inconsistent congruences, zero dimensions and source preservation.
src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/fromgrid1.cc; tests/polyhedronvaluesspec1.cc.