C++ convex-polyhedron coordinates
|
Type
|
Level
|
MID
|
UID
|
REFS
|
Title
|
Statement
|
Rationale
|
Comment
|
BIBLIOGRAPHY
|
STATUS
|
COMPONENT
|
APPLICABILITY
|
VERIFICATION_METHODS
|
VERIFICATION_CRITERIA
|
SOURCE
|
LANGUAGE
|
VISIBILITY
|
INTERFACE
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SW_SPEC
|
1 |
|
|
Parents:
|
|
Cylindrification shall forget restrictions on the selected coordinates while preserving exactly the projection onto all other coordinates. Ambient dimension shall be retained. Empty shall remain empty, and an empty coordinate selection shall be a no-op. Coordinates outside the receiver shall throw std::invalid_argument before mutation. 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. |
Forgetting a coordinate is existential elimination followed by adding that coordinate freely, not deleting every row that mentions it. |
|
|
|
|
|
Check coupled equalities/inequalities, strict projected boundaries, empty selections, invalid indices, empty and pending descriptions. |
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/unconstrain1.cc; src/Polyhedron_chdims.cc. |
|
|
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. void unconstrain(Variable); void unconstrain(const Variables_Set&); |
|
|
SW_SPEC
|
2 |
|
|
Parents:
|
|
Adding m coordinates shall append them after the old coordinates. add_space_dimensions_and_embed(m) shall form the Cartesian product with Rm; add_space_dimensions_and_project(m) shall append exactly m zero coordinates. Empty shall remain empty in the enlarged dimension. Zero growth shall be a no-op. Exceeding the selected topology's structural dimension limit shall throw std::length_error before extent-dependent allocation; unsigned dimension arithmetic shall not wrap. 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. |
Free extension and zero extension have different meanings despite sharing the same new ambient dimension. |
|
|
|
|
|
Check independent Cartesian/zero products, both topologies, empty/universe, pending histories, zero growth and reserved/overflow extents. |
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/addspacedims1.cc; tests/Polyhedron/addspacedims2.cc; src/Polyhedron_chdims.cc. |
|
|
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. void add_space_dimensions_and_embed(dimension_type m); void add_space_dimensions_and_project(dimension_type m); |
|
|
SW_SPEC
|
3 |
|
|
Parents:
|
|
Concatenation shall assign the exact Cartesian product of the entry receiver and operand, with receiver coordinates followed by operand coordinates. The resulting dimension shall be the sum. Empty shall be absorbing; zero-dimensional universe shall be an identity. Self-concatenation shall use independent copies of the entry value. Incompatible topologies shall throw std::invalid_argument and excessive combined dimension std::length_error before extent-dependent allocation. A distinct operand shall preserve its value. 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. |
Concatenation combines independently chosen tuples and must not introduce equalities between copies. |
|
|
|
|
|
Check literal products, self products, both operand orders for zero dimensions, strict endpoints, empty and dimension/topology rejection. Check current C, current G and both saturation orientations, constraint-heavy fallbacks, zero leading saturation columns across GMP limb boundaries and subsequent pending-row processing against literal Cartesian products. |
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/concatenate1.cc; src/Polyhedron_chdims.cc. |
|
|
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. void concatenate_assign(const Polyhedron&); |
|
|
SW_SPEC
|
4 |
|
|
Parents:
|
|
Coordinate deletion shall existentially project away exactly the selected coordinates and pack surviving coordinates in their previous relative order. Removing higher dimensions shall retain the prefix of the requested length. Empty shall remain empty in the resulting dimension. Projection of nonempty onto no coordinates shall be zero-dimensional universe. Empty selection or an unchanged prefix length shall preserve the value. An invalid selection or a requested prefix longer than the receiver shall throw std::invalid_argument before mutation. 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. |
Projection retains consequences among surviving coordinates, including strict boundary information. |
|
|
|
|
|
Check relational elimination, unbounded directions that vanish, all/none/prefix selection, zero dimensions, pending histories and rejected indices. Compare the constraint and generator routes under 🔗 1. Bounded exact projection from current constraints, including unchanged rejection state, profile selection and allocation failures. |
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/removespacedims1.cc; tests/Polyhedron/removespacedims2.cc; src/Polyhedron_chdims.cc; tests/Polyhedron/constraintprojection1.cc; tests/Polyhedron/constraintprojectionpolicy1.cc; tests/Polyhedron/constraintprojectionfailure1.cc. |
|
|
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. void remove_space_dimensions(const Variables_Set&); void remove_higher_space_dimensions(dimension_type); |
|
|
SW_SPEC
|
5 |
|
|
Parents:
|
|
For an admitted partial mapping from old coordinate indices to a dense set {0, …, m − 1}, the operation shall delete unmapped coordinates and rename the remaining ones exactly. The mapping shall be injective on its domain and m ≤ n; an equal-size map shall therefore be a permutation. The mapping object shall implement has_empty_codomain(), max_in_codomain() and maps(i,j) with the entry mapping's consistent answers. Empty codomain shall project onto zero dimensions. The maximum shall be requested at most once and maps at most once per old coordinate. Mappings violating these prerequisites shall have no result guarantee; a defensive invalid-argument check shall not make every malformed map admitted. 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. |
An injective dense image distinguishes projection/permutation from coordinate identification or addition of unconstrained dimensions. |
|
|
|
|
|
Check independent permutations and partial projections, disappearing directions, empty and zero dimensions, custom mapping call counts and both current representation routes. |
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/mapspacedims1.cc; src/Polyhedron_chdims.cc. |
|
|
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 Partial_Function> void map_space_dimensions(const Partial_Function&); |
|
|
SW_SPEC
|
6 |
|
|
Parents:
|
|
Expansion of coordinate v by m shall append m coordinates, each an independent copy of v conditional on the other old coordinates. Writing an old state as (z, xv), the result shall consist exactly of states (z, xv, t1, …, tm) for which (z, xv) ∈ P and each (z, ti) ∈ P. The copies need not equal one another. Invalid v shall throw std::invalid_argument and excessive dimension growth std::length_error. Zero expansion shall preserve the value. 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. |
Expansion replicates a coordinate relation while allowing independent values consistent with the shared context. |
|
|
|
|
|
Check literal interval copies, context-dependent relations, strict endpoints, non-equality between copies, empty, zero growth and dimension guards. |
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/expandspacedim1.cc; tests/Polyhedron/expandspacedim2.cc; src/Polyhedron_chdims.cc. |
|
|
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. void expand_space_dimension(Variable v, dimension_type m); |
|
|
SW_SPEC
|
7 |
|
|
Parents:
|
|
Folding coordinates in vars into dest shall take the least polyhedron of the receiver's topology containing the union of the projections that place either the old destination or one folded coordinate at the surviving destination position, and then delete the folded coordinates. Remaining coordinates shall retain relative order. dest shall be a valid coordinate outside vars; all selected coordinates shall be valid, otherwise std::invalid_argument shall be thrown. Empty selection shall be a no-op. 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. |
Folding merges alternative coordinate origins through a polyhedral hull rather than requiring their values to agree. |
|
|
|
|
|
Compare with independently permuted/projected hulls, strict boundaries, destinations before/after deleted coordinates, empty selection and invalid overlap/indices. Compare the result with the hull of independent affine images of the entry value followed by projection, for closed and NNC topology, dense/sparse rows, zero/single/multiple noncontiguous sources, different destination positions, rational correlations, rays, lines and pending or minimized caches. |
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/foldspacedims1.cc; tests/Polyhedron/foldspacedims2.cc; src/Polyhedron_chdims.cc. |
|
|
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. void fold_space_dimensions(const Variables_Set& vars, Variable dest); |